Oolite Bulletins
http://aegidian.org/bb/

Other operating systems and the octree cache
http://aegidian.org/bb/viewtopic.php?f=5&t=1452
Page 1 of 1

Author:  winston [ Sun Feb 26, 2006 12:03 pm ]
Post subject:  Other operating systems and the octree cache

The octree cache on OS X is stored in $HOME/Library/Application Data/Oolite. On UNIX+GNUstep, this path is $HOME/GNUstep/Library/Application Data/Oolite (and is created the first time by the 'oolite' script that sets the environment and runs the game). I'm not certain how ensuring this is created on Windows will work, but I assume that the script that starts it on Windows can use the Windows HOMEPATH (IIRC) environment variable to find the user's GNUstep directory.

Author:  JensAyton [ Sun Feb 26, 2006 1:08 pm ]
Post subject: 

Hmm. On OS X, it really ought to be in Library/Caches. For efficiency, I’d strongly reccomend switching to binary plist format under OS X ([NSPropertyListSerialization dataFromPropertyList:plist format:NSPropertyListBinaryFormat_v1_0 errorDescription:NULL]; available from OS X 10.2). I’d have used a date stamp and possibly a checksum to detect model changes, but hey. Oh, and it’s “leaves”, not “leafs”. :-)

Author:  JensAyton [ Sun Feb 26, 2006 2:15 pm ]
Post subject: 

Oh, one other thing: each binary data cache should have a flag indicating endianness. The simplest way to do this is to include a cookie value like 0x12345678 and ensure that it reads back correctly.

Author:  aegidian [ Mon Aug 14, 2006 2:49 pm ]
Post subject: 

Quote:
Oh, one other thing: each binary data cache should have a flag indicating endianness. The simplest way to do this is to include a cookie value like 0x12345678 and ensure that it reads back correctly.
I'm not sure we need this, caches aren't intended to be shared between machines - the main cache only need be read by the machine that wrote it.

Author:  JensAyton [ Mon Aug 14, 2006 5:34 pm ]
Post subject: 

However, the way the cache is stored now it is potentially shared between machines. It is not unheard of to have a home directory on a networked volume, and this will only become more common as NAS solutions become cheaper. This is why, for instance, there exists a ~/Library/Preferences/ByHost/ (accessible via CFPreferences but apparently not NSUserDefaults).

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/