[BUG] Use item

Hi everyone,

I need help since yesterday, because of a script I can't use items.


AbOT5bF.png


I use this script for a storage trunk that works well.
(sorry if my english is bad, im not english :x)

I've moved this thread to Script Support. Thank you.



This isn't an engine bug. This is an issue you are having with the script, and, with some help, can likely be resolved.
Have you started a new game after installing the script? You have to do that, most of the time such errors happen when loading old save files that are now incompatible because of the added script.

If that is not the case, we need a link to the script and probably a screenshot of the backtracer output.
You can find a link to the backtracer script and a description how to use it in the tutorial "how to use a script" that is linked in my signature.
Thanks for your replies and sorry mlogan, I'm new to this forum and I'm not very good in English. Also, sorry for the double post, I thought this topic was deleted, but it has been moved.

I am a beginner on rpgmaker vx ace, I put the script in a new project but I'm not strong in script, I use this script for the chest of storage like I said because I have searched an alternative, but nothing.

The scripts come from:
https://github.com/RMEx/RME/tree/master/src

I took:
Commands.rb
Database.rb
Doc.rb
DocGenerator.rb
EvEx.rb
Incubator.rb
Internal.rb
RMESample.rb
RMESampleSDK.rb
SDK.Gui.rb
SDK.rb
Tools.rb
package.rb


In the console there is:

-EvEx.rb:374:in `use_item': undefined method `last_used_item=' for #<Game_Temp:0xa33e4b0 @common_event_id=0, @fade_type=0>, NoMethodError
from Scene_ItemBase:134:in `use_item'
from Scene_Item:72:in `use_item'
from Scene_ItemBase:65:in `on_actor_ok'
from Window_Selectable:212:in `call'
from Window_Selectable:212:in `call_handler'
from Window_Selectable:331:in `call_ok_handler'
from Window_MenuActor:21:in `process_ok'
from Window_Selectable:297:in `process_handling'
from Window_Selectable:276:in `update'
from Scene_Base:95:in `block in update_all_windows'
from Scene_Base:93:in `each'
from Scene_Base:93:in `update_all_windows'
from Scene_Base:49:in `update_basic'
from Scene_Base:41:in `update'
from Scene_Base:14:in `main'
from SceneManager:23:in `run'
from -EvEx.rb:4636:in `run'
from backtracer:10:in `block in <main>'

Thanks !
You didn't answer the question if that happens with a New game or with loading a saved file
If you are a beginner in using scripts, you really should not touch those scripts.
They are giant ones, even reading through all of that would take days, let alone working on them.
Their syntax doesn't help as well, they are all written in unusual ways (which I can only see as over-complicated, but that's just my opinion, I don't know what is their purpose, so can't tell if they need all those stuffs or not).

I can tell, however, that you don't need these scripts for sure.
There are many storage scripts out there which do the job just fine without the need of thousands of other useless code lines.
IMP wrote one (called Storage Boxes, if I remember right), Adik wrote one too (that's not his full name, I forgot the rest, sorry), and they both work. Search them on this forum, they both have a topic here.
Hi, sorry Andar :x
it happens with a new game because I don't have loading a saved file in my game.

Hi Sixth, thanks for you answer !

I will see with what you gave me, thank you very much because I looked everywhere but did not find, I will publish this message if I find 🙂

EDIT: Thanks Andar and Sixth for your answer 🙂
I will use the script of IMP.
you can close the topic. 😛

Original thread: https://forums.rpgmakerweb.com/threads/bug-use-item.85773/