[Ace] Another Battle Error!

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://s18.postimg.org/5nyymy8tl/Untitled.png[/IMG]
Here's the script line mentioned in the error if it means anything:

Spoiler
actor.hp -= damage 
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.

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).

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.
that error basically means that the data types don't match.

Most probably somewhere you used a decimal number instead of an integer to calculate a number, and ruby automatically changed all following calculations to that format.

Try:

actor.hp -= damage.to_i

(forcing the damage variable to become integer)

If that doesn't work, then it'll be a longer search for the bug, and you can start again with the backtracer output to see where the values are calculated...
Somewhere, damage has been set to a boolean value rather than a numeric value.

Try changing lines 168 and 173 to add brackets around the whole thing after the =

So they'll look like this instead:

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

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

Maybe the issue is really the space between the - and the 1 at the end? Maybe it should be -1 instead of - 1

I'm honestly surprised that this script is out there like this, if that's what's causing the error. I'm wondering why you're the only one who's having these issues when I know others are using the script.

If that does NOT solve it, please go to your script, to line 169, and insert the following two lines before it:

p damagep actor.hpThen play with the console turned on, and let us know what the last two lines are when the game crashes.You know, we DO want to try and help you, but the kind of attitude in your "notes" is just a real turn-off, and yes, I do realize that one was specifically targetted at me, despite the fact that I have solved several issues for you. If you don't stop being so entitled about it, I just won't bother to answer your threads any more.

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