The-New-Platinum-Team / PlatinumQuest-Dev

The main repository for the game PlatinumQuest after the formation of new development team.
MIT License
14 stars 8 forks source link

MP: If you're not host, Mega Marble Powerup Timer UI visuals are inaccurate, showing large negative number #34

Closed main-gi closed 3 years ago

main-gi commented 3 years ago

Maybe affects Teleporters and Teleporter powerup as well but I haven't tested it. I think getSimTime() is different from host to non-host or something, but anyway the powerup timer's supposed to go from 10 to 0, but with this bug the visual will appear to be -50000. This is only a visual bug that affects a newly added feature, but still annoying that it exists.

HiGuyMB commented 3 years ago

getSimTime is time since the game started on the local machine. getRealTime is the time since local machine boot. Don't use either of them for absolute timekeeping. Use one of the playgui/$Time totalTime variables.

main-gi commented 3 years ago

Fixed in commits c06fcd6 3525e48 with playgui's totalTime but I don't understand why the old code only broke on Mega Marble / Teleporter when the MBG original powerups were fine, as well as the fireball timer code using getSimTime() and just subtracting one from the other and working. However it is fixed now so whatever.