Parameter Curve Bug

Hey guys, here's a bug rhyme and I discovered today.

Go to Class and Generate a Curve for any stats that isn't HP and MP. Make sure that Level 1 has 10* and Level 99 has 50, set it to Fast like this:

xlhsy9Z.png


Check Levels 15, 16, 17 and it will get the stats by order: 21, 23, 22




Isn't that interesting? XD
LOL dat bug! the curve is all weird XD....

I also discover...when you break the param limiter....(with a param breaker script ) the level stats go above of 99 XD

(I don't know why it's do that *^* )

d1d45aB.png
Huh, that's interesting...

Bug on the algorithm?
Now i just want to check my stat curves to make sure nothing's wrong. 😀

Edit:

Strange, mine doesn't seem to do that.

Mine has 24,26,26
Make sure it's not HP/MP
It's not, its ATK.
I can't confirm the bug either, both Steam and Standalone version have regular progression for me as well


EDit: I tested with AGI and MDF
Oh I said it wrong, it's supposed to be 10 not 15.
I see now but I guess this nothing who merit to have a parameter bug fix no? 

I mean these bug can be easily fixed manually in the editor 
It's an issue because you don't know the extent of how much of the parameters is affected. It means that you'll have to check every single class now if you are using low damage values. Which is a huge time sink if you are trying to make a game like Etrian Odyssey. It also happens on these levels:

Lv 34 = 56

Lv 35 = 57

Lv 36 = 56
While I don't get exactly these numbers (tested with LUK) I can definitely confirm this (the first occurrance for me was 23 => 29, 24 => 31, 25 => 30). Interesting...

Edit: Uh, too slow... But now the numbers are matching. 🙂
Maybe it requires it to be on fast for this to happen though? I haven't seen it at all, and my game is on normal or slow.
It's most probably caused by the formula rounding, that's why it only happens with low values. And that's also the reason why it doesn't happen with the higher bases for HP and MP.


If someone from Degica could give us the code of the quick number generation, we should be able to find out where it can happen and when not.
There are a few formula issues around the engine, some to do with how the engine works and some to do with the formulas themselves.

For example, when setting damage that skills do, if you have any numbers entered into "quick formula" (the button on the bottom right of the formula box) and THEN write your own things into the formula, the engine goes by what was entered into the quick-formula box... I'm not sure if this is only apparent when the skill is copied and then edited, but I noticed this problem when I was trying to modify the formulas for a copied skill. The damage output wouldn't change, as I had some numbers around 50 in the quick-damage formula box. When I copied the formula, put the quick-formula numbers to 0 and pasted in the formula again, it worked and performed the proper amount of damage.
Trihan from RMN also said this:

That is quite interesting. Level 22-23 also gives 26 down to 25, 31-32 goes 32-31, 38-39 goes 36-35, 41-42 goes 37-36, 44-45 goes 38-37, 56-57 goes 43-42, 58-59 goes 44-43, 61-62 goes 45-44, 66-67 goes 46-45, 68-69 goes 47-46, 70-71 goes 48-47, 73-74 goes 48-47 (so between levels 70 and 74 the stat doesn't rise at all overall!), 75-76 goes 49-48, 78-79 goes 49-48, 80-81 goes 50-49, 82-83 goes 50-49, 85-86 goes 50-49, 87-88 goes 50-49, 90-91 goes 51-50, 92-93 goes 51-50, 93-94 goes 50-49, 95-96 goes 51-50, 97-98 goes 51-50.  

It seems that rather than having several levels in a row where the stat doesn't go up, the curve generator is making it fluctuate between rising and falling to keep the curve where you wanted it.
After doing some testing, I think the formula could look like this:

min + ((1 - rate) * ((max-min) * (level-1)/98.0).ceil + rate * ((max-min) * ((level-1)/98.0)**2).ceil).floor

min := Level 1 Value

max := Level 99 Value
rate := Growth (-1 => fast, 0 => average, +1 => slow)

(...).ceil => Round up to the next Integer

(...).floor => Round down to the next Integer

I didn't test that much though but it would explain the drop since the parabolic part would first be rounded up and then subtracted from the result.

If this formula is correct, then it really does only happen when the growth type is faster than average and the difference between max and min is relatively low (when the growth type is near average). The most extreme examples I found would be:

min = 10, max = 100 and rate = -0.1 (one step towards fast):  (86: 90) -> (87: 89).

min = 20, max = 999 and rate = -1.0 (fast): (98: 1000) -> (99: 999)

(Fortunately, the latter gets corrected after you look at it in the editor... 🙂 )

Original thread: https://forums.rpgmakerweb.com/threads/parameter-curve-bug.40227/