Error when Saving or Continue existing game.

I've recently added a visual equip script to my game. Today, when trying to continue a game, I got this:
 
Error.11.16.15_zps6dk4muq0.png

 
 
 
Here's the line from Modern Algebra's Composite Character script where the error occurred:
 
VE_Script_Error_zpstjaovsgv.png

 
 
Modern Algebra's Composite Characters & Visual Equips
Yanfly and Todd's Autosave by BigJoshieC

Can anyone help me with a fix? I've created 45 character graphic files of equippable gear so far. Yes, character graphic files. 8 12-sprite characters per file. Armor and Weapons facing each direction. Over 4,000 sprites so far. I'd hate to have to give up the visual equipping after all that.
Does it happen when you start a new game?


I suspect that is likely your problem. Many scripts, especially those dealing with actors, set up extra data when the actor is first added to the party, and that then gets saved in your save file. If you start a game prior to adding the script, those actors will not have that information set up and saved, and will cause errors when you try to resume the saved game after adding the script.


Whenever you get weird errors like this after adding a script, always start a new game and see if the error still happens.
That's what I thought too, so I started a new game, and it wouldn't let me save it.

One of the features of the Autosave is that it pulls a copy of your character into the load map screen. The visual equip script allows your character to be made up of several layers. In my case, ten layers. I have a feeling that's where the hang up is, but I'm not sure.


Edit: Just tried it in my Test Project with both scripts with no problems. Going to test it further with the different composite layers and see what happens.

2nd Edit: I tested it in a new project with both scripts, and it worked fine. I pulled the Autosave script out of my actual game project, and it seemed to be working without it. Not sure why it's getting the nil array.


I placed the script back in, deleted all saved game files from my project folder, and all seems to be working now. Not sure why that fixed it, but it has.

Edit: Sorry about the double post. Meant to Edit the post.

Original thread: https://forums.rpgmakerweb.com/threads/error-when-saving-or-continue-existing-game.50711/