Page 1 of 1

Updating of the oxp cache

Posted: Fri Jun 01, 2012 12:03 am
by Shipbuilder
Would it be possible in a future release of Oolite to have an option where the oxp cache could be updated by say a press of a key while the game is running ?

I think that if possible this would be much better for those writing oxps rather than having to close down the game and reload with the shift key held down in order to check if a tweak to an oxp has had the desired effect.

I would be interested to know what other oxp authors think.

Re: Updating of the oxp cache

Posted: Fri Jun 01, 2012 5:27 am
by Capt. Murphy
See [EliteWiki] Hidden Settings in Oolite for edits you can make to .GNUstepDefaults including this one..
Key: always-flush-cache
Type: boolean
Default: NO
Introduced: 1.73
If set to YES, the data cache will be rebuilt each time Oolite runs. This is roughly equivalent to placing a brick on your shift key.

Re: Updating of the oxp cache

Posted: Fri Jun 01, 2012 6:43 am
by Switeck
I would use such a feature, but my need for it is actually quite low.

Re: Updating of the oxp cache

Posted: Fri Jun 01, 2012 6:53 am
by Smivs
Ha, that's my standard setting...must have saved me hours over the last couple of years, not to mention wear on the keyboard :wink:

Re: Updating of the oxp cache

Posted: Fri Jun 01, 2012 12:15 pm
by Amaranth
Thanks for the info on how to change this. Happy to sacrifice a bit of load time to know that I'm using current OXP data.

Re: Updating of the oxp cache

Posted: Sat Jun 02, 2012 8:51 am
by Switeck
Not long after I started modifying/making OXPs...
My Switeck's Shipping changed the main station's market prices and amounts, so I thought I could just change its settings and reload from a savegame to see the changes.
It didn't work, I needed to clear the OXP cache.

So I cleared the OXP cache by deleting the cache manually.
Still didn't work, the market info for the current main station is saved in the savegame.

So I left that system, hyperspaced to another, and hyperspaced back.
Still didn't work, I had another OXP that modified the commodities list and/or replaced the main station.

So I removed the other OXPs and cleared the OXP cache by deleting the cache manually.
Still didn't work, I had misnamed my commodities file, so the game was using the original file.

So I cleared the OXP cache by deleting the cache manually.
Still didn't work...I had a typo in my commodities.plist file, so the game was using the original file.

I fixed that, cleared the OXP cache and tried again.
I didn't like the results, ...but the amount of time I spent tweaking the values to get the results I wanted were less than all the above combined.