phoboslab / wipeout-rewrite

2.64k stars 212 forks source link

Infinite "rescue out-of-bounds player" loop #128

Open nergix opened 2 months ago

nergix commented 2 months ago

Hi,

I somehow got the game into a state where the robot which places the player back on the track kept doing so in an infinite loop. I was unable to proceed until another ship eventually nudged me from behind.

This occurred on the live browser version as of 26th July.

I attempted to capture a video by quickly starting up OBS and pointing it at the browser window in which I was playing the game. Unfortunately OBS happened to be configured to use a software video encoder which was unable to keep up with the action, so the resulting video suffers in framerate. Before I could get a better capture, another ship nudged the player ship back in-bounds, and the opportunity was lost.

Hopefully the video is of some use in diagnosing the problem (I had to ZIP it because github dislikes MKV):

2024-07-26 08-21-55.mkv.zip

phoboslab commented 2 months ago

Thanks for the video! Though I have a hard time understanding what's going on. It seems like the droid grabs the ship and then immediately drops it and starts over!?

I assume the "Are we done being rescued"-check here is faulty, probably because the ship->temp_target is not set correctly. I'll look into it as soon as I find some more time.

If you find a way to reliably reproduce this bug, let me know!

nergix commented 2 months ago

I have a hunch that braking to a halt while in mid-air over the gap might do it. I don't remember precisely, but I may have stopped in mid-air there because I was hit by a missile. It may be a "zero forward velocity" thing.

BTW, I noticed after posting originally that my bug report is actually a duplicate of pre-existing

https://github.com/phoboslab/wipeout-rewrite/issues/104

(which also comes with a video).