Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.1k stars 80 forks source link

Mouse controls #281

Open n3roxe opened 1 year ago

n3roxe commented 1 year ago

Hi, in my case mouse camera controls doesnt work properly on linux. I can control the camera only when holding left mouse button - so cant turn and look down/up like you normally do when when walking.

Im on steam deck, but this happen with usb mouse too.

Try commented 1 year ago

Hi, @n3roxe and thank for bugreport!

In game intent is to have kind of controls, that you described only in Windowed mode. Assuming that you are building from sources, can you try to make a quick change to lib/Tempest/Engine/system/systemapi.cpp:

bool SystemApi::isFullscreen(SystemApi::Window *w) {
-  return inst().implIsFullscreen(w);
+  return true;
  }

Im on steam deck

That's coll, never had opportunity/time to test it on steam-desk myself . It would be great if you can share experience on how game runs or some screenshoots.

n3roxe commented 1 year ago

298954452_528434622389061_6642868526831031386_n

I didnt build it from sources, i just ran gothic 2 through steam and luxtorpeda compatibility layer. It downloaded open gothic automatically and works with 0 tinkering.

As for performance, its definitely heavier than OG gothic. But OG gothic had problem with no background music on my system. Cloud shadows are very heavy on the gpu. Even without them, its barely doing 60 frames. There are drops in city due to cpu, and drops due to GPU in heavy scenarios like close look at the campfire for example. But when locked at 50 frames it plays well. I didnt discover much bugs, it doesnt stutter, audio is good. All around pretty playable and blast to play on a handheld device.

That camera control is annoying though, thats why i reported an issue.

Nindaleth commented 1 year ago

I also tested the game on Deck for a minute, works like this:

Nindaleth commented 1 year ago
bool SystemApi::isFullscreen(SystemApi::Window *w) {
-  return inst().implIsFullscreen(w);
+  return true;
  }

I'm happy to report that this patch allows controlling the camera on Steam Deck without keeping left mouse button pressed.

(originally I was running a different binary than expected, as Luxtorpeda replaced my build with the official release binaries on every launch, thus my confusion)