Two script errors after installing and playing with bunch of new scripts.

I picked up once more my first game project since it's been collecting dust for months and started restructuring some things and began taking advantage of all that I've learned up to now and just really giving it a proper cleaning, organzing, adding features and such. I've snatched up quite a few scripts from the MasterScript list and have just put some in. I've been experimenting with what I installed, carefully working out conditions so that I'm only making use of these scripts, just going through my usual routine after I install something new which is, test the tits off of it. Anyway, I've hit two errors that I'm iffy on. i kind of suspect what might be causing one but me not being a scriptor am not sure how to cleanly resolve the issue on my own. Here are the two issues and some comments about them:

This is the Dark Cloud 2 Weapons script created by xBrokenSin, Version 1.02

(great looking script, very interesting)

When I try to unequip a weapon:
Script "WeaponLevelUp" line 1035: ArgumentError occurred.
Comparison of NilClass with 1 failed.

This one happens right when I try to unequip my test weapon. I've looked over the actor, the class, the weapon and from what I see things look in order. I'm not entirely sure what this error is telling me.

The other one is...:

When I select Fight from the battle menu(not attack where all the actions are, just Fight, the very first menu):
Script 'Game_BattlerBase' line 723: TypeError occurred.
No implicit conversion from nil to integer.

This one, I just don't know what's up at all. Here are all the scripts that I've just added though:

Actor Alt Attacks by...wow the author name isn't in the script actually.. it was just a really small section for changing the default attack skill per actor. But it looks like I don't have the name on this one. I got it off of the master script list though...

Yanfly Weapon Attack replace

Element Growth script by Somerville(sweet!)

Dark Cloud 2 Weapons script created by xBrokenSin, Version 1.02

That's it right now. And hopefully that's all.

I'll get back to this tomorrow. Calling it a night...
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Hey, can you add links to the forum thread or blog post where you got the scripts, so we can find them quickly without searching?


Sometimes you can resolve script errors simply by changing the order of the scripts.


However, the first thing I would look at in your situation is whether you started a new game after installing all the scripts, or have loaded an earlier save file? That is a BIG issue that you'll encounter a LOT when you save a game, add extra scripts, then resume your save file. If you're playing from a save file created prior to adding the scripts, go and start a new game and see if you still get those errors.
EDIT 2:

Replacing the Dark Cloud script with the Fomar one seems to have solved all my issues. There are no crashes, this one is a little easier to handle although is less flexible. Not a problem.

EDIT: I'm probably going to switch out the Dark Cloud 2 weapon script with another I've found since this one seems to not have much active support and going through the topic, I appear to have the latest version but there were lots of posts about issues with class crashes. So I'll see if both errors are corrected when this is done. I thought there would be more scripts on the list for weapon leveling but so far I only noticed two. This one and one by Fomar, which I'm going to try today..

Here is the Actor Specific Normal attack script:

http://rmrk.net/index.php/topic,44514.0.html

Here is the Dark Cloud 2 script:

http://forums.rpgmakerweb.com/index.php?/topic/1383-dark-cloud-2-weapons-ace/

Yanfly Weapon attack replace:

http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/weapon-attack-replace/

Somerville Element Growth:

http://pastebin.com/raw.php?i=vCyyG5Ze

And for your questions:

I preserved the game data to keep everything I made from the beginning. I created a new project, replaced the Game Data with my old game data. Then went in and did a bunch of clean up of skills and other things in the database, not counting the events so far. I did not start the game from a save file. There were no save files.

Original thread: https://forums.rpgmakerweb.com/threads/two-script-errors-after-installing-and-playing-with-bunch-of-new-scripts.25024/