Hmmm. That would require mO-Commodity_Markets to save the commodities' pricefactors on save and load them on startup. Quite an easy tweak, but not nr. 1 on my todo list. I'll implement it some time .laxori666 wrote:This is a great idea! I have installed the In-System_Market_Restore_1.2.oxp but it doesn't work 100% with commodity markets. In particular I have:
- marketObserver_2.2.2.oxp
- mO-Commodity_Markets_1.1.oxp
What seems to happen is that the base price is stored and doesn't change, but the adjustment for the buy & sell is re-generated when the game is loaded. So this is a humble feature request..
[Retired] In-System Market Restore
Moderators: winston, another_commander
Re: [Release] In-System Market Restore 1.2
Re: [Release] In-System Market Restore 1.2
Wow that was really easy! I just did it, hah. I had to rename the folder to get the game to load it again but it seems to work... here's a pastebin for the modified file.spara wrote:Hmmm. That would require mO-Commodity_Markets to save the commodities' pricefactors on save and load them on startup. Quite an easy tweak, but not nr. 1 on my todo list. I'll implement it some time .
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [Release] In-System Market Restore 1.2
That's what shift-starts are for..laxori666 wrote:I had to rename the folder to get the game to load it again but it seems to work...
Oolite didn't notice your change because it builds a cache of all the scripts, etc. It makes for faster game starts that way. But it means Oolite won't notice any changes you make until it rebuilds the cache. (Oolite automatically rebuilds the cache if it notices an OXP has been added or removed. That's why renaming the folder worked for you.)
A simpler method is to just hold down the Shift key when you start the game, hold it down until you see the spinning Cobra MkIII, and Oolite will rebuild its' cache.
Last edited by Diziet Sma on Wed Sep 04, 2013 4:57 pm, edited 2 times in total.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: [Release] In-System Market Restore 1.2
Oh ok, great. I was wondering if there was an easier way - thanks!Diziet Sma wrote:That's what shift-starts are for..laxori666 wrote:I had to rename the folder to get the game to load it again but it seems to work...
Oolite didn't notice your change because it builds a cache of all the scripts, etc. It makes for faster game starts that way. But it means Oolite won't notice any changes you make until it rebuilds the cache. (Oolite automatically rebuilds the cache if it notices an OXP has been added or removed. That's why renaming the folder worked for you.)
A simpler method is to just hold down the Shift key when you start the game, hold it down until you see the spinning Cobra MkIII, and Oolite will rebuild its' cache.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [Release] In-System Market Restore 1.2
Old hands at editing Oolite OXP files edit their GNUstepDefaults file and set 'always-flush-cache' to YES. This is known as "putting a brick on the shift key".
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [Release] In-System Market Restore 1.2
Even without the brick, it becomes automatic when one has tinkered - as does checking the log after every flight.Diziet Sma wrote:Old hands at editing Oolite OXP files edit their GNUstepDefaults file and set 'always-flush-cache' to YES. This is known as "putting a brick on the shift key".
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
Re: [Release] In-System Market Restore 1.2
Or they always hold down the shift key every time they launch Oolite because that is just how you start Oolite. Of course, one day, having forgotten all about it, they start wondering why Oolite is started this way.Diziet Sma wrote:Old hands at editing Oolite OXP files edit their GNUstepDefaults file and set 'always-flush-cache' to YES. This is known as "putting a brick on the shift key".
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
Re: [Release] In-System Market Restore 1.2
"Impressive. Most impressive." I'll put that into mO-Commodity_Markets and release a new version.laxori666 wrote:Wow that was really easy! I just did it, hah. I had to rename the folder to get the game to load it again but it seems to work... here's a pastebin for the modified file.spara wrote:Hmmm. That would require mO-Commodity_Markets to save the commodities' pricefactors on save and load them on startup. Quite an easy tweak, but not nr. 1 on my todo list. I'll implement it some time .
Re: [Release] In-System Market Restore 1.2
Coolio! This community is pretty great. This game is a living and breathing entity. The tinkering possibilities are endless =D.spara wrote:"Impressive. Most impressive." I'll put that into mO-Commodity_Markets and release a new version.laxori666 wrote:Wow that was really easy! I just did it, hah. I had to rename the folder to get the game to load it again but it seems to work... here's a pastebin for the modified file.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [Release] In-System Market Restore 1.2
Here... have a cookie!laxori666 wrote:The tinkering possibilities are endless.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [Release] In-System Market Restore 1.2
And welcome to what we refer to as "The Darkside" of Oolite!Cody wrote:Here... have a cookie!laxori666 wrote:The tinkering possibilities are endless.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: [Release] In-System Market Restore 1.2
When saving the game at a secondary station on Oolite 1.79, the game saves the state of that station's market. This clashed with this oxp, especially with hermits. I have done what I could and uploaded a new version (1.3) to the expansion manager. It's far from perfect, as same types of stations get their markets shuffled on load, but I still think it's better than totally resetting them.
Re: [Retired] In-System Market Restore
I'm taking this OXP off because so many oxp stations have been upgraded to use the populator in 1.80 and that way the core game handles the saving and restoring of the markets.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: [Retired] In-System Market Restore
I'd suggest perhaps you consider leaving it available for those that stay with 1.77.1 for whatever reasons..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Re: [Retired] In-System Market Restore
Yep. It's still available from the wiki. I moved it to the "OXPs with Problems" section in the main list. That's for broken and deprecated OXPs I believe.Diziet Sma wrote:I'd suggest perhaps you consider leaving it available for those that stay with 1.77.1 for whatever reasons..