Shared bank by Lanthanum Entertainment Scripts

Just learning here, I have been getting this error

Script 'Share_Storage' line 1517:NoMethodError occurred.
undefined method 'id' for nil:NilClass.

When attempting to use the shared storage script. Any pointers would be very helpful.

I have a "banker" and when I try to put things into the shared bank I get this message.

Error_Shared_script.png

The script loads fine with the banker and I can choose to withdraw and to deposit I can also choose which slot I want to deposit for; but once I choose that slot it crashes.

Thanks in advance
Vethor
To make sure I had items to put in the shared bank I gave my party some.

items.png

Then opened the shared banker,

but there do not seem to be items in my party as read by the banker,

Sharing.png

I can deposit gold,

deposit gold.png

it completes and enters into the bank,

gold in bank.png

And when I try to see if there are items by hitting deposit it fails like this,

bank can not deposit.png

I hope this is helpful and explains it better than before.

Thank you for any help

Vethor
Hmmmm... Do you maybe have another script that modifies inventory? Its weird that it doesnt load those antidotes...it would also be good to check the set up part in case you missed something.

A screenshot of the event page itself is also good

Lastly, make sure that the folder where your game is , is enabled for file writing...
Script page:

Scripts.png

and the event page:

Event.png

I hope that helps.

I only have the two scripts one to give random chest loot, and the shared bank script.

Thanks

Vethor
Can you post the config part of the shared storage script?
Here is the config of the shared script:

Spoiler
Code:
module ADIKmodule SHARED_STORAGE# Primary folder where the save data will be placed# based on the default paths in your computer# set to nil if you don't want to use thisDATA_PATH = 'CURRENT'#~ Heres a list of parameters you can set the DATA_PATH into#~#~ AppData = Contains the full path to the Application Data directory of the logged-in user#~ LOCALAPPDATA = This variable is the temporary files of Applications.#~ CURRENT = Folder where the game is run from#~ !!!The following might require your game to run in admin mode!!!#~ ProgramFiles = This variable points to Program Files directory#~ CommonProgramFiles = This variable points to Common Files directory#Enter each subfolder paths after the primary folder here#The script automatically creates the folder path specified#FOLDER = [FOLDER1,FOLDER2,and so on]FOLDER = ["Storage"]#Filename for the storage fileNAME = "storage.rvdata2"#Does it autosave when you put items into it?#If False, then it only saves the storage once#the player saves his game#You'd pretty much want to set this to false#unless you're also autosaving the gameAUTOSAVE = true#Tag to make items not placeable in storageNON_STORAGE_TAG = //#Important: Do not remove!#======================================================BACKGROUND = []#======================================================#Background picture for the scene#Must be inside your Graphics\System folderBACKGROUND[0] = ""#Important: Do not remove!#======================================================SS_CATEGORY_WINDOW = []SS_CATEGORY_FONT = []#======================================================#Settings for the Deposit/Withdraw window#x,y,width,height,Windowskin,Deposit Text, Withdraw TextSS_CATEGORY_WINDOW[0] = [0,0,164,32,"Window.png","Deposit","Withdraw"]#Font name, font size, color (based on windowskin)SS_CATEGORY_FONT[0] = [Font.default_name,24,0]#Important: Do not remove!#======================================================CATEGORY_WINDOW = []CATEGORY_FONT = []#======================================================#Settings for the Item/Weapon/Armor/Key Item window#x,y,width,height,Windowskin,Item text, weapon text, armor text, key item text, gold text#set text to nil if you don't want it to showCATEGORY_WINDOW[0] = [164,0,380,32,"Window.png","Item","Weapon","Armor","Key Item","Gold"]#Font name, font size, color (based on windowskin)CATEGORY_FONT[0] = [Font.default_name,24,0]#Important: Do not remove!#======================================================PLAYER_WINDOW = []PLAYER_FONT = []#======================================================#Settings for the Player Item Header window#x,y,width,height,Windowskin, Player inventory textPLAYER_WINDOW[0] = [0,48,226,48,"Window.png","Player Inventory"]#Font name, font size, color (based on windowskin)PLAYER_FONT[0] = [Font.default_name,18,1]#Important: Do not remove!#======================================================STORAGE_WINDOW = []STORAGE_FONT = []#======================================================#Settings for the Storage Header window#x,y,width,height,Windowskin, Storage textSTORAGE_WINDOW[0] = [318,48,226,48,"Window.png","Storage"]#Font name, font size, color (based on windowskin)STORAGE_FONT[0] = [Font.default_name,18,1]#Important: Do not remove!#======================================================ITEM_LIST_PLAYER_WINDOW = []ITEM_LIST_PLAYER_FONT = []#======================================================#Settings for the player item window#x,y,width,height,Windowskin#You could set width and height to 0 to "remove"#the windowITEM_LIST_PLAYER_WINDOW[0] = [0,208,272,208,"Window.png"]#Font name, font size, color (based on windowskin)ITEM_LIST_PLAYER_FONT[0] = [Font.default_name,24,0]#Important: Do not remove!#======================================================ITEM_LIST_STORAGE_WINDOW = []ITEM_LIST_STORAGE_FONT = []#======================================================#Settings for the storage item window#x,y,width,height,Windowskin#You could set width and height to 0 to "remove"#the windowITEM_LIST_STORAGE_WINDOW[0]= [272,208,272,208,"Window.png"]#Font name, font size, color (based on windowskin)ITEM_LIST_STORAGE_FONT[0] = [Font.default_name,24,0]#Important: Do not remove!#======================================================NUMBER_MAX = []#======================================================#Maximum digits for item number selectionNUMBER_MAX[0] = 2#Important: Do not remove!#======================================================MAX_ITEM_NUMBER = []#======================================================#Formula for obtaining the maximum number#that each item can be placed in the storageMAX_ITEM_NUMBER[0] = "$game_party.max_item_number(item)"MAX_ITEM_NUMBER[1] = "SceneManager.scene.get_item_limit"#Important: Do not remove!#======================================================ITEM_NUMBER_WINDOW = []ITEM_NUMBER_FONT = []#======================================================#Settings for item number window#x,y,width,height,WindowskinITEM_NUMBER_WINDOW[0] = [240,156,32,32,"Window.png"]#Font name, font size, color (based on windowskin)ITEM_NUMBER_FONT[0] = [Font.default_name,18,0]#Important: Do not remove!#======================================================HELP_WINDOW = []HELP_FONT = []#======================================================#Settings for help window#x,y,width,height,WindowskinHELP_WINDOW[0] = [0,96,Graphics.width,64,"Window.png"]#Font name, font size, color (based on windowskin)HELP_FONT[0] = [Font.default_name,18,0]#Important: Do not remove!#======================================================CUSTOM_WINDOW = []CUSTOM_FONT = []CUSTOM_TEXT = []#======================================================#Settings for Custom Window#x,y,width,height,Windowskin#You could set width and height to 0 to "remove"#the windowCUSTOM_WINDOW[0] = [226,48,96,48,"Window.png"]#Font name, font size, color (based on windowskin)CUSTOM_FONT[0] = [Font.default_name,18,0]#Formula/Method to determine what is shown on the custom#windowCUSTOM_TEXT[0] = "$game_actors[1].name"CUSTOM_TEXT[1] = "SceneManager.scene.get_remaining_slots"#Important: Do not remove!#======================================================GOLD_WINDOW = []GOLD_FONT = []#======================================================#Settings for Gold Window of storage#x,y,width,height,Windowskin,Text#You could set width and height to 0 to "remove"#the windowGOLD_WINDOW[0] = [272,160,272,48,"Window.png","Gold: "]#Font name, font size, color (based on windowskin)GOLD_FONT[0] = [Font.default_name,18,0]#Important: Do not remove!#======================================================GOLD_P_WINDOW = []GOLD_P_FONT = []#======================================================#Settings for Gold Window ofparty#x,y,width,height,Windowskin,Text#You could set width and height to 0 to "remove"#the windowGOLD_P_WINDOW[0] = [0,160,272,48,"Window.png","Gold: "]#Font name, font size, color (based on windowskin)GOLD_P_FONT[0] = [Font.default_name,18,0]#Important: Do not remove!#======================================================GOLD_LIMIT = []GOLD_P_LIMIT = []#======================================================#Limit for storage goldGOLD_LIMIT[0] = "$game_party.max_gold"GOLD_P_LIMIT[0] = "$game_party.max_gold"#Important: Do not remove!#======================================================GOLD_NUMBER_WINDOW = []GOLD_NUMBER_FONT = []#======================================================#Settings for gold number window#x,y,width,height,WindowskinGOLD_NUMBER_WINDOW[0] = [240,156,32,32,"Window.png"]#Font name, font size, color (based on windowskin)GOLD_NUMBER_FONT[0] = [Font.default_name,18,0]#Key input for next storageNEXT_KEY = :c#Key input for prev storagePREV_KEY = :z
I did not edit past that line as the script says not to.
Its probably something to do with one of those setting . can you upload the project somewhere and send me a link in PM? I think it will be faster if I can check it myself since its pretty weird
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Could you please put that script into code tags and into a spoiler?  In fact, if you downloaded it and haven't made any mods, it would be much better for you to just provide a link.

I've only skimmed over the posts, so sorry if this has already been asked and answered - did you start a new game after you added the script, or continue a game that was started and saved before the script was added?  I ask because the error message you got is TYPICAL of errors caused by resuming saved games after adding a new script.  If you did resume a game, try to start a new one and see if you still get the error.

Original thread: https://forums.rpgmakerweb.com/threads/shared-bank-by-lanthanum-entertainment-scripts.45185/