The International Simutrans Forum

 

Author Topic: Simutrans 122.0 mouse drag problems with SDL2-2.0.18 update in Fedora Linux  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

Offline TrainSalad

  • *
  • Posts: 2
Hi people,
I've been playing the last Simutrans release on Fedora Linux. Some time ago mouse dragging in Simutrans stopped working. I can not drag around the map with the mouse, cannot move the ingame windows, cannot drag with the way building tools.

I did some digging around and found that SDL2 was upgraded from version 2.0.16 to version 2.0.18 around the same time. Downgrading SDL2 back to 2.0.16 fixes the issue. The packages I downgraded are:
    SDL2-2.0.18-2.fc34.i686
    SDL2-2.0.18-2.fc34.x86_64
    SDL2-devel-2.0.18-2.fc34.x86_64
    SDL2-static-2.0.18-2.fc34.x86_64
   
The packages that work are:
    SDL2-2.0.16-3.fc34.i686
    SDL2-2.0.16-3.fc34.x86_64
    SDL2-devel-2.0.16-3.fc34.x86_64
    SDL2-static-2.0.16-3.fc34.x86_64
   
This problem happens with both the Steam version and with a version I downloaded from here: https://simutrans-germany.com/simutrans/linux-package/rpm/
I'm hesitant to report this on the Fedora bugtracker because Simutrans is not in the official Fedora repos. I've never been able to run the versions built for Ubuntu, so could not test the nightly.

Thanks!

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11060
  • Languages: De,EN,JP
I would suggest to compile it yourself, static compilations across different Linux distros may or may not work. Self compiling is more reliable.

You could also try the nightly compilenightlies.simutrans.com even though this is for ubuntu.

The SDL2 code was changed a lot recently, and thus a nightly may fix this issue. (To allow for finger motion, but it affected also the dragging.) So I recommend compiling yourself. It is quite easy on Linux. See the technical documentation section below.
« Last Edit: December 15, 2021, 11:57:30 AM by prissi »

Offline Roboron

  • Devotee
  • *
  • Posts: 440
    • Las Gal├ícticas Aventuras de Komoyo Diga
  • Languages: ES, EN
Compiling the latest nightly on Arch Linux with SDL2-2.0.18 -> No problem
Executing Simutrans 122 from Steam -> Problem
Executing Simutrans Nightly from Steam -> No problem

So the problem does indeed seems to be the combination of 122 stable + SDL2-2.0.18. But it also seems to be fixed in the latest nightly, so try that. If you don't want to compile the nightly yourself, the Nightly beta branch on Steam should work...

Offline TrainSalad

  • *
  • Posts: 2
I was not aware that the nigtlies were available on Steam! Thank you for this information! And indeed I can confirm that it works with the new SDL2 version without problem.