• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

GemRB support?

Scheduled Pinned Locked Moved Help and Support
gemrb
64 Posts 6 Posters 10.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Stuffu @mitu
    last edited by 29 Aug 2020, 09:37

    @mitu thanks for checking it out! I’ll reach out to the gemrb project to see if there is something do do about it...

    1 Reply Last reply Reply Quote 0
    • S
      Stuffu @mitu
      last edited by 29 Aug 2020, 18:49

      @mitu it would be good if someone from gemrb could reply here, but I try to be a relay...

      Is the proposed solution below a way forward?

      cool; is the pi4 good enough to just use the lightly accelerated sdl2?

      http://sprunge.us/0A2Gos?diff <-- try applying this and rebuilding

      M 1 Reply Last reply 30 Aug 2020, 03:05 Reply Quote 0
      • M
        mitu Global Moderator @Stuffu
        last edited by mitu 9 Feb 2020, 16:39 30 Aug 2020, 03:05

        @Stuffu said in GemRB support?:

        cool; is the pi4 good enough to just use the lightly accelerated sdl2?

        Probably yes.

        http://sprunge.us/0A2Gos?diff <-- try applying this and rebuilding

        No, that won't work. I'll try to experiment a bit and see if I find the error, then I'll open an issue for gemrb.

        1 Reply Last reply Reply Quote 0
        • C
          chilvence
          last edited by 1 Sept 2020, 23:10

          @Stuffu Sorry, I was just catching up on the happenings at discord and didn't realise you'd tried to ping me. I saw this change go in a few weeks ago but I hadn't tested it out myself.

          I do know that there is a huge upending in progress with the backend rendering system, all of which is way over my head, but I hadn't realised the support for the pi4 had been broken. It was actually compiling and running nicely last time I tried, but that was then...

          @mitu it sounds like you have already sensed the root of the problem somewhat, if you can shed any light on it by opening an bugtracker issue, I'm not one of the gemrb developers but I am a regular tester and I am armed with a pi4, so hopefully I will be able to help solve this.

          1 Reply Last reply Reply Quote 0
          • M
            mitu Global Moderator
            last edited by mitu 9 Feb 2020, 20:31 2 Sept 2020, 16:08

            OK, I've opened an issue on the Github project page. It specifically addresses the shader initialization issue reported by @Stuffu, but not the build issues introduced by the commit I mentioned before.

            @chilvence if you have a Pi4, you can test the patch I linked and see if it works for you, either with 0.8.7 or the latest master.

            S 2 Replies Last reply 2 Sept 2020, 19:11 Reply Quote 0
            • S
              Stuffu @mitu
              last edited by 2 Sept 2020, 19:11

              @mitu i read the Github issue you submitted. You are so awesome! :)

              1 Reply Last reply Reply Quote 0
              • S
                Stuffu @mitu
                last edited by 7 Sept 2020, 12:29

                @mitu It seems there is a commit with the suggested changes and I tried installing from source, removing the "v0.8.7" but it still builds from stable release, without the commits.

                This is how gemrb.sh looks, is it maybe related to BUILD_TYPE?

                function sources_gemrb() {
                    gitPullOrClone "$md_build" https://github.com/gemrb/gemrb
                }
                
                function build_gemrb() {
                    mkdir -p build
                    cd build
                    make clean
                    cmake .. -DCMAKE_INSTALL_PREFIX="$md_inst" -DCMAKE_BUILD_TYPE=Release -DFREETYPE_INCLUDE_DIRS=/usr/include/freetype2/ -DSDL_BACKEND=SDL2 -DUSE_SDLMIXER=OFF
                    make
                    md_ret_require="$md_build/build/gemrb/gemrb"
                

                Thanks! :)

                M 1 Reply Last reply 7 Sept 2020, 12:37 Reply Quote 0
                • M
                  mitu Global Moderator @Stuffu
                  last edited by 7 Sept 2020, 12:37

                  @Stuffu said in GemRB support?:

                  This is how gemrb.sh looks, is it maybe related to BUILD_TYPE?

                  No, that's not related to the source version. Without a branch name, it should pull from the master branch - make sure you clean up the downloaded sources before attempting to build from master.

                  S 1 Reply Last reply 7 Sept 2020, 13:00 Reply Quote 0
                  • S
                    Stuffu @mitu
                    last edited by Stuffu 9 Jul 2020, 14:04 7 Sept 2020, 13:00

                    @mitu Progressing on to a new error... O_o

                    "Could not successfully build gemrb - gemrb - open-source implementation of Infinity Engine
                    (/home/pi/RetroPie-Setup/tmp/build/gemrb/build/gemrb/gemrb not found).

                    md_ret_require="$md_build/build/gemrb/gemrb"

                    The source files are indeed in the /tmp/build/gemrb/ ...

                    edit, log here: https://pastebin.com/jzUzaKB0

                    1 Reply Last reply Reply Quote 0
                    • M
                      mitu Global Moderator
                      last edited by mitu 12 Sept 2020, 20:42 7 Sept 2020, 13:48

                      Oh, yes - master (and v.0.8.7) does not build without -DWERROR_DISABLE=1 (?) added to the cmake line.

                      S 1 Reply Last reply 7 Sept 2020, 19:09 Reply Quote 0
                      • S
                        Stuffu @mitu
                        last edited by 7 Sept 2020, 19:09

                        @mitu And it worked! Cmake didn't like -DWERROR_DISABLE=1but with -DDISABLE_WERROR=1it built as it should and I can actually play the games and it looks good, finally!

                        I was about to insert a link to Neverending Story with Limahl, then I read the lyrics and changed my mind :)

                        Thanks again!

                        E 1 Reply Last reply 9 Dec 2020, 08:45 Reply Quote 0
                        • E
                          ecto @Stuffu
                          last edited by 9 Dec 2020, 08:45

                          @stuffu Hi stuffu, you seem to be very committed to GemRB. I just dived into it some days ago, and already had some moderate to huge success. I installed the five games on my Windows computer, updated them to the last official version, applied some WeiDU community fixes and transferred the files over to my Retropie. So far so good: The games run without any complaint (though I had to adjust the GemRB.cfg for the fact, that I put all files from the different disks into the one datafolder).

                          Now comes the tricky part: I wanted to apply some widescreen resolution and GUI patches:

                          • After some lengthy experiments I managed to install biggs widescreen patch (set to 1280x720) and Ghostdog's UI patch for PS:T. It really looks gorgeous on my TV set!

                          • Fo BG1 I had no such luck. While I can install the widescreen resolution patch, no GUI patch seems to work properly. I tried and tried and gave up eventually. I have the feeling that something with the font handling isn't working, because as soon as I installed the 1280x720 BG1 UI patch by ikonomov I get some error "Assertion 'TextFont' failed".

                          I also wasn't able to install some ttf font for the higher resolution for any game. That's why I hope to get it to run on a newer GemRB version.

                          As the v0.8.6 branch is now outdated but the scriptmodule isn't updated yet, I want to try and just make those changes mentioned above manually. Would you suggest to rather use the master branch insead of v0.8.7? Have you tried and successfully installed any widescreen patches?

                          C S 2 Replies Last reply 9 Dec 2020, 13:39 Reply Quote 0
                          • C
                            chilvence @ecto
                            last edited by 9 Dec 2020, 13:39

                            @ecto I have not tried any BG1 widescreen patch for a long time (even though it's pretty much mandatory) but for what it's worth, the future 0.8.8 GemRB release will have resolution independence built in to the UI - it does not actually patch the UI graphics like these mods do, but it places the different panels at the edges of the screen sensibly (so it looks sort of NWN/PoE style)

                            It's a bit of an awkward issue to solve, since the game originally required a full set of UI 'config' files for every single resolution. These are called CHU files and they should end up in your override folder after running the widescreen patch. You might have more luck if you just use those files and nothing else from the patch - there should (hopefully) be nothing they can do that will cause GemRB to error like that.

                            E 1 Reply Last reply 9 Dec 2020, 13:53 Reply Quote 0
                            • E
                              ecto @chilvence
                              last edited by ecto 12 Sept 2020, 13:54 9 Dec 2020, 13:53

                              @chilvence Wow! Thanks for your quick reply! I guess that waiting for 0.8.8 is the way to go! In the meantime playing in 4:3 hasn't hurt us in past, right? ;-)

                              One thing I noticed with the 1280x720 widescreen GUI mod is, that there is a normalN.bam file installed into the override folder. I thought that this might me the font file and tried to delete or replace it, but the error persisted. :(

                              If I have the time, I will look into the CHU files. Thanks for the hint!

                              C 1 Reply Last reply 9 Dec 2020, 14:03 Reply Quote 0
                              • C
                                chilvence @ecto
                                last edited by 9 Dec 2020, 14:03

                                @ecto Ah, CHU and MOS files will be what you are looking for, nearly forgot (MOS are the actual images, CHU is the control layout)

                                Some of these patches were quite creative how they got the original to display bigger than 640x480, and GemRB doesn't necessarily need all of it. It's quite awkward to extract the useful bits out of a weidu patch though, you might need a clean BG1 install again to see what it actually changes.

                                C 1 Reply Last reply 9 Dec 2020, 14:20 Reply Quote 0
                                • C
                                  chilvence @chilvence
                                  last edited by chilvence 12 Sept 2020, 14:23 9 Dec 2020, 14:20

                                  By the way, I'm not really sure what the normalN.bam is about, the font is originally named just Normal.bam - maybe this is some increased size font, but they patch the EXE to load it ?

                                  Anyway, not sure if I found the exact same version, but the iconomov rar file on spellhold studios, all I did was extract the chu and mos files to my BG1 override folder and change the gemrb config file to 1280x720, and so far appears to work fine.

                                  As I say though, hopefully soon no one will ever have to jump through these hoops to get a sensible resolution...

                                  E 1 Reply Last reply 9 Dec 2020, 14:44 Reply Quote 0
                                  • E
                                    ecto @chilvence
                                    last edited by 9 Dec 2020, 14:44

                                    @chilvence said in GemRB support?:

                                    By the way, I'm not really sure what the normalN.bam is about, the font is originally named just Normal.bam - maybe this is some increased size font, but they patch the EXE to load it ?

                                    The mod installs an increased font size, that's true. And there is a patched exe bundled in this mod afair but I have no knowledge of what it does. I just started using GemRB and the whole Infinity mod scene some two or three days ago.

                                    Anyway, not sure if I found the exact same version, but the iconomov rar file on spellhold studios, all I did was extract the chu and mos files to my BG1 override folder and change the gemrb config file to 1280x720, and so far appears to work fine.

                                    Yeah, that's the one. Ill try your patching route, too. But as I said, maybe the GemRB Version I use (0.8.6) is outdated and produces this error. (?)

                                    But just to be clear: There is no need to install bigg's widescreen patch? I just have to set the resolution in the cfg and I'm good to go (apart from the GUI)?

                                    As I say though, hopefully soon no one will ever have to jump through these hoops to get a sensible resolution...

                                    That's true and I'm very exited! It's really amazing seeing such a lively scene around the Infinity games after all this time. This is btw. the most important part for me in retrogaming: Being amazed by all this compassion for old games!

                                    C 1 Reply Last reply 9 Dec 2020, 15:26 Reply Quote 0
                                    • C
                                      chilvence @ecto
                                      last edited by chilvence 12 Sept 2020, 15:30 9 Dec 2020, 15:26

                                      It's complicated. GemRB itself does not need to be patched to support any arbitrary resolution, you can even have 1200x1600 if you like having your monitor sideways.

                                      The only thing is the widescreen patches usually bundle the required UI files to position the windows correctly. It used to be the case that you would simply assume that people already had widescreen patches installed, since the small window size is intolerable. However it should not cause an error if you install them. GemRB shouldn't be crashing, it should just ignore the parts it doesn't need.

                                      If you still don't have any luck, then if you can tell me exactly which patches you applied (if there were any others), I might be able to reproduce the error and find out what is going on. I am actually following this thread, but I only tend to break out my pi when I am away from home, which is less and less these days...

                                      I'm also curious to hear what problems you had setting up the TTF fonts. Is there a problem building the TTF plugin or is it with setting up the data or paths?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Stuffu @ecto
                                        last edited by 9 Dec 2020, 20:25

                                        @ecto sorry late to the game, I’m just a happy user, not even close to @chilvence so I guess you met your man already. I’m running in 4:3 like the old days but don’t have anything against having widescreen support in the future...

                                        E 1 Reply Last reply 9 Dec 2020, 21:39 Reply Quote 0
                                        • E
                                          ecto @Stuffu
                                          last edited by 9 Dec 2020, 21:39

                                          @stuffu @chilvence
                                          So I made another little test:

                                          • I installed GemRb from source using the master branch
                                          • I deinstalled the GUI mod so that only the widescreen mod (1280x720) is installed

                                          The game runs in 1280x720. The bottom part of the GUI is flushed left, but everything is playable just fine. Submenus are in 4:3 in the center of the screen.

                                          • When I now copy over the MOS and CHU files from the GUI mod into the game override folder, I get the same error as before. :(

                                          I'd say that I will leave it at that. I'd rather wait patiently for the next release than to fiddle around for hours just to get something that will be obsolete in the future. As the most important part of the game is in 16:9, I'm a happy gamer!

                                          I will look into the external ttf fonts though, but that is for another day ;)

                                          C 1 Reply Last reply 9 Dec 2020, 23:20 Reply Quote 0
                                          • First post
                                            Last post

                                          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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received