There is bug with the cargo_carried command in shipdata. It is giving wrong results with oolite 1.65 and 1.69.1
I was designing a mission were the player must scoop cargopods in competition wit several NPC ships. Some of the cargopods had scripted cargo, but the others were just random cargopods. In a script you can't just add cargopods by role as they get the wrong scanClass. Please give the Barrel in the next oolite release scanClass: CLASS_CARGO by default instead of none (= scanClass: CLASS_NEUTRAL)
So I added copies of existing barrels to my shipdata and with scanclass CLASS_CARGO and a private role. On using those you don't get any cargo on scooping.
So I added the key cargo_carried and as content computers. This function was added in version 1.63. It works well with containers added by the system, but those added in a private role always say on scooping: captured a slave or captured "slavename". When I however look in inventory, one ton of computers is added and no slaves. And on docking I also get the insurance message of a captured slave.
If I shoot a competing ship that had already scooped some of those containers and get them back I get the same behavior.
I already tried setting "unpiloted" to yes, no and completely removed it.
You can repeat the bug by using Cargo_Wreck_Teaser. That OXP uses the cargo_carried command in the Gemspod and the Goldpod. Both can be invoked by adding a ship with role: Gold or Gemstones. It can be done very nice with the debugMenue.OXP in oolite 1.69.1
EDIT: changed Gems into Gemstones
cargo_carried buggy?
Moderators: winston, another_commander, Getafix
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
cargo_carried buggy?
Last edited by Eric Walch on Wed Sep 26, 2007 7:54 pm, edited 1 time in total.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
- Arexack_Heretic
- Dangerous Subversive Element
- Posts: 1876
- Joined: Tue Jun 07, 2005 7:32 pm
- Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
- Contact:
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Actually I have told you (or the intested public here on the board) already once or twice long time ago. Don't remember when or where, though. I do remember that somebody (perhaps another_commander?) answered to my post, giving some explanations why it doesn't work. But you didn't react, as far as I recall.Arexack_Heretic wrote:
You tell me after it has been out for over a year?
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Speaking as a recipient of bug reports, telling the interested public does not constitute telling the responsible party.Commander McLane wrote:Actually I have told you (or the intested public here on the board) already once or twice long time ago.Arexack_Heretic wrote::(
You tell me after it has been out for over a year?
E-mail: [email protected]
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
- Arexack_Heretic
- Dangerous Subversive Element
- Posts: 1876
- Joined: Tue Jun 07, 2005 7:32 pm
- Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
- Contact: