Ini Plus For Newbs
|
Ok well im here to tell you what i know about ini plus.
This should help people to learn to make save games and other things.
Ok what is an ini?
An ini is an external file that stores data in values for future reference.Your games can save to and load from inis.
Heres the basics.Really all you should need to know unless you learn to encrypt(dont ask me how i dunno x)).
Groups
A group is the name of well the group you are working with!
Ok lets use 2 groups as examples
Group 1 Weapons
Group 2 Ammo
Items
Ok an item is the item you are storing data for.
Lets have 2 items for each group
Group Guns
Item 1 Pistol
Item 2 Shotgun
Group Ammo
Item 1 Pistol Ammo
Item 2 Shotgun Ammo
Now for item values
Say you want to store the guns you have.
I would use a global value to tell you have them in the game
And when you save it stores the global value into the current item via item values.
Then youd want to store the ammo so id use one of the values of a gun to store its ammo into another item value
Now to load your things.
Start Of level set group to Guns
Set Global value one to item value pistol
Set global value 2 to item value shotgun
Set group to ammo
Set Pistol value(ammo) to item value pistol ammo
Set shotgun value(ammo) to item value shotgun ammo
Well i know this wasnt explained very well,but i think it can help a little.
Good luck!
|
|
|