Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

problem with extra cargo and large cargo bay (Oh no, not this again)

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

problem with extra cargo and large cargo bay (Oh no, not this again)

Post by Slartibartfast »

Hello
( Alnivel pointed out that error to me. )

I add some cargo-space via oxp/script to a ship.

-- with my Imperial Trader -- all works fine ( the ImpTrader is not allowed to carry a large_cargo_bay)
-- with a cobra MK1 - i use for testing - after save & load --a large_cargo_bay(LCB) is installed. :?

hmm -- never bought this.
--> ok - LCB sold - got some money
--- save/load - the LCB is back

Hey!!! -- I found a money-making-machine!

----------
Does somebody has an idea how to prevent the (wrong) installation of a LCB.
( or to remove that beast - automatically )

Matthias
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
User avatar
Slartibartfast
Deadly
Deadly
Posts: 175
Joined: Mon Jan 21, 2008 3:54 pm

Re: problem with extra cargo and large cargo bay (Oh no, not this again)

Post by Slartibartfast »

Hello

i wrote:
Does somebody has an idea how to prevent the (wrong) installation of a LCB.
( or to remove that beast - automatically )
I found a solution, that seems to work for my oxp. ( maybe you can call it a "hack" )

-- on "player will save" i read the actual number of "EQ_CARGO_BAY" and save this number as missionvariable in savegame.
-- on "startup_complete" - again i read the actual number
----- then (new_number - old_number") = diff_number
----- for (let i =0, i < diff_number, i++ ) { remove EQ_CARGO_BAY } /// pseudo code

---
Slartibartfast
Oolite 1.91 / Imp. Trader ( slighly modified :wink: ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
Post Reply