Failed to execute "createLinearGradient" on "CanvasRenderingContext2D: the provided double value is non finite error whenever enemy uses skill.

Joined
Sep 7, 2019
Messages
73
Reaction score
35
First Language
English
Primarily Uses
RMVXA
This thing is giving me a headache since trying to make this skill work is taking way longer than it should be.
So a while ago i asked how i could make the Level 5 Death skill from Final Fantasy. (short explination for skill: if target's level is a multiple of 5, they die.)



I have the skill set up like this Screenshot (143).png
But in battle, when the enemy uses the skill on the party, i get this error screen.Screenshot (144).png
Is there any reason as to why this is happening?
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,356
Reaction score
3,405
First Language
EN
Primarily Uses
RMMZ
Try putting 0 in the damage formula box.

By default RMMV returns 0 for non-numerical formula results, but some plugins (e.g. YEP Damage Core) remove that safety check. If the end result is not a number, that will make the target's HP/MP not a number, which causes this error when the game tries to redraw the corresponding gauge.
 
Joined
Sep 7, 2019
Messages
73
Reaction score
35
First Language
English
Primarily Uses
RMVXA
Try putting 0 in the damage formula box.

By default RMMV returns 0 for non-numerical formula results, but some plugins (e.g. YEP Damage Core) remove that safety check. If the end result is not a number, that will make the target's HP/MP not a number, which causes this error when the game tries to redraw the corresponding gauge.
Tried it and the skill doesn't cause an error but doesn't kill the actor whose level 15.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,356
Reaction score
3,405
First Language
EN
Primarily Uses
RMMZ
I just tested with only YEP Skill Core active (v1.13) and that notetag works for me: an actor target dies instantly at levels 5 and 15, but only receives normal damage at level 1.

Yanfly's plugins should be loaded in the order listed on their site:
You can click+drag to rearrange the order. Remember to save your project to apply Plugin Manager changes before testing.

Maybe share screenshot(s) of your Plugin Manager so people can see all the plugins you are using.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
6,993
Reaction score
2,745
First Language
Dutch
Primarily Uses
RMMV
YEP plugins are known for strange behaviour in the wrong order and
has 1 strict order to follow, either by his website or by the plugin in
my spoiler for the YEP order checker (same as website), so you
can re-arrange them correctly.
 
Joined
Sep 7, 2019
Messages
73
Reaction score
35
First Language
English
Primarily Uses
RMVXA
I just tested with only YEP Skill Core active (v1.13) and that notetag works for me: an actor target dies instantly at levels 5 and 15, but only receives normal damage at level 1.

Yanfly's plugins should be loaded in the order listed on their site:
You can click+drag to rearrange the order. Remember to save your project to apply Plugin Manager changes before testing.

Maybe share screenshot(s) of your Plugin Manager so people can see all the plugins you are using.
Screenshot (97).png
Here it is
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,086
Reaction score
4,890
First Language
English
Primarily Uses
RMMV
Just for fun...it's possible that Incapacitate State changes something with the behavior of the default death state.

Try turning that off and testing.
 
Joined
Sep 7, 2019
Messages
73
Reaction score
35
First Language
English
Primarily Uses
RMVXA
Just for fun...it's possible that Incapacitate State changes something with the behavior of the default death state.

Try turning that off and testing.
Tried it and nothing happened.

Honestly i might just give up on this skill...
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,356
Reaction score
3,405
First Language
EN
Primarily Uses
RMMZ
Did you remember to save to apply Plugin Manager changes before testing?

A couple more ideas:
  1. Give the skill an Add State: Death effect, see if that works.

  2. Turn off all plugins except Skill Core, save your project, then test. If a level 5 actor still refuses to die instantly when hit by the skill, then check for a "State Resist: Death" trait. It might be on the actor, or their class, or their equipment, or a state.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,086
Reaction score
4,890
First Language
English
Primarily Uses
RMMV
Honestly i might just give up on this skill...
I understand feeling frustrated when something doesn't work.

The problem with giving up is that if something isn't working correctly, for all you know it's affecting another skill or it will affect in the future something else you want to do.

It makes more sense to figure out the actual reason, even if that means you leave it on your list but work on other parts of your game for a few days until you feel better.

Are you testing in an actual play test where you're selecting New Game? Using the Battle Test from the editor won't work reliably when you start introducing plugins and notetags.
 
Joined
Sep 7, 2019
Messages
73
Reaction score
35
First Language
English
Primarily Uses
RMVXA
I understand feeling frustrated when something doesn't work.

The problem with giving up is that if something isn't working correctly, for all you know it's affecting another skill or it will affect in the future something else you want to do.

It makes more sense to figure out the actual reason, even if that means you leave it on your list but work on other parts of your game for a few days until you feel better.

Are you testing in an actual play test where you're selecting New Game? Using the Battle Test from the editor won't work reliably when you start introducing plugins and notetags.
Tried it both in game and in battle test, still won't work.
 

Latest Threads

Latest Profile Posts

Time to open a new practice session.
I learned a lot about screwdrivers today while trying and failing to remove the hard drive from an old computer I intend to turn in for disposal. I really hate that there are so many different sizes of screws and none of my screwdrivers are the right size. This would make for an evil mini-game in a modern/futuristic RPG.
Should I make a new Twitter, or is it just this bad now? I didn't pay attention to it for like 3 years. And now my new posts have extremely low views compared to my old tweets. Or did I really get that much momentum from releasing my game and then drop it? :hswt:
Started moving house today. Putting everything in boxes. Listening to Mac DeMarco's new album. Feelin' groovy.
It's finally in a packageable state. You can play start to end, half-a-minute ordeal. I just need to fix some minor bugs and it's golden.
I'm so excited for this.
1675461673946.png
(please don't mind the windows overlay XD)

Forum statistics

Threads
128,478
Messages
1,194,878
Members
169,031
Latest member
new_boston_Gamemaker
Top