To reproduce, make sure you belong to force "player", put down a spidertron, arm it with some rockets, enter it, and open its GUI. Use
Code: Select all
/c game.player.force = 'enemy'
- try to rename the spidertron;
- try to insert/remove something into/from the spidertrons inventory;
- move around in the spidertron;
- attack something with the spidertron.
In my WIP version of GCKI, I already set player.vehicle = nil in response to defines.events.on_player_ changed _force. Closing player.opened if that refers to an entity shouldn't be too hard either. Still, I feel this should be taken care of by the game as the issue is somewhat obscure and many modders (myself included -- I only found out about the GUI stuff today) won't handle this because they simply aren't aware of it.