SRB2 Message Board

SRB2 Message Board (https://mb.srb2.org/index.php)
-   Help (https://mb.srb2.org/forumdisplay.php?f=53)
-   -   Camera or Mouse Problem (https://mb.srb2.org/showthread.php?t=42848)

spellwiz 07-30-2017 08:04 PM

Camera or Mouse Problem
 
Hello, with the release of the new pack I have tried playing srb2 again. The problem is I play with my mouse. When moving the mouse the best way I can describe the problem is that the camera forces its way back whenever I move my mouse. It gets stuck if I move it up or down as fast as I can. I have unplugged my mouse and tried using my numpad as the mouse, as I don't have another mouse handy, but it still doesn't work. I have a logitech mouse and have tried disabling the software, messed around with the in-game settings a ton, but can't find a solution. If I hold the END key (center view) it sort of fixes the problem, as I move the mouse it automatically centers it after it snaps back. Which means when I move my mouse left, it snaps back right and centers it. Just looking for some help so I can play the new pack with my friends. Thanks in advanced :)

spellwiz 08-02-2017 04:43 AM

Ok so I've figured out what's happening: My mouse is being forced to the middle of the screen. If I alt tab and move my mouse, alt tab to srb2, and then alt tab once more, I'll find my mouse back in the middle. Any help would be wonderful.

Rumia1 08-02-2017 08:41 AM

This is due to how the game's coded, rather than tracking your mouse's movement directly, the game instead checks how far your pointer has traveled every frame and brings it back to the center again on the next. There is nothing wrong with your mouse.

spellwiz 08-02-2017 01:24 PM

but I've never had this problem before, and I can't even use my mouse in gameplay, it goes back to the center and the camera follows it back to the center. so if its the game, why is it only now that I am noticing it?

edit: I forgot I still have srb2 1.9 aswell, and my mouse works perfect in there. I've tried a fresh download of 2.1.19 and my camera is still messed up
edit2: My mouse is fine in srb2dd.exe
edit3: https://gifyu.com/images/srb200001f510.gif

Monster Iestyn 08-07-2017 08:00 PM

Sounds like your problems are to do with SDL2 then, we switched srb2win.exe to it since 2.1.12 or so. As far as I recall it handles mouse input differently to srb2dd.exe (which uses DirectX, which is what we used to use), and currently it involves a hack that teleports your mouse back to the center to keep your mouse in the window.

We probably should do something about that hack perhaps, if possible.

~Confusion~ 08-09-2017 01:53 PM

Gotta say that I have similar mouse problems in the SDL2 exe, it screws up the precision of my aiming. That's why I'm still using srb2dd...

spellwiz 08-27-2017 01:59 AM

Quote:

Originally Posted by Monster Iestyn (Post 794955)
Sounds like your problems are to do with SDL2 then, we switched srb2win.exe to it since 2.1.12 or so. As far as I recall it handles mouse input differently to srb2dd.exe (which uses DirectX, which is what we used to use), and currently it involves a hack that teleports your mouse back to the center to keep your mouse in the window.

We probably should do something about that hack perhaps, if possible.

Honestly, that's all I wanted: An answer as to what the problem was. For now I am just playing with my keyboard; it's just a small adjustment to get used to. If anyone figures out how I can fix my mouse issues, as I am the only one of my friends to have this problem, please let me know. Otherwise, please continue the good work on the next major release. It's going to be awesome regardless of my mouse working or not lol.

Yoshirocks90 08-27-2017 01:37 PM

Out of curiosity, are you in windowed mode? I've noticed that problem when I'm in windowed.

Monster Iestyn 08-27-2017 06:38 PM

Just so you guys know, AlamGBC and I have recently worked on replacing the hacks I mentioned with more suitable code, which might even fix the issues mentioned in this thread. I made a merge request for this here on GitLab: http://git.magicalgirl.moe/STJr/SRB2/merge_requests/206 (a mirror also exists on our GitHub repo)

Monster Iestyn 08-30-2017 07:27 PM

Okay, spellwiz and ~Confusion~ and anyone else that has issues with the mouse/camera in srb2win.exe, download and test out this exe to see if the issues are fixed:

https://lightdash.org/SRB2/misc/srb2...elmouse-mi.exe

This is not intended as a replacement of 2.1.19's srb2win.exe, though it is netplay compatible with it. I can at least debug crashes with it if necessary.

That2rb2DUDE 09-01-2017 12:04 PM

Quote:

Originally Posted by Monster Iestyn (Post 795426)
Okay, spellwiz and ~Confusion~ and anyone else that has issues with the mouse/camera in srb2win.exe, download and test out this exe to see if the issues are fixed:

https://lightdash.org/SRB2/misc/srb2...elmouse-mi.exe

This is not intended as a replacement of 2.1.19's srb2win.exe, though it is netplay compatible with it. I can at least debug crashes with it if necessary.

Not to sure if anyone had responded to you with this but I can confirm that the issue is fixed with this build.

Had asked about this problem maybe 3 or so years ago and super glad its solved!

Monster Iestyn 09-01-2017 02:53 PM

Nope, you're the first to respond actually. =) In any case, whoo!

spellwiz 09-10-2017 05:14 AM

sorry for the no reply, work has been killer this week lol. I can confirm this fixes the problem I described. Thank you so much for responding and fixing the issue. Please continue the amazing work :)<3

Monster Iestyn 09-10-2017 01:50 PM

Awesome!

I merged those fixes to our master branch on GitLab/GitHub a while back, so you can expect the next official release or patch to have them.

Smith The Icefox 10-01-2017 02:22 PM

Same issue here, but, kinda diffrent:
My mouse isn't the best, so, it should be an problem, but, out of that it's like STICKY
when i try to move it, only in SRB2.
I've tried sesivity configuration and much other methods and can't fix, someone have an idea what is going on with my mouse?
also my mousepad isn't the best too

Monster Iestyn 10-12-2017 02:59 PM

Sorry to take so long to respond, but does the linked exe a few posts ago do anything to help at all?

Blue Hedge 10-20-2017 06:50 AM

Quote:

Originally Posted by Monster Iestyn (Post 795426)
Okay, spellwiz and ~Confusion~ and anyone else that has issues with the mouse/camera in srb2win.exe, download and test out this exe to see if the issues are fixed:

https://lightdash.org/SRB2/misc/srb2...elmouse-mi.exe

This is not intended as a replacement of 2.1.19's srb2win.exe, though it is netplay compatible with it. I can at least debug crashes with it if necessary.

Hello, I'm a long time lurker, first time participant of this community and I just want to say thank you for the fix. I experienced this exact same bug a few days ago out of nowhere. I'm glad I came here to see your fix and I'm looking forward to meeting you all.

Monster Iestyn 10-21-2017 10:26 PM

Glad it's helped you out then, and welcome to our community. =)

SMSGARDIAN 12-17-2017 11:08 PM

I had made a OpenGL version of the exe file the @Monster Iestyn gave you. here it is.
https://tinyurl.com/srb2winfixed-OpenGL

Hazard88263 12-17-2017 11:54 PM

You do know you can use OpenGL with the exe MI gave (and with any SRB2 exe), right?
You just wasted your time compiling an EXE.
EDIT: Actually it's just a .bat. Bravo, you've done something literally anyone else can do in ten seconds.


All times are GMT. The time now is 09:06 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.