SWG-Source / dsrc

Other
11 stars 48 forks source link

Unloading a Booster will also unload a Droid/Flight Computer #82

Open Cekis opened 4 years ago

Cekis commented 4 years ago

In the ship management window, when you unload a booster and have a loaded Droid/Flight Computer (aka "navicomputer"), the Droid/Flight Computer will also be unloaded.

Cekis commented 4 years ago

This happens because the server code (src) sends a message to the scripting engine (dsrc) that the item in slot "7" is being removed. The server code knows slot "7" as the booster slot... the scripting engine knows slot "7" as the droid_interface slot. The fix could be as simple as sync'ing the two environments, however, so much existing functionality revolves around the slots as they are that there may be major issues trying to sync them with other areas of space.

IrishDarkshadow commented 4 years ago

Is it possible to have an appended step where a check is used to identify that two components were removed and to put the droid computer back in?