Type Error

Silverpence

Veteran
Veteran
Joined
Feb 28, 2017
Messages
35
Reaction score
2
First Language
English
Primarily Uses
RMMV
Every time I use a Heal skill, this Type Error comes up.

Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is not finite.

I have no plugins, how do I fix this?
Along with that, the skill does not have any animation, and I can't even use it from the menu.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
Please post a screenshot of the skill, we can't really help without.

That said, a typeerror can only happen if something has mixed up data in the javascript - did you ever use a plugin before?
If you remove a plugin, you also need to start a new game after that removal and cannot continue to use old savefiles or such errors can occur.

If it is neither something in the plugins nor in the skill, then your project files are damaged - does the same happen in a new project?
Which core version does your project have, and which version is your editor updated to?
 

Silverpence

Veteran
Veteran
Joined
Feb 28, 2017
Messages
35
Reaction score
2
First Language
English
Primarily Uses
RMMV
I also realized, the same thing happens when I use poison, which is set to HP Drain, but when I change it to HP Damage, it works. So I think it has something to do with the HP Drain and HP Recover.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Have you installed any plugins or made any changes to the core code?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Can you show a screenshot of the actual error including the stacktrace if there is one?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Sorry, I meant from the console. Press F8 when the error occurs and take a screenshot of the console window for me, please.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Does it still cause an error if you put something in the formula box for the heal skill?
 

Silverpence

Veteran
Veteran
Joined
Feb 28, 2017
Messages
35
Reaction score
2
First Language
English
Primarily Uses
RMMV
Does it still cause an error if you put something in the formula box for the heal skill?
It works. But how do I add 10% health recover in the formula box?
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
b.mhp * 10 / 100 (or b.mhp * 0.1 if you want an even simpler calculation)
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Same thing, multiply by the percentage you want then divide by 100. You'd just set it to HP damage/drain rather than recover.
 

Silverpence

Veteran
Veteran
Joined
Feb 28, 2017
Messages
35
Reaction score
2
First Language
English
Primarily Uses
RMMV
Same thing, multiply by the percentage you want then divide by 100. You'd just set it to HP damage/drain rather than recover.
And what if I want it to last for multiple turns?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Then have it inflict a poison state and make the HP damage one of its traits. The only thing is you can't do HP absorption DoT effects without plugins.
 

Silverpence

Veteran
Veteran
Joined
Feb 28, 2017
Messages
35
Reaction score
2
First Language
English
Primarily Uses
RMMV
Then have it inflict a poison state and make the HP damage one of its traits. The only thing is you can't do HP absorption DoT effects without plugins.
Thanks! Everything works now!
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top