need help with two scripts possibly overlapping

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
http://www.rpgmakervxace.net/topic/1369-actor-clone-script/


http://www.rpgmakervxace.net/topic/26029-party-storage-system-updated-v12/


script line 2015:NoMethodError occured.


undefined method 'party_lock' for nil:NilClass


the above error keeps occuring when i try to deposit one or more of my characters into the unit storage provided by the party storage system 1.2


im not sure why it keeps happening and i would love some help!!!


note: the line error appears to be for the party storage system. my knowledge of programming language is minimal, i just got back into game development a few days ago.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Have you started a new game or did you load an old savefile when playing?


In 90% of all cases, "undefined for nil-class" happens if you're loading an old savefile that has become incompatible by adding a script. A lot of scripts need to start with "new game" to initialise themselves.


That said, your error message is incomplete and would only partially help even if you typed it completely (the message is missing the script name).


A lot more help in bughunting would be the backtracer output.


Please follow the link "How to use a script" in my signature, it not only explains the most common errors but also describes the bughunting methods - you need to use the bakctracer script linked there for a better error list (unless one of the other tips there already solves your problem)
 

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
i appear to have followed all instructions correctly. i read through your how to use artice and it was helpful. most of it i already knew just from general programming. i did start a new game and was unable to store any of my characters properly. after installing your backtracer i am now getting a different error when adding a new party member.


Script 'Game_Interpreter' line 1411: ARgumentError occured.


Error ocurred, check the debug console for more information.


Game_Interpreter:1411:in `eval': wrong number of arguments (2 for 1), ArgumentError
        from Game_Interpreter:1411:in `eval'
        from Game_Interpreter:1411:in `command_355'
        from Game_Interpreter:197:in `execute_command'
        from Game_Interpreter:103:in `run'
        from Game_Interpreter:500:in `command_117'
        from Game_Interpreter:197:in `execute_command'
        from Game_Interpreter:103:in `run'
        from Game_Interpreter:60:in `block in create_fiber'
 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Please provide a screenshot of the event/how you're adding a party member.


"Wrong number of arguments" usually means that there is an error in the way the command is given
 

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
basically you suceed in a tame check, then you clone actor 2 and add it as a party member. this appears to be a problem with the backtracer script, however i could be wrong.


Screenshot (1).png
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Why do you clone the actor two times and discard the first clone?


By the way - you get that error because the clone script is no longer executed - you did something wrong when installing the backtracer, something that disabled the clone script, because that clone script changes the game_actor to needing two argunments, and the new error tells that the engine now expects a game actor with only one argument (as default)


EDIT: And you'll need a compatibility patch for those scripts to be able to work together.


The party storage works by partially using $game_actors in a recursive way, and I really doubt that this could be made compatible with simple methods. You'll need a scripter for that...


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 
Last edited by a moderator:

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
Sorry first time using this site and in a hurry. I don't clone them twice, I have actor two which is a slime and then a clone of actor two added to the party. Any suggestions on a script I should use two replace one or both? I've done some searching but haven't found anything. I'm getting rid of the party storage script for the time being. If it was something a game that didn't let you catch enemies but had set party members I know enough to setup a storage system myself.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
 I don't clone them twice,


You have three lines in your script command, two of them containing the command to clone actor 2 - you misread the instruction on the script


$game_actor[2, true] is the command that clones actor 2 - you used that command twice, once in the first line (discarding the clone because you didn't use its ID anywhere) and a second time in the second line (where you store the new ID of the second clone into a variable).


Reread the script description - the scripter told you to use $game_actor[2, true] for cloning and then suggested you do that cloning in a way to store the resulting ID, but you should never have used both variants at the same time.
 

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
Thank you for noticing. I will go and fix it but that won't fix the bug will it?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
no, to fix the bugs the script itself needs a modification - but why do you want that storage anyway?


The default engine automatically places all actors beyond the battlernumber into the reserve, and as far as I can see the only difference is that reserve member can use their skills on the map while the other script makes that impossible. If that really is the only difference, you might be able to achieve that with other scripts.
 

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
Wait really? That's awesome! But how do I pull characters out of he reserve through a separate menu? I don't want the player to have access to the reserve on every screen
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Battle access is by the formation menu - a default menu that can even be activated and deactivated by event command (third page left, "Change Formation Access"). Only the first four members will appear in battle (this might be change by other scripts)


The only difference between reserve and the storage script is that the reserve has unlimited size and all actors can use their skills on the map any time, but the battle is limited to battlemembers. The storage script places a limit on the reserve and stores all additional actors in a way that their skills aren't available. This last part won't be possible with the default reserve
 

nuto123

Villager
Member
Joined
Feb 22, 2016
Messages
9
Reaction score
0
First Language
english
Primarily Uses
so it took some fenagling but i got it. thank you so much for your help!!!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top