Yodesk.ini

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.

VariantPath
Yoda StoriesC:\Windows\Yodesk.ini
Yoda Stories DemoC:\Windows\YodaDemo.ini
Indy's AdventuresC:\Windows\Deskadv.ini
Indy's Demo 

The file is a standard INI file with the sections OPTIONS, GameData and Recent File List.

The following is a sample file generated by Yoda Stories:

[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

Options section

KeyDescription
Settings
MIDILoad 
PlaySoundSetting
PlayMusicSetting
DifficultySetting, values range from
GameSpeedSetting, values range from
WorldSizeSetting, values range from
Score
CountNumber of worlds generated
HScoreHighest score
LScoreLast score
LCountNumber of lost games  
World Generation
TerrainLast 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

The 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 1 and 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.

KeyMappingComment
AlaskaYodaIce planet (Hoth)
NevadaYodaDesert planet (Tatooine)
OregonYodaForest planet (Endor)
HawaiiIndy
WyomingIndy