(trunk) Ships with scan class CLASS_NOT_SET

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

Moderators: winston, another_commander, Getafix

Post Reply
Screet
---- E L I T E ----
---- E L I T E ----
Posts: 1883
Joined: Wed Dec 10, 2008 3:02 am
Location: Bremen, Germany

(trunk) Ships with scan class CLASS_NOT_SET

Post by Screet »

Hi,

during a trip to an anarchy system I recently had groups of ships without report about their legal status. They all use escortAI and have the scan class CLASS_NOT_SET like this one:

Code: Select all

[dumpState]: State for <ShipEntity 0x3c821c18>{"Cobra Clipper SAR" ID: 490 position: (9549.17, 3241.59, -574.229) scanClass: CLASS_NOT_SET status: STATUS_IN_FLIGHT}:
  [dumpState.entity]: Universal ID: 490
  [dumpState.entity]: Scan class: CLASS_NOT_SET
  [dumpState.entity]: Status: STATUS_IN_FLIGHT
  [dumpState.entity]: Position: (9549.17, 3241.59, -574.229)
  [dumpState.entity]: Orientation: (0.759825 - 0.0488681i + 0.0415579j + 0.646955k)
  [dumpState.entity]: Distance travelled: 1783.47
  [dumpState.entity]: Energy: 256 of 256
  [dumpState.entity]: Mass: 160018
  [dumpState.entity]: Owner: <ShipEntity 0xecf4c38>{"All Stars Large Freighter" ID: 489 position: (-11805.2, -131.751, 169575) scanClass: CLASS_NOT_SET status: STATUS_IN_FLIGHT}
  [dumpState.entity]: Flags: isShip, hasMoved, isSunlit, collisionTestFilter
  [dumpState.shipEntity]: Name: Cobra Clipper SAR
  [dumpState.shipEntity]: Display Name: Cobra Clipper SAR
  [dumpState.shipEntity]: Roles: <OORoleSet 0x2541bc20>{cobraclipper escort hermit-ship hunter pirate rescueship scavenger shuttle sunskim-trader trader}
  [dumpState.shipEntity]: Primary role: escort
  [dumpState.shipEntity]: Script: <OOJSScript 0x2541bf68>{"oolite-default-ship-script" version 1.73}
  [dumpState.shipEntity]: Subentity count: 7
  [dumpState.shipEntity]: Behaviour: BEHAVIOUR_FORMATION_FORM_UP
  [dumpState.shipEntity]: Destination: (-11973.8, 738.253, 169123)
  [dumpState.shipEntity]: Other destination: (0, 0, 0)
  [dumpState.shipEntity]: Waypoint count: 0
  [dumpState.shipEntity]: Desired speed: 375
  [dumpState.shipEntity]: Fuel: 120
  [dumpState.shipEntity]: Fuel accumulator: 1
  [dumpState.shipEntity]: Missile count: 2
  [dumpState.shipEntity.ai]: AI:
    [dumpState.ai]: State machine name: escortAI.plist
    [dumpState.ai]: Current state: LOOK_FOR_BUSINESS
    [dumpState.ai]: Next think time: 123.091
    [dumpState.ai]: Next think interval: 0.125
  [dumpState.shipEntity]: Frustration: 0
  [dumpState.shipEntity]: Success factor: 171082
  [dumpState.shipEntity]: Shots fired: 0
  [dumpState.shipEntity]: Time since shot: 100010
  [dumpState.shipEntity]: Spawn time: 107.841 (10.106 seconds ago)
  [dumpState.shipEntity]: Hull temperature: 60
  [dumpState.shipEntity]: Heat insulation: 1
  [dumpState.shipEntity]: Flags: canFragment
Any ideas?

Screet
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

I know you get CLASS_NOT_SET when launching ships with an AI command. e.g. "launchShipWithRole: xxx". Escorts however always inherit the scanclass of their mother by code. Maybe the mother already had no scanclass set?

EDIT: Looking back in your dump I see the mother indeed had no scanclass.
Post Reply