pioneerspacesim / pioneer

A game of lonely space adventure
https://pioneerspacesim.net
1.64k stars 379 forks source link

Lua API request: Unpark ship #893

Open johnbartholomew opened 12 years ago

johnbartholomew commented 12 years ago

SpawnShipParked allocates a static parking slot (of which there are currently four). There is no way to deallocate this slot. Either Lua should have Unpark, similar to Undock, or (preferably in my opinion) ships should automatically negotiate with the station to unpark when their AI is re-tasked to do something other than hold position (this may require a new AI task 'park' which would be derived from hold position and just add the functionality to request or release a parking space).

robn commented 12 years ago

Agree with the latter - it should be automatic. If not it allows the script to leave the engine in an inconsistent state.

johnbartholomew commented 12 years ago

A longer term option might be to add a more general space-traffic-control system, that would provide a way for ships to negotiate (with the station) to request or release docking slots and parking slots, query the correct approach to dock and so on. Note that most of these facilities already exist internally (by necessity), though maybe not with the flexibility or sophistication that a general space traffic control system might have.