Tweakeroo

Tweakeroo

2M Downloads

FreeCamera bug

WhatsWhatMC opened this issue ยท 8 comments

commented

Whenever I press the button to go into free camera mode, the speed of my camera keeps going up and moving around until my game freezes, forcing me to close the game with Task Manager. The only buttons that I know I am pressing are WASD, space, shift, LAlt, LCtrl, and p(the button I use for free camera). I am using the latest version of Tweakeroo (and some of your other mods), and I never encountered this issue before. The speed seems to go back to normal when I press some combination of buttons, but it still continues to speed up. Restarting my game has not fixed this problem.

Video of the issue: https://streamable.com/l8w0bf

commented

Someone else also reported this yesterday. But I can't get this to happen in my test instances, and looking at the code I can't see how this would even be possible. But I did change the free camera entity movement code yesterday a little bit before building the release, so obviously those changes are somehow triggering this, but I suspect there must be some other mod involved.

Since I can't see what could possibly cause this in the code, I don't know what else I could do to fix this other than revert all the related code to the old code. But I'd rather not do that since the point of the changes were to clean u the code and make it more generic use. There was a small mistake in the code in the release, but even so I still can't get this to happen in my test instances, so I don't know if fixing that small mistake would affect your case.

So can you try disabling other mods to see if you can find a mod that causes this? My first guess would be some mod that somehow touches Tweakeroo's code, but I don't know if you have such extension mods installed.

commented

Same problem occurred to me. I removed all my mods and put them back each to test, but then no bugs occurred. I am not sure what triggerred the bug. Here is my mod list:
Carpet mod v1.4.56
Iris v1.2.0 pre
LambDynamiclights v1.2.0+1.17
Litematica v1.10.0
Malilib v0.11.4
MiniHud v0.21.2
ModMenu v0.3.1
okZoomer v5.0.0-beta.3+1.17.1
Phosphor v0.8.1
Sodium v0.4.0-alpha6+build.14
Tweakeroo v 0.12.0

commented

I have encountered this issue myself. All I know is that I can avoid going to lightspeed in Flymode if I disable my sprint. I play MC with Spring Toggled and not held, so once I go into flymode its still enabled. Once I disable sprint in flymode it'll stop and then I can reset it back to where my player is.

Hope this helps in some way

commented

I have encountered this issue myself. All I know is that I can avoid going to lightspeed in Flymode if I disable my sprint. I play MC with Spring Toggled and not held, so once I go into flymode its still enabled. Once I disable sprint in flymode it'll stop and then I can reset it back to where my player is.

Hope this helps in some way

Yea this seems to be the problem with me. When I go into freecam with toggle spring enabled it sends me into light speed, and when I disable toggle sprint it goes back to normal. Also the same when I go into freecam with toggle sprint enabled it goes to lightspeed and when I go into freecam without toggle sprint it is normal

commented
commented

Try if this version fixes it: https://masa.dy.fi/mcmods/tweakeroo/tweakeroo-fabric-1.18.1-0.12.1.jar

Seems to be working fine now. I'm gonna keep using it for a bit and see if I encounter the issue again.

commented

Lightspeed occurs when sprint is held down when entering freecam, I think that Carpet mod is the problem because I started to expierience this right after I downloaded it.

commented

No this definitely also happened without Carpet mod. I was just changing some of the Free Camera code and then things broke for that one release.