guilemouse / Overthrow

An effort to balance and fix the dynamic and persistent revolution platform for Arma 3.
https://steamcommunity.com/sharedfiles/filedetails/?id=2572102841
GNU General Public License v2.0
0 stars 3 forks source link

Replacing of player variable "OT_fitness" and other stats. #21

Closed guilemouse closed 3 years ago

guilemouse commented 3 years ago

Originally

Now

These variables were just an integer that goes to 5.

Now they hold a value of [1, 1] both integers. One used to level up (goes to 5), other is actual stat derivative (5+random 16).

Although this works, without anything breaking, I had to remove the original variables from use, due to compatibility. People loading old saves will get errors due to the stats calling a number but it's actually an array and figuring out who's stat is new and old is being very difficult to debug.

Conclusions

  1. Overthrow 2021 needs backwards compatibility
  2. Having debug checks for OT_fitness to convert it to the new array is ugly.
  3. Old stats is kept but no longer used
  4. New stats is used and generated to use from now on to replace old stats
  5. Old stats data, unfortunately cannot be refunded to anyone playing going through this iterative change
  6. Starting of new games is not affected by this change
  7. Maybe one day the old variable names can be replaced fully