Data that persists between launches of a Desktop Adventures game, like settings, highscore and information about the last generated worlds is stored in a ini-file.
|Yoda Stories Demo|
The file is a standard INI file with the sections
Recent File List.
The following is a sample file generated by
[OPTIONS] MIDILoad=1 PlaySound=0 PlayMusic=0 Difficulty=1 GameSpeed=140 WorldSize=1 Count=302 HScore=870 LScore=570 LCount=0 Terrain=2 [GameData] Alaska0=2126634910,129,3,318,232,264 Nevada0=950869581,163,3,364,348,362
|Difficulty||Setting, values range from|
|GameSpeed||Setting, values range from|
|WorldSize||Setting, values range from|
|Count||Number of worlds generated|
|LCount||Number of lost games|
|Terrain||Last terrain used to generate a world. The next world is determined based on this value. Since Indy's Adventures only have on terrain this value is not used.|
GameData section is used to keep track of the end puzzles last used on each planet. When a new world on the planet is generated, these puzzles are excluded. This is supposed to increase variety between consecutive games so the player get different endings every time.
Each entry holds a comma separated list. The first entry is the last used PRNG seed, written out as a
32-bit integer, eventhough only
16-bits are used. The second number is a random value between
256 that is added to the puzzle ids. The third value is the number of puzzle ids, followed by the actual end puzzle ids that are to be excluded, each offset by the random value generated before.
|Alaska||Yoda||Ice planet (Hoth)|
|Nevada||Yoda||Desert planet (Tatooine)|
|Oregon||Yoda||Forest planet (Endor)|