Open nkm235 opened 2 years ago
might be fixed in the next build with the mouse clip fix, please test 1.0.1 as soon as its out
v1.0.1 , same results as v0.9.5
gif 1 (main menu subsection), The part at the end is alt+tab gif 2 (in-game), only gui is the issue, aiming is fine
Edit:im not sure if this is useful but the mouse issue in the main menu subsection (hideout) might be because the menu transitions from 2d into a 3d scene and upon loading messes up the mouse which might be the same reason as in-game.
the fullscreen exclusive issue is no longer reported in the log file. so that seems fixed. (which now that im looking at it was probably caused by a .dll load error that seems to have been fixed since v0.9.5)
Can you try adding OpenWinClass=*
to your sandbox config? This fixes the same issue for other Unity games and it might work for Tarkov.
I suppose this topic must have been renamed to a more global title like “Unity games mouse locked to the middle issue” for better progress because it seems currently to be a common issue for all Unity-based games that the mouse pointer gets stuck in a small several pixels area when switching to menus. That might have been introduced with some Windows or Sandboxie updates (or both) since I do not remember having experienced such type of trouble back in the time of Windows 8.
Now I did a little tinkering with the workaround described above. It is functionable indeed but I wonder if anyone could suggest what executables and/or window classes exactly we have to give access (to) instead of disabling this part of Sandboxie protection completely. I tested both for the specific game executable and UnityWndClass for “all programs” but no luck. Only OpenWinClass= does the trick.
P.S.
I also tried some third party applications. The main downside of them is that the most of them are meant oppositely for locking and not for unlocking the mouse cursor in a window.
There is the SpecialK framework (“Unrestrict cursor” option needs to be enabled), still that piece of software might be too resource-expensive when being used just for the purpose of unconfining the mouse pointer.
Another one is Lock cursor tools (can be installed in the same sandbox). But it requires certain weird manual steps every time when a game is launched. The game window shall be selected/executable located in the application settings bar but the selection shall not be confirmed to produce the effect sought (i.e. OK shall not be pressed and this way Lock cursor tools settings shall be left open while playing). Therefore, not the optimal solution as well.
Can you try adding
OpenWinClass=*
to your sandbox config? This fixes the same issue for other Unity games and it might work for Tarkov.
I tried setting OpenWinClass=* which means not to change the window class name created by the program within the sandbox, and then launched the game; however, the issue of the mouse being locked to the center of the screen persists, with no difference from the previous illustration.
Describe the bug
To Reproduce
Screenshots Attempting to move mouse in a tab of the main menu (same behavior as in-game menu's)
Expected behavior Mouse behaving correctly and moving freely in GUI's. Full screen exclusive mode to function properly
System details and installed software
If you have a compatibility issue
Additional context The offline single player mod has no effect on the issue itself but wanted to mention it since it's in use and because of the anti-cheat being sandboxed that might cause issues. The game launches perfectly with the mod, all menu's appear normally, loads into gameplay normally with the exception of 2 things.
Sandboxie configuration
My initial sandboxie.ini settings
```` [GlobalSettings] FileRootPath=D:\