MV Job points resetting in multi battle troops

I have run into this strange bug where that if I encounter an enemy troop with multiple enemies my job points reset at the end on each actor instead of accumulating. Everything works normally if I encounter enemy troops with only one enemy the job points keep accumulating after each battle.



I have all the normal way of accumulating job points turned off in my game how I wanted it to work is each enemy gives a set amount of job points. I repeatedly looked over my plug-in list to make sure I have them in the correct order I don't know what could be wrong here unless the plug-in is not intended to work the way I want it to. I hope I just overlooked something if not this would put a wrench in my whole process and screw up my whole concept for my game.

Spoiler: pic
jobpointshelp.png

Spoiler: pic 2
jobpointshelp2.png

Spoiler: pic 3
jobpointshelp3.png

Spoiler: pic 4
jobpointshelp4.png
1) are you talking about random battles, evented battles or both?
2) what points do you get from the battles? zero, points for one enemy, points for two enemies, do the actors lose points compared to before the battle or what?
1. random battles
2. Per the examples in the picture I get Five Points each for each Albatross I kill so if I kill three I get 15 at the end of battle then each actor's total resets to 15. Instead of accumulating and adding to 15 on top of the existing job points.
using correct programming language, that is not resetting but setting the job points to 15.
Resetting them would be setting them to zero, that's why I asked for clarification.

can you test if the same happens with a series of evented battles?
At the moment I can think of only two possibilities that might cause this behaviour:
1) plugin is configured wrong for the behavior you want
2) a different plugin or event is manipulating the same data

If this happens with a single event where you use show text to show the job points between two evented battles (basically show job points, battle processing 1, show job points, battle processing 2, show job points all in a single action trigger event), then this will identify when exactly the bug happens.
Here are some pictures demonstrating what's happening

Spoiler: pic 5
jobpointshelp5.png

Spoiler: pic 6
jobpointshelp6.png

Spoiler: pic 7
jobpointshelp7.png

Spoiler: pic 8
jobpointshelp8.png

Everything working as intended

Now here's where it messes up and gets the bug

Spoiler: pic 9
jobpointshelp9.png

Spoiler: pic 10
jobpointshelp10.png

Spoiler: pic 11
jobpointshelp11.png

Instead of accumulating it's at my job points to 10
using correct programming language, that is not resetting but setting the job points to 15.
Resetting them would be setting them to zero, that's why I asked for clarification.

can you test if the same happens with a series of evented battles?
At the moment I can think of only two possibilities that might cause this behaviour:
1) plugin is configured wrong for the behavior you want
2) a different plugin or event is manipulating the same data

If this happens with a single event where you use show text to show the job points between two evented battles (basically show job points, battle processing 1, show job points, battle processing 2, show job points all in a single action trigger event), then this will identify when exactly the bug happens.
Okay I would set up an event battle and be back with my results
I am still working on it I realized I do not know how to show job points in a textbox I'm trying to search Google for answers
Well I tried the event battle process and it still happens but I cannot figure out a way to show job points before each battle I don't know of any text commands to put in the message box that shows job points and I search Google for quite a while and could not find any concrete information.
I do not know how to show job points in a textbox I'm trying to search Google for answers
the answer would not be in google, it would be in the help section of the plugin. Yanfly writes complete help sections, so that means there should be a script command to get the job points listed in there, you use that wirh a control variable and then use \v on that variable with show text.

But if that is too complex for you, simply use the event command to open the menu on the event three times, the event should continue from where you opened that menu by event command each time.
And then simply note the results on paper, we don't need screenshots just the numbers resulting.
the answer would not be in google, it would be in the help section of the plugin. Yanfly writes complete help sections, so that means there should be a script command to get the job points listed in there, you use that wirh a control variable and then use \v on that variable with show text.

But if that is too complex for you, simply use the event command to open the menu on the event three times, the event should continue from where you opened that menu by event command each time.
And then simply note the results on paper, we don't need screenshots just the numbers resulting.
Okay just to clarify you want to know my job point total after each battle
Spoiler: pic
jobpointshelp13.png
Using this event before battle one I have 70 job points after battle one I have 75 job points after battle two I have 85 job points after battle three I have 15 job points each albatross gives me five points
ah - but that is different from what you originally had.
The two albatrosses correctly add +10 where they did not before, only after the last battle the job points go to 15.

Could you do one more test? simply add a show text xyz after the last open menu, to force the engine to wait in the event before continuing.
If that results in job points 100 and then after closing the event to 15, then we know it is something from outside interfering.
if that still results in 70/75/85/15, then it is something in the troop/battle itself that causes this.

One other question: can you test this with a new game? I'm assuming that you load an old savefile because a new game should start with 0 job points, and sometimes old saves become incompatible by adding plugins or reordering them. Just to make sure the error is not something in your savefile...
Okay using this event with the old save file I got the results
Spoiler: pic
jobpointshelp15.png
70/75/85/15
Running the same event a second time gave me different results which is strange it's not constant
70/75/10/15
Running the event a third time gave me these results 70/75/10/15

Starting a new game and using this event "I added the leveling up part so I can do the battle quicker" gave me these results

Spoiler: pic
jobpointshelp16.png
0/5/10/15
a 2ed time 0/5/10/15 and a 3rd 0/5/10/15
have you been able to replicate the 85 a second time or was that from the first time ever?
I'm asking because then it might have been a user error with you seeing wrong the first time.

There are no random effects in any computer, and if it might have been a reading mistake from screen then it would point to a different cause as if there really was a seemingly random change.

anyway, this points to very likely be a plugin incompatibility, so can you please give us screenshots of your entire plugin manager? The screenshot in your first post is only part of it.

And please, use Alt-Prtscrn instead of only Prtscrn to make your screenshots.That will limit them to the active window and make them much better readable.
Here is my plugins list I will try to replicate that error from before.

Spoiler: pic
plugin.png

Spoiler: pic
plugin1.png

Spoiler: pic
plugin2.png
OK, I'm out of ideas.
The only thing I can suggest is to re-read the instructions for the job plugin because as of know I give the highest chance for a cause to a misconfiguration of that plugin.
But I don't know it enough to judge that.
Well thank you so much at least for trying I'm stumped to on this one I don't know what could be going on and I was able to replicate that 10 again most of the time it's an 85 but sometimes it's a 10
Taking a look at your plugin list, you have the Skill Learn System above Job Points. It's recommended to have Skill Learn under Job Points. Try doing that and performing your tests again. It may not solve the problem, but it's a place to start.
Taking a look at your plugin list, you have the Skill Learn System above Job Points. It's recommended to have Skill Learn under Job Points. Try doing that and performing your tests again. It may not solve the problem, but it's a place to start.
Thank you this solution seems to have fix it I need to do more extensive testing but it seems to be working as I intended now
Thank you this solution seems to have fix it I need to do more extensive testing but it seems to be working as I intended now
That's good to hear. Yanfly plugins can act funny if they aren't ordered correctly.

Original thread: https://forums.rpgmakerweb.com/threads/job-points-resetting-in-multi-battle-troops.141504/