Updating save files in new game versions

I think My code only does those 3 things.

This is what I did in the code.

  1. Check if a save file exist. If it doesnt, create a new one with the name ShopData.sav
  2. Next, The game its an Online multiplayer so the game only saves when you go back to the menu after playing an online match and everytime you leave the shop or buy something.
  3. When the game is re-started the values from the Save files are loaded and applied in the game instance using the “init” event.

That is what I coded.

All my save files variables are just arrays and I set each skin to a number on the array.

Basically in the array I have 10 elements and each one represents a skin.

And to check if you own a skin the element will be set to true.

Example: If you The skin with the ID set to 5. Then That means in this array the element 5 its set to true.

The new 3 elements (8, 9 and 10) are the ones that are giving me issues.

1 Like