[0.18.8.0] Milk jug toss: occasionally stuck after a game

While playing Milk Jug Toss you get locked in the game after throwing the second ball, forcing you to manually leave the game using ctrl and forfeiting the tickets. Frequency varies wildly.

Steps to Reproduce

Simply play Milk Jug Toss. I don’t know what causes the issue.

What I expected to happen

The game to end and pay out tickets.

What happened

Getting stuck in Milk Jug Toss indefinitely.

3 Likes

Can confirm

This seems to be tied to the balls not de-spawning for some reason?

2 Likes

The issue might be caused when the second ball is still touching a bottle after being thrown?

I have noticed the issue is increasingly more likely to occur when the ball falls into the area behind the bottles (after hitting some of them down there.)
I have also observed times where the ball is visibly touching the bottles in the blue gutter area in front of it, and in this scenario the minigame takes an exceedingly long time to end. (almost three minutes.)

I assume this is because of a clause that checks if a ball is touching a bottle, and makes it unable to de-spawn.
Perhaps a way to fix this issue would be to add a failsafe for this specific situation or just change how ending the minigame is handled entirely.
Maybe instead of waiting for the ball to de-spawn in order to end the game you could wait about 5-7 seconds after the second ball is thrown to end the game, or if the player successfully wins.
This could also possibly address situations where the game ends too early due to (presumably) the ball de-spawning before the bottles have a chance to properly settle.

2 Likes

This issue should now be resolved in the next update.

I’ve made the countdown to end the game set to 8 seconds after the second ball is thrown, if the game is waiting for things to settle still.

1 Like