INI

From Mario Fan Games Galaxy Wiki
Revision as of 01:49, 30 October 2008 by Xgoff (talk | contribs)

INI is a simple, text-based, and human-readable format for storing information. In fangames, they are generally used as a method of storing save data, but save data stored in this way can be easily edited unless encrypted. They are more suited to storing game settings, as it can be more convenient to change those outside of the game.

Information in INI files is stored in a group-item-value format as follows:

[group]
item = value
item2 = "string"

Quotes for strings are optional.

Multiple groups can be used, but they must use different names; also, a given group cannot contain two items of the same name.

INI files should be small, and in fact Windows places a 64KB limit on their size, unless a program is manually written to parse larger ones.