Possible to port GridWars 2
-
Wow :) You rock! Thank you so much....
Can you please provide the compiled game?
There is a lot of thing to do for compiling this game :(Is the gameplay nice and enjoyable on a Pi?
-
@cyperghost I don't know. It's still developmental and not in a playable state. Read through the readme and give it a go if you want to try it out and debug. I don't have the time to mess with code all that much so feel free to brush up on your BASIC coding skills.
-
I was playing around a bit on a Pi 3, but currently the game is way too broken:
- setting are not saved properly on exit (but you can edit them manually)
- changing screen resolution ingame produces black screen (you have to manually kill the process)
- screen resolution setting doesn't work properly, just makes the "content" bigger of smaller in the upper left corner
- windowed mode setting doesn't work and it's always fullscreen
- it seems the mouse input also controls the desktop behind the game; if you accidentally bring up a right-click menu or a logout/shutdown dialog, the system may freeze
- it seems the game engine uses software rendering, and so even the intro screen can be slow on big resolutions
- if you start a new game after playing already, the game freezes
- moving the mouse can cause graphical glitches
- there's no sound
If you want to try it, here's the binary: https://github.com/mmatyas/GridWars/releases
-
Also full disclosure @fluffypillow is the genius that got things sorted. I just bugged him about it and he got it to compile so I take no responsibility for any progress on my account ;)
If you run RetroPie on a pc gridwars works fine that way. The code just isn't super happy wirh opengles on the pi without some more work on the code.
-
Sorry to bump a very old thread, but it appears better to do that than start a new one to give some consistency. I was just wondering how you got this to work @fluffypillow. I understand that it definitely won't work perfectly.
Do you just download the binary from https://github.com/mmatyas/GridWars/releases and execute it or did you also need to compile the source code too? If you needed to do the latter, did you place the binary in the same directory/folder as the compiled source code and run it?
I'm on a rpi 3B but still using jessie.
-
@spud11 at least in my experience with it it would start to run and then quickly crash. I wouldn't consider it playable on its current state on the pi
-
@spud11 If I remember correctly, you have to clone/download the git repo ("Source code" on the releases page is fine too), as that contains the game assets. Then download the binary, place it into this directory and run. Shouldn't need to compile anything, the binary on that page is already compiled for you. But I can take a look tomorrow if it still fails.
-
@fluffypillow @herb_fargus Thanks for your replies, guys. Must admit I haven't even been able to get it to run at all. I've copied the
gridwars-armhf-rel
file into a folder together with all of the source files. The binary is executable. I've run the binary straight from commandline usingsudo /bin/bash gridwars-armhf-rel
with the resultgridwars-armhf-rel: gridwars-armhf-rel: cannot execute binary file
. -
@spud11 Which folder have you copied into ? Looks like an error related to the filesystem mount options, usually you get this when the filesystem is mounted with the
noexec
option. -
@mitu Seems a bit strange because I haven't used
noexec
option anywhere. All files appear in the/home/pi/RetroPie/roms/gridwars2
folder that I have created and I'm just trying to start the file from commandline. -
@spud11 Have you made the file executable (
chmod +x gridwards-armhf-rel
) ? Note that you should run it via./gridwars-armhf-rel
, not withsudo bash ...
. -
@mitu said in Possible to port GridWars 2:
./gridwars-armhf-rel
Hi mitu. Happy New Year! Yes, I have given it the correct permissions and for good measure used the command you gave. I have also tried
./gridwars-armhf-rel
, but get permission denied. -
Just tried the binary on an up-to-date RetroPie, and it launches fine for me, without sudo or anything. Your errors seem to show filesystem issues as @mitu said; are you trying to run the game from USB or Samba share perhaps? Have you tried a different SD card?
As for the game, due to the GLES lib name changes on Stretch, it hangs on startup with an initialization error, then eventually crashes (patching the binary is not enough). Likely a bug in the engine itself.
-
@spud11 I got the same behavior as @fluffypillow - the program starts, but it's not fully compatible and crashes. But it's not the same error as yours, for sure.
-
If someone is interested for Windows version.
This link seems to be the only woking oneYou will find download link directly under first picture ;)
-
Up ! Can someone sum up where we are?
Which version did you use ?
I can certainly help going forward with this quest (having GW run on the pi), I'm a CS engineer... -
@toto2000 great! So at the moment on Debian Stretch the game doesn't start up properly, however it used to work (as in, launched) on Jessie (Wheezy?). There are quite a few issues with the engine causing crashes, you may want to run through the code with the debugger to catch them all.
You can get the code and my patches here, and also some build instructions. A prebuilt binary is here, the one that used to launch originally.
-
@toto2000 That would be great. I was unable to get the pre-built binary to work on Jessie (which I'm still on).
-
@fluffypillow Ok, I already managed to recompile completely the compiler itself and maxIDE on my Mac + compile GridWars using the command line + MaxIDE. Next -> recompile all these things in the Pi. I followed your instructions + get your controls.bmx patched file (original did not compile due to a Joycon not found error)
Do you have an idea of what was going wrong? Problems with the OpenGL version?
-
@fluffypillow Which version of the compiler did you use? This one : https://github.com/bmx-ng/bmx-ng/releases/tag/v0.81.3.16.rpi or a more recent one that you recompiled for the pi? On the Mac I used https://github.com/bmx-ng/bmx-ng/releases/tag/v0.99.3.31.macos and was wondering if I could recompile the up to date sources on the Pi, like I did on the Mac... Maybe this would maximize the chances of building a runnable GridWars..?
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.