Strange behaviour when buying a new ship
Posted: Tue Sep 08, 2015 1:05 am
As I had mentioned in another thread, I've made a little OXP for a new player ship. Of course I had to buy it, and everything seemed to work, but I came across two issues.
I don't understand how Oolite calculates the value of my old ship, especially the value of the built in equipment. It doesn't go into the new ship, so it should be sold at market price (or let's say 50% of the market price because it is 2nd-hand). But this doesn't seem to be the case, and instead of this something very strange happens.
My almost perfectly equipped Cobra Mk III with a recent overhaul on a level-14 planet had a trade-in value of only 147000 Cr. The combined value of the equipment including 2 military lasers, shield boosters and military shield enhancement (!) should be around 80000 Cr. Since badly equipped Cobra Mk IIIs are sold for much more than 147000 Cr. the equipment obviously doesn't go into the trade-in value. So where does it go?
Before buying the new ship I had around 42000 Cr cash (without counting gold, platinum and gem stones). Adding the trade-in value gives an amount of 189000, so after buying my new ship for a test price of 180000 Cr, I should have left 9000 Cr on my account if the equipment value is ignored. Actually I still had more than 25000 Cr! That's 16000 more than expected but much less than the value of my equipment.
So most of the equipment was lost in the deal. But I noticed something strange some trips and saves later: The amount of gold, platinum and gem stones had been reduced by amounts of 122, 126 and 121. There weren't any containers involved, everything still fitted into the safe. The market value for this loss (at the station where I made the ship change) is about 16000 Cr, so it seems that the ship change triggered the selling, and the surplus money I mentioned doesn't have anything to to with the equipment.
This seems really weird. Is it a bug, or, if not, can it be logically explained somehow?
By the way, this behaviour has nothing to do with my OXP or the standard equipment on my new ship. I kept the save file of my last Cobra III trip and I could and can exactly reproduce the phenomenon when buying a standard Cobra Mk III.
I don't understand how Oolite calculates the value of my old ship, especially the value of the built in equipment. It doesn't go into the new ship, so it should be sold at market price (or let's say 50% of the market price because it is 2nd-hand). But this doesn't seem to be the case, and instead of this something very strange happens.
My almost perfectly equipped Cobra Mk III with a recent overhaul on a level-14 planet had a trade-in value of only 147000 Cr. The combined value of the equipment including 2 military lasers, shield boosters and military shield enhancement (!) should be around 80000 Cr. Since badly equipped Cobra Mk IIIs are sold for much more than 147000 Cr. the equipment obviously doesn't go into the trade-in value. So where does it go?
Before buying the new ship I had around 42000 Cr cash (without counting gold, platinum and gem stones). Adding the trade-in value gives an amount of 189000, so after buying my new ship for a test price of 180000 Cr, I should have left 9000 Cr on my account if the equipment value is ignored. Actually I still had more than 25000 Cr! That's 16000 more than expected but much less than the value of my equipment.
So most of the equipment was lost in the deal. But I noticed something strange some trips and saves later: The amount of gold, platinum and gem stones had been reduced by amounts of 122, 126 and 121. There weren't any containers involved, everything still fitted into the safe. The market value for this loss (at the station where I made the ship change) is about 16000 Cr, so it seems that the ship change triggered the selling, and the surplus money I mentioned doesn't have anything to to with the equipment.
This seems really weird. Is it a bug, or, if not, can it be logically explained somehow?
By the way, this behaviour has nothing to do with my OXP or the standard equipment on my new ship. I kept the save file of my last Cobra III trip and I could and can exactly reproduce the phenomenon when buying a standard Cobra Mk III.