GemRB support?
-
I've been informed by Lynx (one of the main developers) that it is indeed SDL2 that is they key to allowing at least the basic "window scaling" feature, after building my own tree to v0.8.6 I was able to maximise the window in the desktop
However, I don't know how it could be configured to do this at launch, because I haven't done much digging into RetroPie. I'm going to try modifying the gemrb.sh RP install script to use SDL2 and v0.8.6, but at the moment github seems to be down for me.
-
I was able to use these 3 terminal commands to maximize the window to the size of the desktop
sudo apt install wmctrl
(it wasn't installed by default on my retropie)
wmctrl -l | grep GemRB
To get the window handle number (in hex)
wmctrl -ir <window_id> -b add,maximized_vert,maximized_horz
But I am not sure that will work for basic Retropie setups, my RP is basically an image of Raspian with RetroPie built from source, because I wanted a full desktop environment for general use and not just an emulation box. Does that sound like it might work though?
-
@chilvence said in GemRB support?:
Does that sound like it might work though?
It should be an easier way to do this, but I haven't had a chance to run any tests. Isn't there a 'fullscreen' configuration option that can be set to do this automatically ?
-
@mitu There is, and it also works on my end an with sdl2/0.8.6 build, but Stuffu mentioned in the original thread that he tried it and there was an issue. Although with recent knowledge, I think it was simply that SDL1.2 was used (which is being phased out of GemRB slowly anyway)
@Stuffu, if you are not already tired of trying things out, you could try adding
-DSDL_BACKEND=SDL2
to the cmake arguments in gemrb.sh
You'll also need to change the libsdl12-dev to just libsdl2-dev in the "function_depends" block, to be sure that sdl2 is installed
You might also need to find where the GemRB.cfg files got installed and make sure that the fullscreen option is enabled there, I am not sure if the install script updates them once the game is installed or not (but that's just my own fault for not understanding how cat and sh files work very well)
I think github is back online, so I'm trying it out now
edit: Ok, I just managed to install from retro-pie setup with the modified gemrb.sh, sdl2 and the config set to fullscreen=1
There is still no way for me to test on generic RetroPie though without re-imaging my SD card, so I can't guarantee it will work out of the box for everyone. However, if those changes are not enough to solve the problem, I am willing to go further trying to solve this. -
@chilvence I will test it in a moment, getting back soon with results! :)
Thanks for looking into this!
-
No problem at all, I would really like to see this sorted so that people only have to worry about installing the game data!
-
@chilvence Somehow it won't build (using 0.8.6):
"Error running 'git clone --recursive --depth 1 --branch 0.8.6 https://github.com/gemrb/gemrb.git /home/pi/RetroPie-Setup/tmp/build/gemrb' - returned 128
gemrb.sh here https://pastebin.com/k05xnx8K if you can spot what's wrong...
-
Git error 128 seems to get hits about having a bad git staging tree. You may need to manually purge the git source tree (but I think RP is supposed to be doing that each time?)
Also, it's very easy to miss, but it should be v0.8.6 rather than 0.8.6, even I keep typing it wrong.
Other than that, your command line looks ok, just don't forget to modify the config entries lower down to use fullscreen.
Just to be sure, it also couldn't hurt to completely remove the gemrb package and start from scratch, the results of experimenting this way can sometimes lead to unpredictable errors.
You should also be able to inspect the build log that git created, on my system it is in RetroPie-Setup/logs, if you can find, unzip and paste one of those logs, that would really help diagnose the issue
-
@chilvence It works! It was the missing "v"! When launching a game it now scales properly and is centered.
Fullscreen option doesn't work though. Tried with IWD2, fullscreen option is also enabled in graphics menu in game but it's not using the full display. It's not the most important part at least for me, so for me I'm happy, big thanks!
I see one thing not really working in IWD2, the videos are full of artefacts. It was that before as well, so it might be something with my game files.
-
Glad we solved one problem, I will have to see if I can find another SD card to put base RetroPie and see if I can resolve the scaling issue
If nothing else, the aim is to deal with the resolution automatically, so the next versions of GemRB will not have these kind of difficulties
I will have to let you down gently though, BG1/2 and IWD are much better supported than PST or IWD2 : you can still play the latter, but you will run into unsupported features or gameplay bugs because they are still both heavily in development. Just a hint at the todo list:
https://github.com/gemrb/gemrb/issues?q=is%3Aopen+is%3Aissue+label%3A"game%3A+iwd2"+
https://github.com/gemrb/gemrb/issues?q=is%3Aopen+is%3Aissue+label%3A"game%3A+pst"You will have much more joy with either game if you use the 'master' branch, but there is still a lot of work to do to make them fully playable
-
@chilvence To be honest, the BG Games are the only ones that I have played a lot. The other ones I have barely touched. It’s just that I have only the enhanced versions of BG1/2 and they are from Mac App Store, I don’t want to buy them again from GOG just to get the original versions. So I’m just stingy... But someday I will probably buy them again :)
By the way should I bother about the missing directories GemRB complains about when launching a game? Like missing portraits folder or CD X/Data? It launches just fine, but might be a problem later in game maybe?
-
@Stuffu Some of the warnings are from the resource manager trying different directories to find the data - if it cannot find what it needs, the game would not load so you can usually ignore them. It's just a result of the modular design of the engine, the resource manager doesn't know exactly what the particular game will load, it just continually spits out a 'debug' output so that we can use it to diagnose problems. The game is actually very loud in the console for this reason.
-
@chilvence Good to know, again big thanks! This is going to be a good summer :)
-
@Stuffu Good luck, don't hesitate to get more support on github or the discord channel if you need it
-
@mitu Thanks for adding latest GemRB in the latest commit, but I don’t see it in experimental packages anymore?
-
@Stuffu Yes, there's an error that I have to fix in the scriptmodule. Should be ok now if you update your RetroPie-Setup script.
-
@mitu Now it's there but the scaling is the same as before. It's the right version 0.8.6, but wasn't it SDL2 that fixed the scaling issues?
-
There will be a separate module for the SDL2 version, but what you can do with the current version is enabled
dispmanx
as the video driver for SDL1 and see if scaling is better.
Go into the RetroPie Setup script, to Configuration / tools, choose dispmanx and then enable it forgemrb
. Then start one of thegemrb
based ports and see if scaling is still wrong. -
@mitu Sorry for the never-ending story...
dispmanx
doesn't launch, below from runcommand:[1m[37;40m[PluginLoader[1m[37;40m]: [0m[37;40mLoaded plugin "WMP File Imp/opt/retropie/supplementary/runcommand/runcommand.sh: line 1255: 20348 Segmentation fault SDL1_VIDEODRIVER=dispmanx /opt/retropie/ports/gemrb/bin/gemrb -C /opt/retropie/configs/ports/icewind1/GemRB.cfg
-
@mitu Maybe I should wait for the SDL2 version? No rush though. Just happy it’s on the list for future improvements :)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.