Hey Guys,
This devlog will be going to be a little bit technical and more in depth, but I will try to explain everything as understandable as possible.
I used to have a very basic method of Saving and Loading game files, but for some odd reason, that method glitches the whole game, although it has worked until some days ago. My theory is that a value or piece of code somehow messed everything up.
I tried everything to fix this, but nothing has worked. I needed a new method for saving and loading. I am going to use the .Ini object to save my data. .Ini is basically a file which saves values and strings of data. It’s actually a very popular method for saving, storing and loading data. The bad thing about .Ini is that it is easily accessible and editable which makes it easier to change values and cheat in the game.
Although this is a really big disadvantage, I really want to use .Ini because it’s really easy to code once you get behind it. Editing the .Ini file may corrupt the file if you change a wrong value. For example, if you change the value of the current location of the player, the game will completely freak out because it think you are in area a while your character is actually in area b. So it is not recommended that you edit the game file.
The .Ini will save your level, XP, Gold, HP, current location, character color, control type and many more.
Pault
2 comments