• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Tutor.net

Resource Tutor.net 1.2.3

Sorry, I getting error after test this command.
Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 20 (coords 5,5), map 15 (Home)
Exception: NoMethodError
Message: undefined method `tutorlist' for nil:NilClass

***Full script:
pbTutorNetAdd(:FIREPUNCH, 7000)
pbTutorNetAdd(:FIREBLAST, 10000)
pbTutorNetAdd(:FLAMETHROWER, 7000)
pbTutorNetAdd(:FLAMEWHEEL, 3000)
pbTutorNetAdd(:OVERHEAT, 15000)
pbTutorNetAdd(:BLASTBURN, 20000)
pbTutorNetAdd(:FLAREBLITZ, 15000)
pbTutorNetAdd(:ERUPTION, 30000)

Backtrace:
[Tutor.net] Tutor.net.rb:904:in `pbTutorNetAdd'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
[Following Pokemon EX] Refresh.rb:268:in `update'

in meta.txt files v21.1 still using a 20.1 version, and I found inside tutornet.rb still using a SpriteWrapper..
but SpriteWrapper in v21.1 doesn't exists, replacing by BitmapWrapper.
I think, this is a same files files in different name zip files.
 
Sorry, I getting error after test this command.
Code:
Expand Collapse Copy
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 20 (coords 5,5), map 15 (Home)
Exception: NoMethodError
Message: undefined method `tutorlist' for nil:NilClass

***Full script:
pbTutorNetAdd(:FIREPUNCH, 7000)
pbTutorNetAdd(:FIREBLAST, 10000)
pbTutorNetAdd(:FLAMETHROWER, 7000)
pbTutorNetAdd(:FLAMEWHEEL, 3000)
pbTutorNetAdd(:OVERHEAT, 15000)
pbTutorNetAdd(:BLASTBURN, 20000)
pbTutorNetAdd(:FLAREBLITZ, 15000)
pbTutorNetAdd(:ERUPTION, 30000)

Backtrace:
[Tutor.net] Tutor.net.rb:904:in `pbTutorNetAdd'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
[Following Pokemon EX] Refresh.rb:268:in `update'

in meta.txt files v21.1 still using a 20.1 version, and I found inside tutornet.rb still using a SpriteWrapper..
but SpriteWrapper in v21.1 doesn't exists, replacing by BitmapWrapper.
I think, this is a same files files in different name zip files.
from what you said i didnt understand if you are using the v21.1 plugin on v20.1 essentials or the v20.1 plugin on v21.1 essentials.
but please choose the appropriate version for your game. Then if there are still issues, we can figure them out. Although I just downloaded (just in case) my v21.1 tutor.net and tried it in a clean essentials v21.1 and its working just fine
 
Last edited:
from what you said i didnt understand if you are using the v21.1 plugin on v20.1 essentials or the v20.1 plugin on v21.1 essentials.
but please choose the appropriate version for your game
I do,
I'm using a v21.1 tutornet in my project using a Ess v21.1 too
 
At first,GOD BLESS U that u can understand what i say as follow.......I come from a non-native English speaking country...
I recently installed your plugin .It looks so great!
But,when i debug my fangame(ess21.1),it runs error:

Error in Plugin: [Tutor.net]
Exception: NameError
Message: uninitialized constant SpriteWrapper
Backtrace:
[Tutor.net] Tutor.net.rb:113:in `<main>'

So,i change all the "SpriteWrapper" to "Sprite" in "Tutor.net.rb".
Then,the new error is:

Exception: NoMethodError
Message: undefined method `tutornet' for nil:NilClass

i really dont know how can i do...
Thank u for ur plugin, although I can't use it now.
 
At first,GOD BLESS U that u can understand what i say as follow.......I come from a non-native English speaking country...
I recently installed your plugin .It looks so great!
But,when i debug my fangame(ess21.1),it runs error:

Error in Plugin: [Tutor.net]
Exception: NameError
Message: uninitialized constant SpriteWrapper
Backtrace:
[Tutor.net] Tutor.net.rb:113:in `<main>'

So,i change all the "SpriteWrapper" to "Sprite" in "Tutor.net.rb".
Then,the new error is:

Exception: NoMethodError
Message: undefined method `tutornet' for nil:NilClass

i really dont know how can i do...
Thank u for ur plugin, although I can't use it now.
when did you download?

i updated the v21 download, can you please get that and tell me if it works now
because i updated the download 2 days ago as mentioned above and it works for ardicoozer
 
when did you download?


because i updated the download 2 days ago as mentioned above and it works for ardicoozer
30.8.2024 I try to use ur plugin.
Thanks,i will download the lastest version and try to install it again.
 
30.8.2024 I try to use ur plugin.
Thanks,i will download the lastest version and try to install it again.
just make sure to choose the [v21.1] one
"SpriteWrapper" has been changed to "Sprite"
 
I'm having a problem. I'm using Pokémon Essentials v21.1 with v1.2.3 of this plugin. Here's the error message:

Script error in event 2 (coords 2,3), map 76 (PokéMart)
Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

***Full script:
pbPokemonMart([
:POKEBALL, :ANTIDOTE,
:POTION
])

Backtrace:
[Tutor.net] TM to Tutor.rb:180:in `pbPokemonMart'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
[Following Pokemon EX] Refresh.rb:275:in `update'

This happens when interacting with a typical mart merchant. I think there's a problem with the whole PokemonMartScreen section. Here's the code this plugin uses for that:
class PokemonMartScreen

def pbBuyScreen
@scene.pbStartBuyScene(@stock, @adapter)
item = nil
loop do
item = @scene.pbChooseBuyItem
break if !item
quantity = 0
itemname = @adapter.getDisplayName(item)
itemnameplural = @adapter.getDisplayNamePlural(item)
price = @adapter.getPrice(item)
if @adapter.getMoney < price
pbDisplayPaused(_INTL("You don't have enough money."))
next
end
if GameData::Item.get(item).is_important? || GameData::Item.get(item).is_machine?
next if !pbConfirm(_INTL("So you want {1}?\nIt'll be ${2}. All right?",
itemname, price.to_s_formatted))
quantity = 1
else
maxafford = (price <= 0) ? Settings::BAG_MAX_PER_SLOT : @adapter.getMoney / price
maxafford = Settings::BAG_MAX_PER_SLOT if maxafford > Settings::BAG_MAX_PER_SLOT
quantity = @scene.pbChooseNumber(
_INTL("So how many {1}?", itemnameplural), item, maxafford
)
next if quantity == 0
price *= quantity
if quantity > 1
next if !pbConfirm(_INTL("So you want {1} {2}?\nThey'll be ${3}. All right?",
quantity, itemnameplural, price.to_s_formatted))
elsif quantity > 0
next if !pbConfirm(_INTL("So you want {1} {2}?\nIt'll be ${3}. All right?",
quantity, itemname, price.to_s_formatted))
end
end
if @adapter.getMoney < price
pbDisplayPaused(_INTL("You don't have enough money."))
next
end
added = 0
quantity.times do
break if !@adapter.addItem(item)
added += 1
end
if added == quantity
$stats.money_spent_at_marts += price
$stats.mart_items_bought += quantity
@adapter.setMoney(@adapter.getMoney - price)
@stock.delete_if { |item| GameData::Item.get(item).is_important? && $bag.has?(item) }
movelist=[]
for entry in $player.tutorlist
movelist.push(entry[0])
end
@stock.delete_if { |item| GameData::Item.get(item).is_machine? && movelist.include?(GameData::Item.get(item).move) }
pbDisplayPaused(_INTL("Here you are! Thank you!")) { pbSEPlay("Mart buy item") }
if quantity >= 10 && GameData::Item.exists?(:PREMIERBALL)
if Settings::MORE_BONUS_PREMIER_BALLS && GameData::Item.get(item).is_poke_ball?
premier_balls_added = 0
(quantity / 10).times do
break if !@adapter.addItem(:PREMIERBALL)
premier_balls_added += 1
end
ball_name = GameData::Item.get(:PREMIERBALL).name
ball_name = GameData::Item.get(:PREMIERBALL).name_plural if premier_balls_added > 1
$stats.premier_balls_earned += premier_balls_added
pbDisplayPaused(_INTL("And have {1} {2} on the house!", premier_balls_added, ball_name))
elsif !Settings::MORE_BONUS_PREMIER_BALLS && GameData::Item.get(item) == :POKEBALL
if @adapter.addItem(:PREMIERBALL)
ball_name = GameData::Item.get(:PREMIERBALL).name
$stats.premier_balls_earned += 1
pbDisplayPaused(_INTL("And have 1 {1} on the house!", ball_name))
end
end
end
else
added.times do
if !@adapter.removeItem(item)
raise _INTL("Failed to delete stored items")
end
end
pbDisplayPaused(_INTL("You have no room in your Bag."))
end
end
@scene.pbEndBuyScene
end

end


alias tutornet_pbPokemonMart pbPokemonMart
def pbPokemonMart(stock, speech = nil, cantsell = false)
movelist=[]
[COLOR=rgb(251, 160, 38)] for entry in $player.tutorlist #this is line 180[/COLOR]
movelist.push(entry[0])
end
stock.delete_if { |item| GameData::Item.get(item).is_machine? && movelist.include?(GameData::Item.get(item).move) }
tutornet_pbPokemonMart(stock, speech = nil, cantsell = false)
end

end
I assume the problem is something at line 180 in this code contradicts something in the Essentials scripts.

Edit to this post instead of adding a new one:
I tried a few different ways to get around this issue. What works so far is deleting the above code from the plugin (located in TM to Tutor.rb) so that this plugin doesn't overwrite the way marts work. I'm able to compile without error, I can use mart vendors without error, and I can use the Tutor.net service without error. Comparing the deleted code with the mart handling in the base Essentials package, all I'm missing out on is having tutor moves available for purchase from marts. I wasn't planning on using that anyway. Aside from this one problem this plugin seems to work fine.
 
Last edited:
Back
Top