Turn a plugin OFF

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
I would like to know how I can turn a plugin off in middle game? (An script call to force it off?) More precisely that plugin http://yanfly.moe/2015/11/21/yep-30-visual-hp-gauges/


I'm using a mini game from mog hunter. Everything works fine except Visual HP Gauges gives me a "Cannot read property Height of undefined" error.


So, If I could turn the gauge off before call the mini game probaly would fix the inssue.


thanks.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
You can't, not unless the plug in writer added the ability to turn it off and on with a switch. You'll have to ask someone to edit it so that it can be done this way, or use something else I'm afraid.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
You can't.


Post the error you get in the console.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
If you just added that plugin, and are testing by resuming a game you started before adding the plugin, that is probably the cause for the error.  Start a NEW game and see if the error still happens.


Some plugins set up stuff on actors when you first start a game, and then rely on that data being there throughout the game, which includes when you save and resume a game.  If you started a game before the plugin was added, and the extra info wasn't set up, and you then saved the game, and added the plugin, the info that the plugin needs won't be in the save file, so it will cause an error just like the one you described.
 

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
I aways test with a new game.


 

biud436

Veteran
Veteran
Joined
Sep 28, 2014
Messages
172
Reaction score
180
First Language
Korean
Primarily Uses
RMMV
I think that it is possible to use the following plugin.


http://mvplugins.com/plugin/biud436/Refresh Manager


this plugin will modify the plugin's status directly during the game. But this way is not recommended in RPG Maker MV. 


You should note that this way might be so many problems in your project. Before you apply its plugin, you need to recognize in this fact. 


if you want to automatically change the status of the certain plugin, you can try this :

Use this code (1 page) : 



PluginManager.setStatus('YEP_X_VisualHpGauge', false);
SceneManager.push(Scene_PluginManager);


Screen Shot (1 page) :





Use this code (2 page) : 



PluginManager.setStatus('YEP_X_VisualHpGauge', true);
SceneManager.push(Scene_PluginManager);


Screen shot (2 page) : 


 

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
I think that it is possible to use the following plugin.


http://mvplugins.com/plugin/biud436/Refresh Manager


this plugin will modify the plugin's status directly during the game. But this way is not recommended in RPG Maker MV. 


You should note that this way might be so many problems in your project. Before you apply its plugin, you need to recognize in this fact. 


if you want to automatically change the status of the certain plugin, you can try this :


I get a error "Uncaught Error: You were used incorrect tokens.-" and "Undefined"; when play testing.


When I use the folder html the game can't run the plugins. Gives error in each plugin. (A big messy error screen)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
you are FAR better off trying to find out why you are having the error.  Looking for band-aid patch-ups is only going to make matters worse.
 

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
you are FAR better off trying to find out why you are having the error.  Looking for band-aid patch-ups is only going to make matters worse.


If was RGSS3 I could try, but my knoledge of javascript is almost 0. It seen I will have to give up on the minigame since the HP Bars cant be removed (or the player wont be able to see the Barrier).


I'm since yesterday trying convert THAT into MP Sharing (Like Mana Channeling) w/o success. i thought would be easy like change hp to mp (and life to mana) but I subestimed javascript. lmao
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
You just need to be more patient and wait for people to come who can help you out.  You posted less than 24 hours ago - a lot of people wouldn't have even seen your post yet.  Surely you have something else you could work on while waiting for someone to help?
 

biud436

Veteran
Veteran
Joined
Sep 28, 2014
Messages
172
Reaction score
180
First Language
Korean
Primarily Uses
RMMV
I get a error "Uncaught Error: You were used incorrect tokens.-" and "Undefined"; when play testing.


When I use the folder html the game can't run the plugins. Gives error in each plugin. (A big messy error screen)


I apologize for the mistake that had not added the code that is processing a token called 'hyphen (-)'. That issue has now fixed. But as you know, This plugin has a lot of the problem currently. In the first place, This plugin executes using File System functions that are built into a nw.js that uses in Windows or Mac. So it does not properly execute on the browsers or mobile platform which is not available them. In the second place, It uses a big memory to parse texts into the file called 'js/plugins.js'. So it is usually not processing some texts. therefore, I also remind you that this plugin should always be a last resort.
 

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
I apologize for the mistake that had not added the code that is processing a token called 'hyphen (-)'. That issue has now fixed. But as you know, This plugin has a lot of the problem currently. In the first place, This plugin executes using File System functions that are built into a nw.js that uses in Windows or Mac. So it does not properly execute on the browsers or mobile platform which is not available them. In the second place, It uses a big memory to parse texts into the file called 'js/plugins.js'. So it is usually not processing some texts. therefore, I also remind you that this plugin should always be a last resort.


Thanks but now the "-" changed to + and ! (If i call the windows one and if I call the script the other). Anyway i see turning a plugin off may be serious damaging so If I can't find I way to make both work together I will just drop the minigame (Thankfully is not something that is core of the project).
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,452
First Language
Portuguese
Primarily Uses
This issue is pretty simple. Anything that tries to use the 'Sprite_Battler' outside of the battle scene (the mog plugin probably try) will cause the game to crash.


I had a similar issue with my Sprite on Windows plugin and this same visual gauge plugin. This solved the issue people was having with my plugin, try it to see if it solves your issue too.
 

lokirafael

Veteran
Veteran
Joined
Jun 25, 2012
Messages
153
Reaction score
80
First Language
Portuguese
Primarily Uses
RMMV
This issue is pretty simple. Anything that tries to use the 'Sprite_Battler' outside of the battle scene (the mog plugin probably try) will cause the game to crash.


I had a similar issue with my Sprite on Windows plugin and this same visual gauge plugin. This solved the issue people was having with my plugin, try it to see if it solves your issue too.


Thanks. I inserted that code line in the Visual HP and worked. :3


if (!$gameParty.inBattle()) return;




Case Closed people. Tyvm everyone.
 

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

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,881
Messages
1,017,227
Members
137,607
Latest member
Maddo
Top