Oolite Bulletins

For information and discussion about Oolite.
It is currently Tue Sep 26, 2017 12:09 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Feb 26, 2006 12:03 pm 
Offline
Pirate
Pirate
User avatar

Joined: Mon Sep 27, 2004 10:21 pm
Posts: 731
Location: Port St. Mary, Isle of Man
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.


Top
   
 Post subject:
PostPosted: Sun Feb 26, 2006 1:08 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6657
Location: Sweden
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”. :-)

_________________
E-mail: jens@oolite.org


Top
   
 Post subject:
PostPosted: Sun Feb 26, 2006 2:15 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6657
Location: Sweden
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.

_________________
E-mail: jens@oolite.org


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 2:49 pm 
Offline
Master and Commander
Master and Commander
User avatar

Joined: Thu May 20, 2004 10:46 pm
Posts: 1148
Location: London UK
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.

_________________
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!


Top
   
 Post subject:
PostPosted: Mon Aug 14, 2006 5:34 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6657
Location: Sweden
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).

_________________
E-mail: jens@oolite.org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited