[Ace] Battle Error 2

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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:

Here's the script line mentioned in the error if it means anything:

           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:

       "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
 
Last edited by a moderator:

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Didn't read the other thread.


Are you loading this from a save file?
 
Last edited by a moderator:

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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:


Didn't read the other thread.

Are you loading this from a save file?
...huh
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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"
 

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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...
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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?
 
Last edited by a moderator:

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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...
 

Lunarea

Artist
Global Mod
Joined
Mar 1, 2012
Messages
8,840
Reaction score
7,797
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.
 

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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 :odometer_hp attr_accessor :odometer_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)
 
Last edited by a moderator:

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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 :odometer_hp attr_accessor :odometer_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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

HowAboutNo?

Banned User
Veteran
Joined
Oct 13, 2013
Messages
49
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
What exactly was the fix? Changing the window size would have absolutely NO effect.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
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'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top