Silver's Dash Stamina

yeye on est la

Veteran
Veteran
Joined
Sep 10, 2016
Messages
34
Reaction score
11
First Language
french
Primarily Uses
Hey Silver!

Sorry I have misspoken. I meant in more general terms. I meant to hide the stamina bar everytime the player interacts with an event.
(Speaking with an NPC, Opening a chest, interacting with a random event,etc).

For Example MOGHunter Actor Hud does that well : Everytime you interact with an event, the HUD would auto hide.

I believe it would be a welcome addition to your plugin :)
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
I meant to hide the stamina bar every time the player interacts with an event.
Oooh. That's very easy to implement. I already added it to the next version but I'm refactoring it and busy irl so maybe next week or something.
 

yeye on est la

Veteran
Veteran
Joined
Sep 10, 2016
Messages
34
Reaction score
11
First Language
french
Primarily Uses
Oooh. That's very easy to implement. I already added it to the next version but I'm refactoring it and busy irl so maybe next week or something.
Perfect man sounds good!

Cheers XD
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
New version v2.00 (lots of internal changes)
- The stamina window can now automatically hide itself during dialogs (with a new parameter).
- Added another new parameter: "Freeze Stamina During GameMessage".
- Added an index for developers.
- A lot of refactoring and 'upgrade' to Javascript ECMA 6 which is now supported by RMMV.
- Merged the "GameVariable Addon" into this script.
- Added a new plugin command: Stamina SetDecreaseMode <default/tile>.
- Added a new plugin command: Stamina ToggleDecreaseMode.
- Changed the default "Stamina AutoDash Threshold" value from 40 --> 15 and "Hide Stamina Window Delay" from 160 --> 180.
- Renamed Parameter "Stamina Decrease Amount" --> "Stamina Decrease Amount Default" and added a new parameter "Stamina Decrease Amount Tiled".
- Fixed a console-warning from the visibility check when the window was fully slided out.
If you upgrade to v2.0, please take note:
1. Backup your project before upgrading (just in case but it can also be handy for restoring all the parameters).
2. The parameters changed so you'll have to delete and re-add it in your plugin manager.
3. The addon-script is not compatible with v1.21 and v2.00 or higher and is now deprecated because it's integrated into the main script.
4. Because most of the code is rewritten, new bugs may occur. Please inform me here of any new bugs.
 

keizz

Veteran
Veteran
Joined
Oct 28, 2015
Messages
57
Reaction score
17
First Language
English
Primarily Uses
RMMV
Hi thanks for come back to upgrade new version, I glad to see you.
 

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
408
Reaction score
470
First Language
English
Primarily Uses
RMMV
New version v2.00 (lots of internal changes)


If you upgrade to v2.0, please take note:
1. Backup your project before upgrading (just in case but it can also be handy for restoring all the parameters).
2. The parameters changed so you'll have to delete and re-add it in your plugin manager.
3. The addon-script is not compatible with v1.21 and v2.00 or higher and is now deprecated because it's integrated into the main script.
4. Because most of the code is rewritten, new bugs may occur. Please inform me here of any new bugs.
Hello,

First of all, thank you for creating this plugin- it's exactly what I was looking for.

Before I download it, though- I don't see any terms of use in your initial post. Apologies if I missed them. Is this plugin free for commercial use? I wanted to know before I possibly make the mistake of using your plugin for something you don't want it used for.
 

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
408
Reaction score
470
First Language
English
Primarily Uses
RMMV
Oh I apparently accidentally deleted the license in v1.21 in the original post because normally I put it inside the script. I'll put it inside the script next time but for now here it is:

License:
Thank you- your name will go in my game's credits.

Again, thanks for the plugin, and great work!

EDIT:
Unfortunately, I seem to have run into a problem- the plugin parameters & plugin help text don't show on the plugin manager. Everything is blank except for the plugin name. I've tried to fix this myself, but as far as I can tell, it doesn't seem to be an error on my end.

Is there a way to fix this?

Thank you again.
 
Last edited:

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
Unfortunately, I seem to have run into a problem- the plugin parameters & plugin help text don't show on the plugin manager. Everything is blank except for the plugin name. I've tried to fix this myself, but as far as I can tell, it doesn't seem to be an error on my end.
It works for me. Did you try out the master demo? Also when upgrading, did you remove the old plugin in the plugin manager before adding the new one?
2. The parameters changed so you'll have to delete and re-add it in your plugin manager.
 

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
408
Reaction score
470
First Language
English
Primarily Uses
RMMV
It works for me. Did you try out the master demo? Also when upgrading, did you remove the old plugin in the plugin manager before adding the new one?
I did not- I got the file from the Pastebin link. I didn't actually have any of the other versions of the plugin- I just found it.

I copied the plugin file from the master demo to my game folder and it showed all the parameters, which is very odd considering that the file from the demo and the file from the Pastebin link appear to be identical. I pressed the "download" button in the Pastebin menu to get the file- was I supposed to do something different? I've never worked with Pastebin before.

However, the script is still nonfunctional- the plugin simply does not take effect. Is it dependent on any other plugins? Perhaps that's what I'm missing.

Again, thank you so much for your help.
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
The first problem is likely that you HAVE to name the pastebin script "SE_DashStamina.js". I changed the download link from PasteBin --> Google Drive instead now to avoid this problem in the future.

The second problem I don't understand. I assume that you enabled the script and that the parameters are showing and that you are actually running with your character and that there are no console errors/warnings. No there are no dependencies.
Is it possible to send me the project or a small demo version maybe that demonstrates the problem?
 

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
408
Reaction score
470
First Language
English
Primarily Uses
RMMV
The first problem is likely that you HAVE to name the pastebin script "SE_DashStamina.js". I changed the download link from PasteBin --> Google Drive instead now to avoid this problem in the future.

The second problem I don't understand. I assume that you enabled the script and that the parameters are showing and that you are actually running with your character and that there are no console errors/warnings. No there are no dependencies.
Is it possible to send me the project or a small demo version maybe that demonstrates the problem?
I didn't even think to check the console- that's completely my bad.

SE_DashStamina.js:643 Uncaught TypeError: Cannot set property 'DashStamina' of undefined
at SE_DashStamina.js:643
at SE_DashStamina.js:1755
pixi.js:27682
PixiJS 4.5.4 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥

There's an undefined variable, if I'm interpreting that correctly?

Thanks again for your help.
 

yeye on est la

Veteran
Veteran
Joined
Sep 10, 2016
Messages
34
Reaction score
11
First Language
french
Primarily Uses
Hey Silver!

Thanks for the new feature it is very appreciated! However, I have one problem. The plugin is not working for me :).
I have copy pasted the plugin from your master file and didn't change any parameters and it doesn't work for me (window not showing and no stamina system). I have deleted the old stamina plugin and it is still not working for me. Did I do anything wrong?

Cheers!

yeye on est la
 

Attachments

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
SE_DashStamina.js:643 Uncaught TypeError: Cannot set property 'DashStamina' of undefined
Thanks that's all the info I need.
My apologies. It appears that I forgot a line of code to initialize a very important variable (bug) and the error @MechScapeZH and @yeye on est la describe only occurs if you don't use any of my other plugins before this one. That's why it works in the Master Demo but not in your projects. Just to be clear, this script does NOT require any dependencies, this is just a silly bug from my end.

I uploaded a new version that fixed this:

V2.01
v2.01 (24 October 2019)
- Fixed a fatal error caused when this plugin is loaded before any of my other plugins.
Download v2.01

Thanks for informing me. Please let me know if any other issues arise because v2.00 is pretty much a whole new plugin.
 
Last edited:

MechScapeZH

Veteran
Veteran
Joined
Mar 23, 2019
Messages
408
Reaction score
470
First Language
English
Primarily Uses
RMMV
Thanks that's all the info I need.
My apologies. It appears that I forgot a line of code to initialize a very important variable (bug) and the error @MechScapeZH and @yeye on est la describe only occurs if you don't use any of my other plugins before this one. That's why it works in the Master Demo but not in your projects. Just to be clear, this script does NOT require any dependencies, this is just a silly bug from my end.

I uploaded a new version that fixed this:

V2.01

Download v2.01

Thanks for informing me. Please let me know if any other issues arise because v2.00 is pretty much a whole new plugin.
It works swimmingly now- thank you so much @SilverDash!

As I said, you will be properly credited as per your licence.

Thanks for the great plugin!
 

ZBunnyZ

Warper
Member
Joined
Sep 20, 2019
Messages
1
Reaction score
0
First Language
french
Primarily Uses
RMMV
Hello there!
1st: thank you so much Silver for this amazing plugin!
I'm just looking for a script command or something to block the stamina regen. Could you help me finding that? Putting the recovery rate at 0 maybe?

Thank you so much in advance!
 

yeye on est la

Veteran
Veteran
Joined
Sep 10, 2016
Messages
34
Reaction score
11
First Language
french
Primarily Uses
Hey Silver! Thank you so much for the amazing plugin! Thank you for the fix : the stamina windows now appears properly.

However, I noticed 2 bugs in your awesome plugin:

1. When you chose the disable option for the window sliding motion, the stamina window would not appear in game

2. When you chose to hide the stamina window at max - For Ex: If I choose 30 frames, the window would hide after 30 frames even though it is not at max stamina and would reappear to regenerate to max then would hide after 30 frames.

Both of the bugs can be replicated in the Demo file along with the 2.01 version.

Thanks again for your awesome work!

Yeye on est la
 

e463gx

Villager
Member
Joined
Sep 26, 2013
Messages
10
Reaction score
1
Primarily Uses
Is there a way to reduce the stamina manually through script or plugin commands? I see you can do it through items, but I would like to do it through an event
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
393
Reaction score
156
First Language
Dutch
Primarily Uses
RMMV
Updated to version 2.02:
v2.02 (19 November 2019)
- Fixed a bug that prevented the game from saving.
 

e463gx

Villager
Member
Joined
Sep 26, 2013
Messages
10
Reaction score
1
Primarily Uses
When I try to use the Variable option in the plugin I receive an errror saying "Cannot read property 'dashStamina' of null". It happens both in my game and in your demo, so I'm pretty sure I messed something up when I updated my RPGMV, any chance you know what that could be?

Capture.PNG
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

I really need to stop thinking there are new freebies just because someone made a new post in the freebies subforum lol.
AND just like that..... I got STEAM DLC up and working! YES!
Game making is like a marathon, except the last 1/4 is more like sprint... a very long and intense sprint.
Finally got to finish the demo for my project!
Another week has gone by. Maybe you made changes to your project/s. Maybe you didn't. Nonetheless, THAT IS NO EXCUSE TO NOT BACK THEM UP O_O!

Forum statistics

Threads
93,442
Messages
912,448
Members
122,968
Latest member
Paitshens
Top