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
problem with extra cargo and large cargo bay (Oh no, not this again)
Moderators: winston, another_commander, Getafix
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
problem with extra cargo and large cargo bay (Oh no, not this again)
Oolite 1.91 / Imp. Trader ( slighly modified ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- Slartibartfast
- 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)
Hello
i wrote:
-- 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
i wrote:
I found a solution, that seems to work for my oxp. ( maybe you can call it a "hack" )Does somebody has an idea how to prevent the (wrong) installation of a LCB.
( or to remove that beast - automatically )
-- 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 ) 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
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard