I know this question allways seems to come up, but i need to know something about the ini file.I can save and load one piece of information easily, but when it comes to groups and items i get lost along the way and i cant load anything.Anyway this is what i want to know, as i didnt want to use passwords in my new game, i have added more than 2 ini files to it, will this in someway ruin the game ? or cause a problem ? please help because i want to get on with the game and not just worry with the saving system.
Are you using TGF of MMF? TGF's method of using INI files is slightly awkward as you have to switch to a certain group/item then alter its value or string, and then repeat this for all values that you want to alter.
As long as you don't put the multiple ini's in the Windows folder, I really don't care, but it's not too hard to understand ini's. If it's easier, make a "start of frame" event that loads all neccessary information into global values, lives, or counters.
Start of Level: set ini object to "save.ini". Set group to "Data1". Set item to "HP". Set Player 1's lives to value of INI object. Set item to "MP". Set Player 1's score to value of INI Object. Set group to "Data2". Set item to "Gold". Set Global Value 1 to value of INI Object, etc.
Just open the group where you with the items you want, then select the item to temporarily store the value where you want it. If you want another item in that group, then just choose another item. If you want an item in another group, change the group first, then choose the wanted item.
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames