SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 07-30-2017   #1
spellwiz
Default 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 :)

Last edited by spellwiz; 07-30-2017 at 08:07 PM.
spellwiz is offline   Reply With Quote
Old 08-02-2017   #2
spellwiz
Default

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.
spellwiz is offline   Reply With Quote
Old 08-02-2017   #3
Rumia1
worries too much
 
Rumia1's Avatar
Default

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.
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...
Rumia1 is offline   Reply With Quote
Old 08-02-2017   #4
spellwiz
Default

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:

Last edited by spellwiz; 08-02-2017 at 02:56 PM.
spellwiz is offline   Reply With Quote
Old 08-07-2017   #5
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

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.
Monster Iestyn is offline   Reply With Quote
Old 08-09-2017   #6
~Confusion~
 
~Confusion~'s Avatar
Default

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...
__________________
Quote:
*Chaos*Aries*ASD* renamed to hms
<hms> im the real one
<hms> nice try aries
<~Despicable Me> Lol 2 hms
Despicable Me renamed to hms
Back then we all had windows xp... Lucky we were =S
~Confusion~ is offline   Reply With Quote
Old 08-27-2017   #7
spellwiz
Default

Quote:
Originally Posted by Monster Iestyn View Post
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.
spellwiz is offline   Reply With Quote
Old 08-27-2017   #8
Yoshirocks90
Mapping/Scripting Hedgehog
 
Yoshirocks90's Avatar
Default

Out of curiosity, are you in windowed mode? I've noticed that problem when I'm in windowed.
__________________
I'm accepting mod testers! Test mods before they're released! Submit your own edits! Apply
Yoshirocks90 is offline   Reply With Quote
Old 08-27-2017   #9
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

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 is offline   Reply With Quote
Old 08-30-2017   #10
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

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.
Monster Iestyn is offline   Reply With Quote
Old 09-01-2017   #11
That2rb2DUDE
Splatoon 2 Top Player
 
That2rb2DUDE's Avatar
Default

Quote:
Originally Posted by Monster Iestyn View Post
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!
__________________
Youtuber over 30,000 Subs:
http://www.youtube.com/ThatSrb2DUDE

Twitter: @ThatSrb2DUDE
That2rb2DUDE is offline   Reply With Quote
Old 09-01-2017   #12
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Nope, you're the first to respond actually. =) In any case, whoo!
Monster Iestyn is offline   Reply With Quote
Old 09-10-2017   #13
spellwiz
Default

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
spellwiz is offline   Reply With Quote
Old 09-10-2017   #14
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

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.
Monster Iestyn is offline   Reply With Quote
Old 2 Weeks Ago   #15
Smith The Icefox
Useless Awkward.
 
Smith The Icefox's Avatar
Default

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
__________________
Quote:
Originally Posted by Starrow
Or you may be blind...
Quote:
Originally Posted by Musaab
Where is your DAMN respect??!
Smith The Icefox is offline   Reply With Quote
Old 1 Week Ago   #16
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Sorry to take so long to respond, but does the linked exe a few posts ago do anything to help at all?
Monster Iestyn is offline   Reply With Quote
Old 2 Days Ago   #17
Blue Hedge
 
Blue Hedge's Avatar
Default

Quote:
Originally Posted by Monster Iestyn View Post
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.
Blue Hedge is offline   Reply With Quote
Old 9 Hours Ago   #18
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Glad it's helped you out then, and welcome to our community. =)
Monster Iestyn is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 AM.


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