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.
Updating of the oxp cache
Moderators: winston, another_commander
- Shipbuilder
- ---- E L I T E ----
- Posts: 877
- Joined: Thu May 10, 2012 9:41 pm
- Location: Derby
Updating of the oxp cache
The GalTech Industries Corporation - Building ships to populate the galaxies.
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
Increase the variety of ships within your Ooniverse by downloading my OXPs
Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
- Capt. Murphy
- Commodore
- Posts: 1127
- Joined: Fri Feb 25, 2011 8:46 am
- Location: UK South Coast.
Re: Updating of the oxp cache
See 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.
Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
Re: Updating of the oxp cache
I would use such a feature, but my need for it is actually quite low.
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Updating of the oxp cache
Ha, that's my standard setting...must have saved me hours over the last couple of years, not to mention wear on the keyboard
Commander Smivs, the friendliest Gourd this side of Riedquat.
Re: Updating of the oxp cache
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.
On a break
Re: Updating of the oxp cache
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.
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.