Hi. I'd like my unit data to be stored in a file so that it can be changed at a later date. In previous games I made some code that generated a data file by basically just dumping a long series of numbers and information. The game then read this and loaded back the information in the right order.
The problem with this is that more or less data than expected for an entry causes offset-loading problems with later entries, and it's impossible for a human to modify it.
I would like a data file that is written like a text document....
newunit
unitname =
unitattack =
endunit
etc
So it can be modified easily. But I don't know how to go about doing that. Is there any built-in way to access eg ini files, or any free code available?
Thanks.
The problem with this is that more or less data than expected for an entry causes offset-loading problems with later entries, and it's impossible for a human to modify it.
I would like a data file that is written like a text document....
newunit
unitname =
unitattack =
endunit
etc
So it can be modified easily. But I don't know how to go about doing that. Is there any built-in way to access eg ini files, or any free code available?
Thanks.