s25client icon indicating copy to clipboard operation
s25client copied to clipboard

Android build

Open Farmer-Markus opened this issue 4 months ago • 2 comments

I'm working on recreating my android port of rttr. ~~Currently the game starts but failes to find any drivers.~~

~~I would need an option to set a custom output path for the translation/data copying.~~ Also an enviroment variable to set the path to the drivers or the game data (or both)

Also another problem is openGl. On android only openGl-Es is available and I've used a translation library (gl4es) that works pretty well. But the SDL videodriver would need: 1. to link against gl4es and 2. the SDL_gl_getprocaddress to be replaced by the gl4es equivalent. This could also be used to support devices like the raspberry pi.

Also I would implement basic touch controls which should also work on touchscreen laptops (thanks to sdl)

I know these would be some pretty big changes...

Farmer-Markus avatar Oct 06 '25 18:10 Farmer-Markus

Changes:

  • Added 'natural' mouse mode & changed invert mouse setting to mouseMode (0:default, 1:inverted, 2:natural)
  • Changed invert mouse GUI setting (translations would need to be added/changed)
  • Added 'GL4ES' to RTTR_OPENGL cmake options & VideoSDL2 driver to support OpenGL-ES
  • Added 'RTTR_BUILD_LIB' cmake variable to build main executable as shared library (Needed to run on android)
  • Added Touch controls to VideoSDL2 driver (moving map with one finger, two finger zooming, double tap to close window)
  • Added allowing to control config paths using enviroment variables
  • Some minor changes to fix compiling with newer versions of gcc and clang

Farmer-Markus avatar Oct 23 '25 12:10 Farmer-Markus

Git History should be cleaned up (Some things should be squashed, so that some distinguish commits are there)

Flow86 avatar Oct 24 '25 04:10 Flow86