[Ace] Battle Error 2

For those who haven't seen the Battle Error thread: http://forums.rpgmakerweb.com/index.php?/topic/19020-battle-error/

For those who can't be bothered, in the game I'm making, when I enter a battle in game (battle testing is fine, apparently) I get this error:

Spoiler
[IMG]http://i109.photobucket.com/albums/n52/dreamslayer7/sad_zpse01fa8c6.png[/IMG]
Here's the script line mentioned in the error if it means anything:

Spoiler
           damage = actor.odometer_hp > 0 ? 1 : - 1
The extra scripts I'm using are:

TDS Battleback Stretch (http://forums.rpgmak...leback-stretch/)

All three scripts of the EB Battle system in the correct order (Core, Sprite, Odometer (In fact, it doesn't matter the order of the sprite and odometer scripts)) (http://rmrk.net/inde...ic,47693.0.html)

FP inventory system (http://www.rpgmakerv...ventory-system/)

Remember Event Position (http://forums.rpgmak...event-position/)

DT's Game Over Menu (http://forums.rpgmak...1719-game-over/)

The Extra Game_CharacterBase script I got from buying the HF pack.

NOTE:

No, progressively disabling my scripts until it works (with the exception of the EB scripts), then running it with each individual one still results in the error.

No, I do not have a script that changes my icon graphics, or graphics bugs or whatever. All my extra scripts are listed above!

Yes, I am using this in VX Ace.

No, I can't script.

Yes, I have made changes to one of the EB scripts, but it's minor and irrelevant. If you really want to know:

Spoiler
       "Attack" => 2201,        "Matter" => 2224,       "Healing" => 2224,       "Omnimatter" => 2224,       "Antimatter" => 2224,       "Psychic Powers" => 2224,       "Special" => 2224,       "Defend" => 8673,       "Items" => 2212,    "Flee" => 8687,      }  ActorIcons.default = 0 Which is lines 29 to 40 in the original script.
Don't ask what lines the code I have put in the spoiler above, which explains what lines the code is on (This may seem pointless, but there actually are people that silly out there).

If you've read the original Battle Error thread, remind me not to ask another question.

Don't scan the thread, then attempt to answer the problem with a process that is most likely already been put forward and attempted (or is listed here), or ask for a screenshot or code line that has already been given.

What will I do if you haven't paid attention to these notes (or even this entire post)? Quote the specific note (or part of the post) that applies to what you've said.

No, the error in this post and the original post is not the same.

EDIT: Title changed cause Celi moved
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
The methods for finding an error are always the same - could you please install the backtracer script again, and post a screenshot of the output that shows all functions involved with the error?

However, just looking at that line with the error I can guess that the original scripter made a mistake there, because the logic sequence is without () and thereby randomized depending on how the interpreter priorises.

You could try the following variant (I don't know if that even works, because I don't know what that line is supposed to do):

Code:
damage = ((actor.odometer_hp > 0) ? 1 : - 1)
If that doesn't help, we need the backtracer output mentioned above.
Didn't read the other thread.


Are you loading this from a save file?
The methods for finding an error are always the same - could you please install the backtracer script again, and post a screenshot of the output that shows all functions involved with the error?

However, just looking at that line with the error I can guess that the original scripter made a mistake there, because the logic sequence is without () and thereby randomized depending on how the interpreter priorises.

You could try the following variant (I don't know if that even works, because I don't know what that line is supposed to do):

damage = ((actor.odometer_hp > 0) ? 1 : - 1)If that doesn't help, we need the backtracer output mentioned above.
The line controls the odometer graphic, usually problems with that line suggest that the user does not have the graphic, however I do, so that's not the case.

Here's the screen:

Spoiler
[IMG]http://s2.postimg.org/lijev9g3t/console.png[/IMG]

Didn't read the other thread.

Are you loading this from a save file?
...huh
Sorry, I assumed you are familiar with RPG maker games.


When you launch the game you have the option of starting a new game or continuing from an existing save file. Continuing from an existing save file is what is meant by "loading from a save file"
Sorry, I assumed you are familiar with RPG maker games.

When you launch the game you have the option of starting a new game or continuing from an existing save file. Continuing from an existing save file is what is meant by "loading from a save file"
OH RIGHT. I thought you meant the scripts because anyone with a script problem wouldn't necessarily believe loading a project save file was relevant and I thought you were posting pointless in a thread.

Yes, I am. I can't see it being relevant, though...
Many scripts are known for not having compatibility with save games due to the way the data is initialized. Additional scripts are used to patch this behavior.


I would assume the error doesn't occur if you start a new game?
Many scripts are known for not having compatibility with save games due to the way the data is initialized. Additional scripts are used to patch this behavior.

I would assume the error doesn't occur if you start a new game?
Haven't tried it; don't see the point in doing so.

Because what's the point of trying it with a new game if I want to have this game with this script?

Unless when you say saved game, you mean I started making the game, saved it, then added the script. Cause I started the game, added the script, saved it. So...
I think you misunderstood. He's not saying to put a script in a new project.

Just whether you choose the first option (New Game) when you playtest, or whether you choose the second option (Continue). If you choose the second option and that save file is from before the script was added, it can cause issues.
I think you misunderstood. He's not saying to put a script in a new project.

Just whether you choose the first option (New Game) when you playtest, or whether you choose the second option (Continue). If you choose the second option and that save file is from before the script was added, it can cause issues.
In which case, that's not the case.
Yeah, this is exactly the kind of line I would expect to cause a script to crash, if you had played, saved, added the script, then tried to resume from your saved game.

It's saying actor.odometer_hp is nil. And looking at the script, here's where odometer_hp comes from:

class Game_Actor attr_accessor 😮dometer_hp attr_accessor 😮dometer_mp alias coz_ebisohd_gmactr_setup setup def setup(actor_id, *args) coz_ebisohd_gmactr_setup(actor_id, *args) @odometer_hp = 0 @odometer_mp = 0 end That means odometer_hp is initialized when the actor is added to your party.Are you SURE you are not playing from a saved game? You definitely started a new game after adding the script and still got this error?

The error you are getting is saying that THIS version of the Actor setup script was not run over one or more actors in your party. Which means actors were added to your party before this script was added (which means you are trying to load a saved game instead of starting a new game after adding the script)
Yeah, this is exactly the kind of line I would expect to cause a script to crash, if you had played, saved, added the script, then tried to resume from your saved game.

It's saying actor.odometer_hp is nil. And looking at the script, here's where odometer_hp comes from:

class Game_Actor attr_accessor 😮dometer_hp attr_accessor 😮dometer_mp alias coz_ebisohd_gmactr_setup setup def setup(actor_id, *args) coz_ebisohd_gmactr_setup(actor_id, *args) @odometer_hp = 0 @odometer_mp = 0 end That means odometer_hp is initialized when the actor is added to your party.Are you SURE you are not playing from a saved game? You definitely started a new game after adding the script and still got this error?

The error you are getting is saying that THIS version of the Actor setup script was not run over one or more actors in your party. Which means actors were added to your party before this script was added (which means you are trying to load a saved game instead of starting a new game after adding the script)
Positive.
Very strange.


I don't really expect this to make a difference, but can you go to the script and change lines 168 and 173 to look like this (just adding brackets):


damage = (actor.odometer_hp > 0 ? 1 : - 1)


and


damage = (actor.odometer_mp > 0 ? 1 : - 1)


If that doesn't make a difference, insert this line temporarily after 165


p actor


then when it crashes, look at the console and see if you can get screenshots of each page (I wish you could copy/paste from the console!) and post so we can take a peek.


Actually, can you also go into the script editor and do a global search (Ctrl+Shift+F) for Game_Actor - check the boxes to match case and search for whole word. Then take a screenprint of the search results and post them? I have a hunch that there could be one of two other issues.
fixed!

that's how all problems should be solved \o/

EDIT: You know what, lock it, I changed the size of the window and it fixed it.
What exactly was the fix? Changing the window size would have absolutely NO effect.

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