Battle Error

File - Compress Game Data
Btw, if you don't find any problems with this when you get it and I still have said problems, it's most likely because you've told me to exclude the RTP data, which may have been a contributing factor?

And since this contains files I can't freely distribute, I'm going to have to link it in a private discussion.
Btw, if you don't find any problems with this when you get it and I still have said problems, it's most likely because you've told me to exclude the RTP data, which may have been a contributing factor?
This can only happen if you modified your RTP-data, and in that case we found the problem: a mistake while editing RTP data (which shouldn't be edited anyway, because all edits should go into the projects, not the RTP.
This can only happen if you modified your RTP-data, and in that case we found the problem: a mistake while editing RTP data (which shouldn't be edited anyway, because all edits should go into the projects, not the RTP.
Well no, I haven't...
Problem solved:

You can only equip weapons from the equip screen, not from the inventory screen - and the equip screen had been renamed by one of the scripts, so I had to look for the correct menu option...
Hooray for silliness! Which means we've got one thing left before we can close the thread (then Shaz closes the thread)

Anyways, updated the OP with script addition. Let's actually focus on solving the original problem now, before I get

myself into trouble.

EDIT:  Maybe you could try using that dev copy of my game to find the problem with the scripts, see what you can dig up that I can't?
haha - I love it when there's a simple solution.


Alright - what's the remaining issue then?
Every time I try to battle in the game I'm making, I come up with this:

Spoiler
[IMG]http://s2.postimg.org/5b5q5l5uh/PROBLEM1.png[/IMG]
Spoiler
Here's the script line mentioned in the error:

[IMG]http://s2.postimg.org/e7l3n9luh/PROBLEM2.png[/IMG] 
The extra scripts I'm using are:

TDS Battleback Stretch (http://forums.rpgmakerweb.com/index.php?/topic/417-battleback-stretch/ See Post #17)

All three scripts of the EB Battle system (http://rmrk.net/index.php/topic,47693.0.html)

FP inventory system (http://www.rpgmakervxace.net/topic/3812-fp-inventory-system/)

Remember Event Position (http://forums.rpgmakerweb.com/index.php?/topic/1853-remember-event-position/)

DT's Game Over Menu (http://forums.rpgmakerweb.com/index.php?/topic/1719-game-over/)

The Extra Game_CharacterBase script I got from buying the HF pack

This
It is saying the icon index is nil.


Now, I'm not sure if this might be because something in your database does not HAVE an icon set, or if it's something in one of the custom scripts. I'd be looking at the EB Battle System first from the list above.


Did you make any changes to the battle script for customization? I see it has default icons to use for actor commands. If you've added new commands, you may need to add a new icon to that list.


If that doesn't help point you in the right direction, install this script temporarily, play with the console on (in the Game menu), and when it crashes, scroll up so you can see the beginning of the error message in the console and take a screenshot of that. That will tell us exactly which script, and which line, is calling that method and passing a nil icon index.
Weird, the pictures I posted are messing up... Further investigation reveals that the site I used is down right now, should reappear when it comes back up.

It is saying the icon index is nil.

Now, I'm not sure if this might be because something in your database does not HAVE an icon set, or if it's something in one of the custom scripts. I'd be looking at the EB Battle System first from the list above.

Did you make any changes to the battle script for customization? I see it has default icons to use for actor commands. If you've added new commands, you may need to add a new icon to that list.
I don't know how to script, so no.

If that doesn't help point you in the right direction, install this script temporarily, play with the console on (in the Game menu), and when it crashes, scroll up so you can see the beginning of the error message in the console and take a screenshot of that. That will tell us exactly which script, and which line, is calling that method and passing a nil icon index.
Spoiler
[IMG]http://i39.tinypic.com/2qwlgzb.png[/IMG]
...I did that right, right?

EDIT: sigh, this other site has an auto resize I can't disable. Zoom in for now.
EDIT: sigh, this other site has an auto resize I can't disable. Zoom in for now.
Perhaps not, but you could make the screenshot with [alt]-[PrtScrn] instead of only [PrtScrn], or you could open the screenshot in paint (or any other graphic program), select only the error message instead of your entire screen, and crop to that part only before saving again.

Both variants will remove the unneccessary other parts of your screenshot.
Perhaps not, but you could make the screenshot with [alt]-[PrtScrn] instead of only [PrtScrn], or you could open the screenshot in paint (or any other graphic program), select only the error message instead of your entire screen, and crop to that part only before saving again.

Both variants will remove the unneccessary other parts of your screenshot.
including the console?
you could do two screenshots, or in this specific case you could have simply said that there is no output to the console - which either means that you installed the checking script wrong, or that the error wasn't caused by a defective iconset but by a mistake in the scripts or the notetags somewhere.

Please try the following backtracer script (that checks the function structure instead of the picture structure):

http://himeworks.wordpress.com/2013/06/09/custom-main-full-error-backtrace/

ATTENTION: Please check the installation instruction, this script is NOT installed in the usual way!!

So make sure you copy the main and store it in a text file before using this!
you could do two screenshots, or in this specific case you could have simply said that there is no output to the console - which either means that you installed the checking script wrong, or that the error wasn't caused by a defective iconset but by a mistake in the scripts or the notetags somewhere.

Please try the following backtracer script (that checks the function structure instead of the picture structure):

http://himeworks.wordpress.com/2013/06/09/custom-main-full-error-backtrace/

ATTENTION: Please check the installation instruction, this script is NOT installed in the usual way!!

So make sure you copy the main and store it in a text file before using this!
Site I normally use is working now, so

Spoiler
[IMG]http://s9.postimg.org/xvsj9e3jj/you_don_t_say.png[/IMG]
Looks like Shaz was right on target: the script fails when creating the commands for the actors.

I would check the script EB Battle Core, line 137 if there is any additional information there what command is about to be created, and then I would check the command configuration of the script as to where the icons for each command are defined. If both cases fail, you can also look in line 330 of that script since that is where the command window is originally created (each line in the console stands for an executed function in the stack while the error was given, so all of them are connected to the error - but the default scripts are usually fine if you didn't change them).

Since the other bughunting script didn't list a graphic as missing, most probably you have added a command to your game by another script without defining an icon in the battlescript. Please check that yourself, I'm short on time at the moment.
Looks like Shaz was right on target: the script fails when creating the commands for the actors.

I would check the script EB Battle Core, line 137 if there is any additional information there what command is about to be created, and then I would check the command configuration of the script as to where the icons for each command are defined. If both cases fail, you can also look in line 330 of that script since that is where the command window is originally created (each line in the console stands for an executed function in the stack while the error was given, so all of them are connected to the error - but the default scripts are usually fine if you didn't change them).

Since the other bughunting script didn't list a graphic as missing, most probably you have added a command to your game by another script without defining an icon in the battlescript. Please check that yourself, I'm short on time at the moment.
Line 137:

Spoiler
Code:
     draw_icon(Earthboundish::ActorIcons[command_name(index)], x, y, command_enabled?(index))   end
 

Line 330:


Code:
     @actor_command_window = Window_ActorCommand.new



 

...Because I have no idea what you mean since I can't script '-'

 

Remember I said that earlier I was going to attempt to contact the original creator of the script?

 

Well I have, and the problem has since been solved.

 

 

Now we can lock this cursed thread \o/

 

Nope! Now when I enter battle in game I get this error (not my screenshot, but is still the same error)

Spoiler
[IMG]http://i109.photobucket.com/albums/n52/dreamslayer7/sad_zpse01fa8c6.png[/IMG]
Sorry - I am locking this topic now, please make a new topic for the new error.


And don't forget to tell us what you've changed, in case that the change created the error


(originally the error was caused by you having renamed the command in the battle, but not in the icon assignment of the script - ingame you were using the "matter" command, but the icon list was still assigned with a "Magic" command, but no "Matter"-Line. If that is the only thing you changed, then you don't need to list that change, because then the new error is exactly that: an entirely different, new error.


closed

Original thread: https://forums.rpgmakerweb.com/threads/battle-error.19020/