Stamina script doesn't work on my vx ace project. I fixed one error at line 233 and than at line 161 it says it won't recognize to_f.
Yami's Stamina System Errors
RGSSx Script SupportScripts is where you post your own scripts.
I've moved this thread to Script Support. Thank you.
The script may not have any errors, you just may have a compatibility problem or the script may need to go above or below another script. Also could you provide a link to the script. Also *Important* put a description of the error.
I put this script above Main and below Materials.
I have used that script on RPG maker vx ace as it says it works on.
Link: https://github.com/suppayami/rmvxa-collection/blob/master/Dash Stamina.rb
The script in a default project works fine. So it's a script compatibility problem. What is the error message and what other scripts do you have?
The error message is about saying it won't recognize what <= is, I had to change it to =. After I fixed that, the script could not recognize what to_f is.
The other script I am using is TheoAllen A.I. pathfinding script. I have removed that script and it did not solved problem.
so you only have the two scripts?
Even with those two scripts together there is no problems.
Perhaps you have a copy paste error when putting the scripts in.
Even with those two scripts together there is no problems.
Perhaps you have a copy paste error when putting the scripts in.
That's not the error message.
When someone asks for an error message, you should write down the exact message you get, or if you are lazy to type it in, just make a screenshot and show that instead.
What you did is not a "fix", you made it worse, actually. You changed a comparison check into a value set operation, and that certainly won't solve the issue, it will just make new issues.
No one can help without the error message. People can guess, but that's the most they can do, and that is really not an efficient way of solving script issues.
Delete the edited script and re-install the original, unedited one, and show us the error message.
When someone asks for an error message, you should write down the exact message you get, or if you are lazy to type it in, just make a screenshot and show that instead.
What you did is not a "fix", you made it worse, actually. You changed a comparison check into a value set operation, and that certainly won't solve the issue, it will just make new issues.
No one can help without the error message. People can guess, but that's the most they can do, and that is really not an efficient way of solving script issues.
Delete the edited script and re-install the original, unedited one, and show us the error message.
Click:
That error says that the instance variable @stamina is not defined, hence it can't be compared.
This can only happen if you loaded a saved game which was saved before the dash script was added.
Start a new game and it should work fine.
This can only happen if you loaded a saved game which was saved before the dash script was added.
Start a new game and it should work fine.
I actually programmed my game to start the game right after launching it, if no save file is detected, than new game starts.
So how did you do that? did you use a script?
I would say yes. Can't be done by events. So you also did not provide information on what scripts you are using in your project.
I would say yes. Can't be done by events. So you also did not provide information on what scripts you are using in your project.
I have used scripts in conditional branches to detect if save file exists, yes it is possible to done with scripts in branches.
I also change scene title a little, look at the start def.
Then what other scripts have you modified?
You should be making new scripts to do that process not modifying the existing one. Root scripts are there for the stable functionality of the game.
Scene_Title - modified
Yami stamina
theoallen pathfinding
and...
???
You should be making new scripts to do that process not modifying the existing one. Root scripts are there for the stable functionality of the game.
Scene_Title - modified
Yami stamina
theoallen pathfinding
and...
???
I don't think however it would be harmful to yami script. I just removed entire frame update, because I wanted my timer to be invisible.
And here I have turned Esc button into instant close game button instead of pause menu button.
The Timer is the one that I think is the problem. Unless you have more that you forgot about,
Restore that root script to it's original and see if the error come back.
Honestly just put the two scripts, theoallen and yami stamina into a new project and see if you get the error.
Restore that root script to it's original and see if the error come back.
Honestly just put the two scripts, theoallen and yami stamina into a new project and see if you get the error.
Hey! I have figured it out! I have put yami script into (insert here) label without removing default message by the developers of engine and it works perfect to me.
Original thread: https://forums.rpgmakerweb.com/threads/yamis-stamina-system-errors.96525/