Hime's Cover Target script always crashes my game as soon as I run it! Please help!

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,324
Reaction score
11,495
First Language
German
Primarily Uses
RMMV
even after applying the script!
As said abovbe the script was a workaround, not a solution.
and you can't put the same workaround to other errors, because it needs a different code for different errors.

So your only choice now is to apply the true solution: DELETE ALL SAVEFILES

And for later: whenevert you add (or remove) a script, you'll need to start new games as your savefiles have a high chance to become incompatible with the changed scripts
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
Another error crash! even after applying the script! A monster casted darkness (blinds target) and I get this crash

View attachment 263841


This time, coming from this script, multiple lines: https://himeworks.com/redirect.php?type=script&name=Cover_Conditions
OK, that proves my point that it wasn't Cover Targets' fault as predicted. :p
Let me check that new script...

EDIT

Can you paste the contents of all of the parameters it's passing to the evaluation method?

Ruby:
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    puts formula, a, b, i
    eval(formula)
  end

You'd mainly add that puts parameters call there to make it print all of those values on the console window. I'd need to get a look at the screenshot to get an idea of which parameter is the faulty one there.
 
Last edited:

MoltresRider

Moltres Rider/Dragon Whisperer
Regular
Joined
Apr 16, 2023
Messages
373
Reaction score
49
First Language
English
Primarily Uses
RMVXA
OK, that proves my point that it wasn't Cover Targets' fault as predicted. :p
Let me check that new script...

EDIT

Can you paste the contents of all of the parameters it's passing to the evaluation method?

Ruby:
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    puts formula, a, b, i
    eval(formula)
  end

You'd mainly add that puts parameters call there to make it print all of those values on the console window. I'd need to get a look at the screenshot to get an idea of which parameter is the faulty one there.
You mean of the script itself? I left everything as default. Unless I need to screenshot something else?

I did change one thing, in the cover conditions. I set the formula to 0 because I only want the dragon character to cover Justin, no ifs, ands, or buts
 

TheoAllen

Self-proclaimed jack of all trades
Regular
Joined
Mar 16, 2012
Messages
7,494
Reaction score
11,663
First Language
Indonesian
Primarily Uses
N/A
First error: Undefined method
You have to use a new game, not load a save file

Second error: eval, can't convert Fixnum to String
This is a script call error. But I don't believe that you would show us your cover condition.

Insert this script below Hime's
Code:
class Scene_Battle
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    p formula
    eval(formula)
  end
end
Save, and run your game again. When the crash happens, show us what the console window prints.

EDIT:
I did change one thing, in the cover conditions. I set the formula to 0
If you change the Global_Condition from "b.hp < b.mhp / 4 && (!i || !i.certain?)" to just 0, then that's why.

I only want the dragon character to cover
In that case just write "false", including the quote
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
I downloaded the CC script from Hime's website and left a note in Natalie's note box.

Ruby:
<cover condition>
b.hp < b.mhp / 2 && (!i || !i.certain?)
</cover condition>

Both the default condition and Natalie's custom cover condition worked smoothly.

For newbies, let me explain what I did.

I simply pasted a modification of the default condition. Instead of activating the "Hurry up! Cover me!" function after losing over 75% of her HP, I forced my other hero to run to cover her once she hit the 50% HP loss mark. The thing is that Eric had to have the Cover state from the beginning of the battle.

Take into consideration that the default Cover state configuration makes it vanish after just 1 turn... I had to change that. :S
 

MoltresRider

Moltres Rider/Dragon Whisperer
Regular
Joined
Apr 16, 2023
Messages
373
Reaction score
49
First Language
English
Primarily Uses
RMVXA
The script call I am assuming is what is in the notebox
Ruby:
<cover condition>
true
</cover conditions>
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
Why is it in plural?
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
This is the condition you've been looking for.

Ruby:
<cover condition>
b.id == 1
</cover condition>

Replace the ID I used there with Justin's.

And don't forget to provide a respectful feedback, if you don't mind.
 

MoltresRider

Moltres Rider/Dragon Whisperer
Regular
Joined
Apr 16, 2023
Messages
373
Reaction score
49
First Language
English
Primarily Uses
RMVXA
I did not realize you guys were looking for feedback.

@TheoAllen You said it was a script call error? There should be nothing calling scripts at the time of the crash. The crash happens when a monster puts a status effect on a party member. Also, I have not told anybody to cover anybody yet. So, I do not know why it would be calling the script related to the cover move. Nobody has even learned the cover move yet. That was going to happen in the next storyline.

@kyonides Hime's page about putting the scripts together told me to use "true", and you say, "b.id=1" is my situation different for some reason?

Where do I put the "b.id=1" at? In the cover skill itself?

Please and thanks for any help.

Might not respond in a timely manner. Busy today plus there is a storm coming.
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
I did not realize you guys were looking for feedback.

@TheoAllen You said it was a script call error? There should be nothing calling scripts at the time of the crash. The crash happens when a monster puts a status effect on a party member. Also, I have not told anybody to cover anybody yet. So, I do not know why it would be calling the script related to the cover move. Nobody has even learned the cover move yet. That was going to happen in the next storyline.

@kyonides Hime's page about putting the scripts together told me to use "true", and you say, "b.id=1" is my situation different for some reason?

Where do I put the "b.id=1" at? In the cover skill itself?

Please and thanks for any help.

Might not respond in a timely manner. Busy today plus there is a storm coming.

It's b.id == 1 with two equal signs, that means it's a comparison in Ruby. And you just need to copy the whole notetag I posted before. I placed it in Natalie's note box (the second actor in the database). I'd have to check if it works in the skill database as well.
A storm!? :o
 

MoltresRider

Moltres Rider/Dragon Whisperer
Regular
Joined
Apr 16, 2023
Messages
373
Reaction score
49
First Language
English
Primarily Uses
RMVXA
Sorry for the late reply. I took a break from RPG Maker to draw up some inspiration.

If I want the dragon (Draco Decorus) to cover Justin, do I put that in the dragon's note box or Justin's?
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
The question is who needs to get covered?
Once you answer that question, you know who's getting the notetag. Just make sure the ID matches your character's.
 

Latest Threads

Latest Posts

Latest Profile Posts

A spooky banner and a spooky pfp for a spooky season.
Spooky-Season.png
Broke: Actually making the stuff you need to make before the game can progress.
Woke: Wasting time instead by making a sidequest where you can recruit an imaginary friend to the party.
1696264391516.png
Day 1 I don't know where to start... I enjoy designing icons and brainstorming the abilities my video game will have
Some days I understand the internet....other days, not so much.
Me (on reddit): That's a cool picture!
Artist who drew it: Thank you!
Random user: You're welcome
200w.gif

Forum statistics

Threads
134,991
Messages
1,252,674
Members
177,896
Latest member
Wulf_SDP_58343
Top