MV Inexplicable Error

Got while playtesting. No idea the cause. It's consistently reproducible. Need help.

CROPPEDERROR.png
What are you doing when it crashes? It looks like it happens from the number input window.
what is your editor version and what is your project version?
those may or may not be identical, please state both numbers

does this happen on a new game or on loading a saved file or in both cases?
any message plugins?
any message plugins?
plugin list
pluginslist.png
what is your editor version and what is your project version?
those may or may not be identical, please state both numbers

does this happen on a new game or on loading a saved file or in both cases?
Editor version is 1.6.3 and if I am reading it correctly the Project version is 1.6.1. Is them not being the same the cause of my issue?
The crash is caused by by opening the Number Input window, but only some of the time. Not sure how else to describe it, it works most of the time, but if I do certain things while playtesting it will cause the crash.
What are you doing when it crashes? It looks like it happens from the number input window.
Yes, it is from a number input window.
What variable are you using for the number input, and have you been using that variable for anything else?

"clamp" is only available for numeric values, so if you assigned the variable something that is not a number (via a script command), that would explain the error at least.

(You can check the variable value by typing $gameVariables.value( ID ) into the console)
What variable are you using for the number input, and have you been using that variable for anything else?

"clamp" is only available for numeric values, so if you assigned the variable something that is not a number (via a script command), that would explain the error at least.
I've having the same variable contain both text (specifically $dataSkills[gameVariables.value(X)].name, if its relevant) and numbers. To prevent the crash do I just need to use separate variables for text and for numbers?
either that or place a control variable setting the variable to zero (number) directly before the number input.

while you can use temp variables for multiple functions if they do not need to remember the content, switching between different forms of content (number, text, boolean etc) can risk errors like that.

"Type Error" is short for "The variable is not of the type I expected" (in a simplified way)
either that or place a control variable setting the variable to zero (number) directly before the number input.

while you can use temp variables for multiple functions if they do not need to remember the content, switching between different forms of content (number, text, boolean etc) can risk errors like that.

"Type Error" is short for "The variable is not of the type I expected" (in a simplified way)
Noted for future reference. Thank you and everyone else who helped me, I am no longer receiving the error.
For anyone who finds this later, the issue here was that the number input window opens with the current value of the variable it will be stored in loaded into the window. Meaning if your variable had a value set already, like 1000, it would show that when the window opens. Because it expects that value to only be a number, because through the editor the only value you can store in variables are numbers, there is no check prior to doing math on that value to display it in the window to make sure the value really is a number.

In this case, the variable had text in it, and the first of several functions used to break the number in the variable into its individual digits failed, because the input is not a number. Resetting it, or using a variable that doesn't already have text in it solves the problem because the value stored in it is a number now, in this case, zero.
$dataSkills[gameVariables.value(X)].name
should be $dateSkills[$gameVariables.value(x)].name as you missed the "$"
so the gameVariables = number clamp you get.

Original thread: https://forums.rpgmakerweb.com/threads/inexplicable-error.178541/