v21.1 receive item crashes game

This thread pertains to v21.1 of Pokémon Essentials.

Thunderbird games

Novice
Member
Joined
Jan 1, 2022
Posts
35
Age
23
the game will crash when ever i recieve a item it crashes the game

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.0]
[EBDX v1.4.1 (E21)]

Script error in event 9 (coords 10,1), map 2 (frost test)
Exception: ArgumentError
Message: Invalid argument passed to method.
Expected -1 to be one of [Symbol, GameData::Item, String], but got Integer.

***Full script:
pbItemBall(:LEFTOVERS)
Backtrace:
Validation:29:in `validate'
GameData:111:in `try_get'
Item:76:in `icon_filename'
Item_Sprites:78:in `item='
Item_Sprites:22:in `initialize'
[Item Find] script.rb:40:in `new'
[Item Find] script.rb:40:in `pbStartScene'
[Item Find] script.rb:122:in `register'
[Item Find] script.rb:137:in `pbItemBall'
[Elite Battle: DX] EBDX Randomizer.rb:318:in `pbItemBall'
 

SkyArmyRecru1t

Pokémon Master
Member
Joined
Aug 25, 2017
Posts
152
Age
23
Well the script is right so maybe it's an issue with one of your plugins? Have you tried removing a plugin and getting the item to see if one of those are causing the issue?
 

A.I.R

From a separated Universe
Member
Joined
Feb 28, 2023
Posts
84
it mentions EBDX rendomizer.rb:318, that can ve a problem with the randomizer. Why don't you delete that .rb file from plugins folder or remove ebdx. I'm not telling you to stop using it but if removing EBDX (or precisely the Randomizer) solves the problem, you can be sure a problem with the v21 port.
 

Thunderbird games

Novice
Member
Joined
Jan 1, 2022
Posts
35
Age
23
it mentions EBDX rendomizer.rb:318, that can ve a problem with the randomizer. Why don't you delete that .rb file from plugins folder or remove ebdx. I'm not telling you to stop using it but if removing EBDX (or precisely the Randomizer) solves the problem, you can be sure a problem with the v21 port.
tried it just got the same error minus the randomiser part

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.0]
[EBDX v1.4.1 (E21)]

Script error in event 1 (coords 64,67), map 18 (Route 1)
Exception: ArgumentError
Message: Invalid argument passed to method.
Expected -1 to be one of [Symbol, GameData::Item, String], but got Integer.

***Full script:
pbReceiveItem(:ORANBERRY, 3)

Backtrace:
015:Validation:29:in `validate'
100:GameData:111:in `try_get'
127:Item:76:in `icon_filename'
269:Item_Sprites:78:in `item='
[Item Crafting UI Plus] 001_UI_ItemCrafting.rb:330:in `item='
269:Item_Sprites:22:in `initialize'
[Item Crafting UI Plus] 001_UI_ItemCrafting.rb:324:in `initialize'
[Item Find] script.rb:40:in `new'
[Item Find] script.rb:40:in `pbStartScene'
[Item Find] script.rb:122:in `register'
 

Thunderbird games

Novice
Member
Joined
Jan 1, 2022
Posts
35
Age
23
Which Item find script is it? I believe the issue is because it's the v19 version of the script.
ItemIconSprite.new(X,Y,-1,@viewport), the -1 needs to be nil.
yeah you were right it was this plugin, i couldn't stop the error so i just deleted it from the plugin folder items are all working now
 
Top