Debris

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

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- 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:

Debris

Post by Commander McLane »

I've come across strange debris recently. After destroying a ship, one of the alloys floating in space is named "debris" and is not scoopable. It gets even more strange when inspected:

Code: Select all

[dumpState]: State for <StationEntity 0x14745e00>{"Debris" "Debris" ID: 362 position: (7673.24, -1764.65, 32834.6) scanClass: CLASS_CARGO status: STATUS_IN_FLIGHT}:
  [dumpState.entity]: Universal ID: 362
  [dumpState.entity]: Scan class: CLASS_CARGO
  [dumpState.entity]: Status: STATUS_IN_FLIGHT
  [dumpState.entity]: Position: (7673.24, -1764.65, 32834.6)
  [dumpState.entity]: Orientation: (-0.122372 - 0.790145i + 0.333627j - 0.499389k)
  [dumpState.entity]: Distance travelled: 0
  [dumpState.entity]: Energy: 1 of 1
  [dumpState.entity]: Mass: 468.75
  [dumpState.entity]: Owner: <StationEntity 0x14745e00>{"Debris" "Debris" ID: 362 position: (7673.24, -1764.65, 32834.6) scanClass: CLASS_CARGO status: STATUS_IN_FLIGHT}
  [dumpState.entity]: Flags: isShip, isStation, hasMoved, hasRotated, isSunlit, collisionTestFilter
  [dumpState.shipEntity]: Name: Debris
  [dumpState.shipEntity]: Display Name: Debris
  [dumpState.shipEntity]: Roles: <OORoleSet 0x125ecf80>{alloy station-alloy}
  [dumpState.shipEntity]: Primary role: alloy
  [dumpState.shipEntity]: Script: <OOJSScript 0x127a3c90>{"oolite-default-ship-script" version 1.73.4}
  [dumpState.shipEntity]: Subentity count: 0
  [dumpState.shipEntity]: Behaviour: BEHAVIOUR_TUMBLE
  [dumpState.shipEntity]: Destination: (0, 0, 0)
  [dumpState.shipEntity]: Other destination: (0, 0, 0)
  [dumpState.shipEntity]: Waypoint count: 0
  [dumpState.shipEntity]: Desired speed: 0
  [dumpState.shipEntity]: Fuel: 0
  [dumpState.shipEntity]: Fuel accumulator: 1
  [dumpState.shipEntity]: Missile count: 0
  [dumpState.shipEntity.ai]: AI:
    [dumpState.ai]: State machine name: dumbAI.plist
    [dumpState.ai]: Current state: GLOBAL
    [dumpState.ai]: Next think time: 3792.11
    [dumpState.ai]: Next think interval: 0.125
  [dumpState.shipEntity]: Frustration: 0
  [dumpState.shipEntity]: Success factor: 0
  [dumpState.shipEntity]: Shots fired: 0
  [dumpState.shipEntity]: Time since shot: 100025
  [dumpState.shipEntity]: Spawn time: 192.045 (25.4699 seconds ago)
  [dumpState.shipEntity]: Hull temperature: 51
  [dumpState.shipEntity]: Heat insulation: 1
  [dumpState.shipEntity]: Flags: isFrangible, canFragment
  [dumpState.stationEntity]: Alert level: green
  [dumpState.stationEntity]: Max police: 8
  [dumpState.stationEntity]: Max defense ships: 3
  [dumpState.stationEntity]: Police launched: 0
  [dumpState.stationEntity]: Max scavengers: 3
  [dumpState.stationEntity]: Scavengers launched: 0
  [dumpState.stationEntity]: Docked shuttles: 0
  [dumpState.stationEntity]: Docked traders: 0
  [dumpState.stationEntity]: Equivalent tech level: 2147483647
  [dumpState.stationEntity]: Equipment price factor: 1
  [dumpState.stationEntity]: Flags: none
Really weird, isn't it? And the model is always one of the available alloys.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

There was a bug connected to a debris with a role station-debris.

Whenever Oolite sees 'station' or 'carrier' anywhere inside the role set, it flags up any entity as a station.

Changing that bit of the code could break quite a few OXPs, so the only solution is not to have roles containing either 'station' or 'carrier' inside splinters, or any non-stationy type ship / entity.

I thought it was there already, but we'll have to put a huge warning sign up inside the relevant wiki section.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Debris

Post by Eric Walch »

Commander McLane wrote:
I've come across strange debris recently. After destroying a ship, one of the alloys floating in space is named "debris" and is not scoopable. It gets even more strange when inspected:
That alloy is generated by asteroid storm. Updating to the latest version will correct this.
Post Reply