Display State Turns On Icon

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
 

Hello. The number is shown but it doesn't get smaller. I am using a skill which gives the player 10 % more ATK but no matter how many turns, it's still shows 3 on the Icon shown.
 

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
Absolutely, let me know.
Here is the error. It occurs when applying a state with duration out of battle.

Its happening due to the added fix I posted about to get a clean turn count.

TypeError: Cannot read property 'toFixed' of undefined at Window_MenuActor.Window_Base.drawActorIcons (/X:/SkyDrive/_RMMV%20Projects/Projects/Prequel%20Project/js/plugins/LOL_VisibleStateTurns.js:80) at Window_MenuActor.Window_Base.drawActorSimpleStatus (/X:/SkyDrive/_RMMV%20Projects/Projects/Prequel%20Project/js/plugins/YEP_CoreEngine.js:1281)As for the intermittent issue about displaying the wrong number of turns. It might be an ATB thing. Something about the moment a buff is applied, it takes a fraction of a turn to update the duration on the state icon. It sometimes goes blank, and then re-appears. I have not seen it happen to states. Only buffs/debuffs.

Unfortunately since there is no hard error I can't point you to the culprit.
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
818
First Language
English
Primarily Uses
Here is the error. It occurs when applying a state with duration out of battle.

Its happening due to the added fix I posted about to get a clean turn count.

TypeError: Cannot read property 'toFixed' of undefined at Window_MenuActor.Window_Base.drawActorIcons (/X:/SkyDrive/_RMMV%20Projects/Projects/Prequel%20Project/js/plugins/LOL_VisibleStateTurns.js:80) at Window_MenuActor.Window_Base.drawActorSimpleStatus (/X:/SkyDrive/_RMMV%20Projects/Projects/Prequel%20Project/js/plugins/YEP_CoreEngine.js:1281)As for the intermittent issue about displaying the wrong number of turns. It might be an ATB thing. Something about the moment a buff is applied, it takes a fraction of a turn to update the duration on the state icon. It sometimes goes blank, and then re-appears. I have not seen it happen to states. Only buffs/debuffs.

Unfortunately since there is no hard error I can't point you to the culprit.
After running some tests this appears to be fixed in the latest update. The latest update also fixes the decimal problem with Yanfly's ATB. You can also choose how decimal places you want to show.

 

Hello. The number is shown but it doesn't get smaller. I am using a skill which gives the player 10 % more ATK but no matter how many turns, it's still shows 3 on the Icon shown.
Which battle system are you using?
 

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
It works great!

I didn't realize the plugin had been updated... I hope I didn't waste your time. :(
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
818
First Language
English
Primarily Uses
I didn't realize the plugin had been updated... I hope I didn't waste your time. :(
No not at all, I updated after I read your post, not before :)
 

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
After running some tests this appears to be fixed in the latest update. The latest update also fixes the decimal problem with Yanfly's ATB. You can also choose how decimal places you want to show.

Which battle system are you using?
Yanfly Battle engine :D atb
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
818
First Language
English
Primarily Uses
Yanfly Battle engine :D atb
I am not able to reproduce the error you are getting. Can you be more specific about the skill and state you are using? Is it a buff? Are you still getting this error with the latest version of Yanfly's plugin, and also this plugin? Is this plugin under Yanfly's plugin?
 

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
I am not able to reproduce the error you are getting. Can you be more specific about the skill and state you are using? Is it a buff? Are you still getting this error with the latest version of Yanfly's plugin, and also this plugin? Is this plugin under Yanfly's plugin?
It's not really an error it's more showing wrong turn numbers well actualy it shows the correct turn but it doesn't get smaller (count down) and yes I am using the latest Yanfly Plugins. It's a buff (State) which increases ATK by 10 percent.
 
Last edited by a moderator:

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
It's not really an error it's more showing wrong turn numbers well actualy it shows the correct turn but it doesn't get smaller (count down) and yes I am using the latest Yanfly Plugins. It's a buff (State) which increases ATK by 10 percent.
Yanfly's turns can be confusing. Some will count down in real time some will only count down on the end of actions, etc...

Have you set any of the plugin turns to not use ticks? Or are the states in question set to per action rather than per turn?
 

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
Yanfly's turns can be confusing. Some will count down in real time some will only count down on the end of actions, etc...

Have you set any of the plugin turns to not use ticks? Or are the states in question set to per action rather than per turn?
They are set for turns 3 of 3 turns till they have to be vanished. And not sure what you mean by using ticks or not. ^^
 

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
They are set for turns 3 of 3 turns till they have to be vanished. And not sure what you mean by using ticks or not. ^^
If you access the plugin parameters on Yanflys Battle Core and ATB System, you'll find them here:

(You'll see how I increased the turn tick count as well)

15_1125a.PNG

15_1125b.PNG
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
622
Reaction score
342
First Language
English
Primarily Uses
N/A
Just thought of something. Since we have an indicator of how many turns are remaining, would it be possible to make an add-on that allows you to reduce the remaining turns on a state? For example, enemy A is inflicted with poison and has three turns remaining before it is removed. But a skill can bring the remaining turns down to two. 
 

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
Just thought of something. Since we have an indicator of how many turns are remaining, would it be possible to make an add-on that allows you to reduce the remaining turns on a state? For example, enemy A is inflicted with poison and has three turns remaining before it is removed. But a skill can bring the remaining turns down to two. 
Something tells me that Yanfly will eventually get to remaking the Buff & State Manager for MV. State turn manipulation via actions and equips was the central mechanic.

As to when it will get made? No clue. :p
 
Last edited by a moderator:

Roguedeus

It's never too late to procrastinate...
Veteran
Joined
Mar 19, 2013
Messages
527
Reaction score
106
First Language
English
Primarily Uses
N/A
First, if its not, make sure that this plugin is one of the last in your list (especially under Yanfly's stuff). And make sure its the most updated version. It should be rounding those numbers by the plugin parameter you choose. I use 1 decimal.

You'll also need to adjust the ticks per turn to get the duration timing you want (stop turns from passing to fast). I went with a 480 ticks turn time because it felt the best. (Shown in the pics above)

You also need to adjust the ATB Speed Bar sizes. Here are mine.

(To me, it feels best if the turn time is just about twice the FULL GAUGE multiple)

Initial Speed:Math.max(1100 + Math.random() * 201, BattleManager.highestBaseAgi() * (110 + Math.random() * 21))Full Gauge:Math.max(2400, BattleManager.highestBaseAgi() * 240)Charge Gauge:Math.max(1440, BattleManager.highestBaseAgi() * 144)I prefer a random element to the starting speed, that way only seriously specialized actors can guarantee they will always act first.

Try poking the settings until you get what feels best for you.
 
Last edited by a moderator:

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
OK I had worked with this for around an hour now and it's just not sets the battle well. If I turn the Tick settings on true many numbers will show up which are not possible to read and sometimes the buff even dissappears before the next turn even starts. So I have turned off the tick sections to false. It works but a buff with 3 turns ends at 2 turns left after using skill and the turn of actor is done automatically ofcourse. This also takes one turn at the start of the skill has been used. And if I change the buff for actions the number from 3 doesn't even count down. I hope this will be fixed or I just have to put like 6 turns and it will show 6 after using the skill it'll show 5 so I'll have 5 turns then. Sry for my bad english.
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
818
First Language
English
Primarily Uses
OK I had worked with this for around an hour now and it's just not sets the battle well. If I turn the Tick settings on true many numbers will show up which are not possible to read and sometimes the buff even dissappears before the next turn even starts. So I have turned off the tick sections to false. It works but a buff with 3 turns ends at 2 turns left after using skill and the turn of actor is done automatically ofcourse. This also takes one turn at the start of the skill has been used. And if I change the buff for actions the number from 3 doesn't even count down. I hope this will be fixed or I just have to put like 6 turns and it will show 6 after using the skill it'll show 5 so I'll have 5 turns then. Sry for my bad english.
Please post screenshots of the skill you are using and your plugin list. I have tested various states and buffs in the way you have described but I am not able to reproduce the problems you are having.

This is probably a problem with how Yanfly ATB does the turns. My plugin never affects when a buff or state ends. The only thing it does is display the turns left for a state or buff, which is controlled by the database and whatever battle system you are using. In other words, it only displays text. If you are noticing that states or buffs are ending before you think they should, it is a problem with the battle system you are using or something else other than this plugin. Maybe you can ask Yanfly about your turn problems and they can also look at my plugin to see if there is any conflict.
 

Vendon

LVL 255
Veteran
Joined
Oct 27, 2015
Messages
103
Reaction score
21
First Language
German, English
Primarily Uses
Please post screenshots of the skill you are using and your plugin list. I have tested various states and buffs in the way you have described but I am not able to reproduce the problems you are having.

This is probably a problem with how Yanfly ATB does the turns. My plugin never affects when a buff or state ends. The only thing it does is display the turns left for a state or buff, which is controlled by the database and whatever battle system you are using. In other words, it only displays text. If you are noticing that states or buffs are ending before you think they should, it is a problem with the battle system you are using or something else other than this plugin. Maybe you can ask Yanfly about your turn problems and they can also look at my plugin to see if there is any conflict.
Yes that might be right that Yanflys battle engine works alittle bit different with turns that it also counts for 1 turn by using the skill before the buff actually is activated. And I am using to many plugins to post a picture of it. Also I am not allowed to post a picture here. If I try a message appears and tells me that I am not allowed. Not sure why. Have posted few pictures before though.

But I also asume that the problem is in the battle plugin itself because if I change something, the shown number also changes. Not sure about that.
 

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

Latest Threads

Latest Profile Posts

I love these real life Oblivion videos:
I'm playing DQ:XI DE in 2d mode with the synthesized soundtrack, the only way a RPGMAKER creator should play it. :D
:/ it really get on my nerves reading stuff about how to write a resume and they say things like "turn your failures into wins!!!" ... no interview Ive ever had cared to hear anything about my failures, and why would they :( ?
"Huh? You haven't backed up yet? *menacing stare* "
Been having a lot of fun playing Hearts of Iron IV. Had to restart a few times, but now I've finally conquerd Europe with my Axis friends, and am currently invading the Soviet Union.

Forum statistics

Threads
93,637
Messages
914,168
Members
123,224
Latest member
Nekko_Hime
Top