godarklight / DarkMultiPlayer

DarkMultiPlayer - A multiplayer mod for Kerbal Space Program
MIT License
280 stars 120 forks source link

Flags do not save #4

Closed Cellivar closed 10 years ago

Cellivar commented 10 years ago

Personal flags left on locations are not present after disconnecting and reconnecting.

godarklight commented 10 years ago

Flags appear to have an empty GUID - I'll likely have to store them in a special folder.

godarklight commented 10 years ago

Flags definitely do not have a GUID, which means they are going to have to be treated specially.

This will require a protocol break, which I'd rather not do for 0.1.3.1, so I'm bumping this back to 0.1.4.0

godarklight commented 10 years ago

After further testing, flags do actually have a GUID, sometimes...

You need to leave the flight (Packing and unloading is not enough), and then load back in for flags to get saved on the server. It's pretty horrid and I can't understand why KSP does this, but DMP tracks vessels by GUID. No GUID means we can't track the vessel properly.

This may still be possible if we track flags by the root part ID - But only if it's constant.

godarklight commented 10 years ago

Slightly dodgy, but fixed in ecc497a4226a95a518738d140f9297751e1d4de3