Head over Heels from 2003 - Would it work on Retropie?
-
@Folly Thanks a bunch for trying to compile something. Much appreciated. Yes, I hope someone else chimes in with the ability to complete this little task!!!
-
@Folly said in Head over Heels from 2003 - Would it work on Retropie?:
The code is probably too old.
Probably. There's a more modern fork at https://github.com/dougmencken/HeadOverHeels that you can try.
-
Thanks;-)
I tried the
linux-build.sh
I also had to installlibtinyxml2-dev
to please configure.
Compiling of HOH stops at the end ofconfigure
with the last line saying "syntax error: unexpected end of file" and no makefile found.
So sadly, not working on my pi4 with bullseye yet. -
@Folly Thanks for trying, Folly
-
Trying now to compile on my x86-32 debian buster VM.
I have made some progress and found a couple of issues in the
configure.ac
configure.ac
contains some "else if" functions that should be "elif" (changing it will now make a betterconfigure
script which make a properMakefile
and so it can compile)configure
seems to wrongly detect which allegro (4 or 5) to use (this detection takes place in the same "elif" lines)after compiling the( run the game from thegamedata
is searched in the wrong directory and needs to be copied to the correct directory_rootdir
directory and everything should be in placelinux-build.sh
configuresconfigure
to compile without allegro (it probably then tries to use the installed liballegro4-dev or liballegro5-dev that is installed as depandancy)- depending on the different tries on different computers an os'es , headoverheals will give errors when trying to run :
- "segmentation fault" on allegro5 (on my x86-32 buster)
- "Shutting down Allegro due to signal #11" "segmentation fault" (on my x86-32 buster forcing "--with-allegro4")
- same sort of issues on pi4 with raspberry pi os (bullseye)
Edit :
Looks like I am close though sadly no dice.
I will stop trying, for now.Have added an issue to the repository :
https://github.com/dougmencken/HeadOverHeels/issues/39 -
Thanks for bringing this gem to my attention.
Just stopping by to note that I overhauled the
linux-build.sh
script from Doug's repo and destilled a RetroPie scriptmodule of it.Find it here [1]
Tested on a Rpi4 and Rpi3. Game starts with audio and navigation works in the menu before starting a game. Game can be started. However, when in game the keyboard actions are no longer recognized. (Use for example
killall xinit
to return to EmulationStation).In contrast: The same build commands create a fully playable game on a x64 (Debian Bullseye) in X11.
Tested with the bundled allegro lib 4.4.3.1 as well as the 4.4.2.1 from Buster. But result was the same. (Bullseye on Desktop provides 4.4.3.1).
Tested also Allegro 5 (addliballegro5-dev
to the dependencies and add--with-allegro5
to thecmake
command, FWIW) but with allegro 5 the keyboard is not detected from the beginning.I assume it is related to either the allegro engine or the game itself that the keyboard presses working before are no longer recognized in the game. But I did not dig into it yet.
Question: Maybe you guys have additional hints for the cause/debugging tips?
[1] https://gist.github.com/Gemba/f2c541f6e027d7278e948f80e311e318
-
@Lolonois said in Head over Heels from 2003 - Would it work on Retropie?:
Tested on a Rpi4 and Rpi3. Game starts with audio and navigation works in the menu before starting a game. Game can be started. However, when in game the keyboard actions are no longer recognized. (Use for example killall xinit to return to EmulationStation).
Could be a focus issue due to the lack of a window manager. Configure the port launch command with
XINIT:
andruncommand
will take care of starting X, a window manager and disable any screen blanking. See howsteamlink
is configured for an example. -
@mitu Thanks would have been an quick win but unfortunately it does not solve the issue when I adapt the
matchbox-window-manager &
line before. I did use theXINIT:
keyword already.Also I should add that when running the game from within Pixel/lxde at a Pi the result is the same: Game starts, menu navigation with keyboard ok, in game no keyboard.
Edit:
Found a reference which may explain the issue: https://www.allegro.cc/manual/4/api/keyboard-routines/install_keyboard -
Nice to see that it can work somehow.
Just wanted to let you know what I tested, what works and what doesn't, yet.I tried your module-script and got these results :
- Imac-I5_bullseye_x86_64bits+desktop -> compiles and loads, game is playable, quitting the game doesn't work (have to open a new terminal and do "pkill headoverheals" and get back to the desktop, desktop is then in low resolution
- pi4_bullseye_32bits+desktop -> compiles and loads, no keyboard anymore after selecting "new game"
- VMware_bullseye_x86_64bits+desktop -> doesn't compile
-
@Folly Thanks for trying out. Some more observations I made so far:
After I was out of options for allegro4 I tried again the allegro5 build: And to my surprise it works. =B-) I most likely was too impatient on the Rpi3 as it is non-performant (the game not the Rpi3), and I assumed I was stuck in the Language selection screen. Plus I had to set the video mode in the Runcommand menu to 640x480.
The contrast between the allegro4 and allegro5 build is stark: When idling in the first room load is approx 4x higher with the allegro5 build. I guess because the allegro5 implementation is still work in progress, respective the lags are not detectable on a desktop system thus were not noticed by Doug, but get apparent on a Rpi4 and Rpi3.
Long story short: It boils down to an optimization issue of the game with allegro5, which is more easily to remediate as the "no keyboard" with the allegro4 build (and dealing with the "dead horse" allegro4 anyway). Will update my Gist soon.
Re: Your observations
- I have no stakes on a Mac but usually it is pressing M within the game then Esc should bring you back to the Gui Menu from where you can exit.
- See above. Thanks for verifying that it was not only my machine/setup.
- Vmware build: Was is the build error?
-
@Lolonois said in Head over Heels from 2003 - Would it work on Retropie?:
Re: Your observations
I have no stakes on a Mac but usually it is pressing M within the game then Esc should bring you back to the Gui Menu from where you can exit.
Works for me.
Might be a good idea to change m into esc :<pause>esc</pause>
Seem to work just fine, what do you think ?
See above. Thanks for verifying that it was not only my machine/setup.
I am indeed curious on how it reacts on different setups so we can learn from it and perhaps improve some things along the way.
Vmware build: Was is the build error?
I have put the log on my github :
https://github.com/FollyMaddy/headoverheals-compilation-stuff/blob/main/rps_2023-03-16_104412.log.gz -
@Folly changed the M to Esc. It is more intuitive, thanks. For the vmware build error: I have noticed the output of
LT_INIT: command not found
. Could you addlibtool
to the dependencies (depends_hoh()
) and retry? -
Adding
libtool
did the trick.
You should definitely add it to the depends.Everything works except the sound has some hick-ups.
-
-
Not to be rude or anything but all the information is in the posts ;-).
Summarised (using debian 11 (or 10)):
- headoverheels doesn't work yet on the pi using allegro4 (starts in menu and can be controlled but has an issue not being able to control/play the game) (sound is ok)
- headoverheels does work on the a normal x86_64 pc using allegro4 (sound is ok)
- headoverheels does work on my virtual x86_64 machine using allegro4 (but has issue with sound that does have some hick-ups)
- @Lolonois is busy trying to update the module-script and use allegro5 and test that (hopefully it will solve the problems and using it could make the game run faster)
-
@Folly Thanks for validating this. As I learned from your other post the audio issue happens on x64 with liballeg4 and not on arm/Raspberry Pi.
-
@Lolonois said in Head over Heels from 2003 - Would it work on Retropie?:
audio issue happens on x64 with liballeg4 and not on arm/Raspberry Pi
Right, in a vitual machine x64 only to be correct, a normal x64 pc has no sound issues.
Btw.
All above tests have been done with your old module-script using allegro4.If you want I can try it on a mac M1 with VMware Debian 11 aarch64 too.
I just tested your new module-script using Allegro5 and removed the flags so I could install on aarch64, but it doesn't work and hangs with the patch.I did not test your new module-script on other computer yet.
-
@duglor I would say it is usable and smoothly playable on a Raspberry Pi 4. But keep in mind that a) the scriptmodule is experimental (and the build on arm hardware) and b) the allegro 5 implementation started by Doug Mencken is not optimized.
@Folly thanks for your summary and testing the different setups.
FWIW: Optimizing for the Allegro 5 game engine is a major project as the framework concepts have been changed from polling based (allegro 4) to event based (allegro 5). Thus it implies a lot of not only rewriting but also redesign to make a good match to the allegro 5 approach.
As with any open source project I don't give any statement if/when I will optimize this, but the sources are there for anyone interested and whoever feels to join me (and maybe even has sound allegro5 knowledge) is more than welcome.
-
Seems quite some work.
Btw.
Also tanks for all the work you already did.If I could I would help you however, sadly, I do not have the required knowledge.
-
@Folly said in Head over Heels from 2003 - Would it work on Retropie?:
If I could I would help you however, sadly, I do not have the required knowledge.
Thanks, and no worries. At the moment I did not even consider starting that endeavour.
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.