Skip to content

Documenting the NPC ship update packet #12

@mrfishie

Description

@mrfishie

The NPC ship update packet still has many unknowns. This issue is to keep track of discoveries made.

Status:

  • float unknown1: known, impulse/throttle for the ship. Used for simulation between two updates. Doesn't appear to affect jet streams behind the ship.
  • byte unknown6: known, fleet number as set in a mission file. Similar to the 'faction', but probably represents grouping of ships.
  • byte unknown8: possibly known, seems to be the side of the ship (at least in a mission). 1 is enemy and 2 is player.
  • int unknown7: maybe the dive/rise control. Almost always is -1 or not in the packet, sometimes is 0. Using an int for this seems a bit weird though.
  • byte unknown9 and unknown10: something? Appear to always give values of -1 (or 255) for neutral ships and other values including -1 (or 255) for enemies. Might have something to do with AI or hull/race keys?
  • short unknown4: something? Doesn't seem to be normally set in the initial 'creation' packet. Might be shield state or similar. Not enough testing to confirm yet.
  • int unknown13 and unknown14: maybe? most of the time is either omitted or 0. Could have something to do with hull/race keys?
  • byte unknown11: always seems to be 1 from my testing.

Things that are missing: Through testing with the mission editor, both setting a ships exit point and changing the surrender chance don't seem to have any effect on the packet. Race and hull keys are missing from the currently documented packet, although the client might not need them. They would have to be a pair of values (one for hull and one for race), so could be unknown9 and unknown10 or unknown13 and unknown14?

The mission editor also has a property to determine if a ship triggers mines, which doesn't appear to affect any values in the packet.

Some other testing and feedback would be gladly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions