Raptor007 / X-Wing-Revival

X-Wing combat space flight simulator (uses RaptorEngine).
https://www.raptor007.com/x-wing-revival/
12 stars 4 forks source link

Predicted Shot Sync Errors #6

Closed Raptor007 closed 5 months ago

Raptor007 commented 5 months ago

When using shot prediction (enabled by default) firing a pair of missiles/torpedoes with 3 ammo remaining only fires a single one on the server. You can tell this happened if one tracks its locked target and the other doesn't. This is because the firing mode is automatically reduced to available ammo, so the client erroneously sends firing mode 1 with its shooting update. Sometimes firing the last 2 missiles as a pair also does not really fire server-side, so neither will track.

This can cause your ammo count to get out of sync with the server, which can then cause other strange situations such as lasers that won't stop firing or docking bays refilling ammo seemingly beyond capacity.

I recommend changing the Network Predict setting from "All My Shots" to "My Lasers".

This bug has been patched server-side, so "Fly Online" should no longer be effected.

Raptor007 commented 5 months ago

Fixed in v0.4.2.