RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Possible to port GridWars 2

    Scheduled Pinned Locked Moved General Discussion and Gaming
    55 Posts 7 Posters 9.3k 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.
    • cyperghostC
      cyperghost @toto2000
      last edited by cyperghost

      @toto2000 ;) Thx for digging deeper. I'm afraid I can't help furthermore.

      My experiences with the GL4ES wrapper were that the introvideos, which for example run in some episodes of OpenBOR, ran without any problems with this library. Without linking, the refresh rate (felt) was below 10fps. The user @zanac used the switch lGL for this purpose. Therefore he patched makefile.txt ... I hope this is also possible with GridWars and that the game can benefit from some accelaration.

      -LIBS += -Wl,-rpath,$(LIBRARIES) -lSDL2 -lSDL2_gfx      --> original
      +LIBS += -Wl,-rpath,$(LIBRARIES) -lSDL2 -lSDL2_gfx -lGL --> modified
      

      You can provide the GL4ES wrapper with special options, e.g. that only GLES1.1 is used etc.
      The github of ptetSeb with the usage link gives hints. I've patched OpenBOR to not take the library from the /lib directory, but the version in the same directory of the binary.

      1 Reply Last reply Reply Quote 0
      • S
        spud11 @cyperghost
        last edited by

        @cyperghost Very strangely, when I use ldd gridwars-armhf-rel I get the response not a dynamic executable. I'm really not sure what that means as I copied the binary into the same folder as the other files, and made the binary executable.

        RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @spud11
          last edited by

          @spud11 Can you run file gridwars-armhf-rel and see if it's an executable ?

          S 1 Reply Last reply Reply Quote 1
          • S
            spud11 @mitu
            last edited by

            @mitu Thanks, mitu.

            What I got was:

            gridwars-armhf-rel: ELF 32-bit LSB executable, ARM, EAB15 version 1 (SYSV), dynamically linked, interpreter /lib/id-linux-armhf.so.3,  for GNU/Linux 3.2.0, BuildID[sha1]=b7e8dd092b0a3e8b03642021eb0cee8bca9e80a24, stripped
            

            I've copied that from a photo I took on my home. Hopefully, I've transcribed it correctly.

            RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

            cyperghostC mituM 2 Replies Last reply Reply Quote 0
            • cyperghostC
              cyperghost @spud11
              last edited by cyperghost

              @spud11 Wrong version of ld-linux-armhf.so.3? - I'm still on Jessie-build!

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @spud11
                last edited by

                @spud11 Looks fine - i.e. it seems an executable.

                cyperghostC 1 Reply Last reply Reply Quote 0
                • cyperghostC
                  cyperghost @mitu
                  last edited by

                  @mitu Do you know why it fails in this case?

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by

                    Have no idea - @spud11 are you downloading the file and then transferring to the PI ? Can you try downloading it directly on the PI with wget:

                    wget https://github.com/mmatyas/GridWars/releases/download/first-build/gridwars-armhf-rel
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      spud11 @mitu
                      last edited by

                      @mitu @cyperghost I'm still on Jessie. Yes, I did transfer from my PC to the pi so I'll use the wget method. Thanks.

                      RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

                      1 Reply Last reply Reply Quote 0
                      • S
                        spud11
                        last edited by

                        @mitu @cyperghost. Alright, so I used wget and sudo moved the file to the relevant roms folder and tried running it with ./gridwars-armhf-rel. I got the permission denied error again. I then used ldd and got the same response as last time. Using the file command, I got the same information as last time. Very odd. Maybe it is something I've done to my system and that is why it just won't work. Or maybe it is the wrong version of id-linux-armhf.so.3.

                        RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

                        cyperghostC 1 Reply Last reply Reply Quote 0
                        • cyperghostC
                          cyperghost @spud11
                          last edited by cyperghost

                          @spud11 The error permission denied is a user right error. I think it's the filesystem - if you are using FAT32 then it's very likely you receive such a message. Try to upload/unpack the archive in directory /home/pi. Do not use any sudo command this will overwrite user permission from pi to root.

                          Then use command chmod +x binaryfilename to make the binary executable then run the binary with ./binaryfilename no sudo no bash just like I wrote.

                          As ultimate ratio you can use command sudo chown -R gridwarsdirectory pi:pi

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            spud11 @cyperghost
                            last edited by

                            @cyperghost Thanks. I wound up putting the files in a sub-folder of my /home/pi/ folder because, as you said, my roms folder is on a USB drive. Unfortunately, I still couldn't get it to work. Effectively, I had the same error messages. It's a bit of a pity, but I wonder whether any progress has been made on the porting of it in the meantime by @toto2000.

                            RetroPie v4.4.1 • RPi3 Model B • 5.1V 2.5A PSU • 32GB SanDisk Extreme microSD • 2TB Toshiba Canvio Basics Portable USB 3.0 hard drive • 4 x DragonRise USB Arcade joysticks • 2 x TurboTwist spinners • 1 x USB trackball • 1 x PS4 wireless • 1 x 8BitDo Zero

                            1 Reply Last reply 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.