Suggestions for ports #2
-
@ExarKunIv said in Suggestions for ports #2:
I have gone and installed and tested every script. I have removed all that dont work/build, or ones that only play in a small window. they are now in RetroPie-Extra-unstable
- -
heboris.sh
- Tetris The Grand Master clone - Installs, Plays great
I wish I could figure out what I'm doing wrong with this one. It acts exactly like Texmaster does in terms of only playing in a tiny window, and nothing I try fixes it.
I did notice that the error message it displayed while installing/uninstalling referenced ZeroJay rather than Exarkuniv, no idea if that's significant.
-
@ExarKunIv said in Suggestions for ports #2:
@JimmyFromTheBay said in Suggestions for ports #2:
Bah. There's a thread elsewhere on the forum about installing it directly which includes a pic of someone running it in fullscreen, will try that method instead.
but give it a try, if you can get it to work in fullscreen i can update the script to do so
I found the install directory and the config file, and changed it to fullscreen rather than a window, but it made no discernible difference. There were permissions warnings when I edited the file, but it still seemed to save the changes.
-
@JimmyFromTheBay post what your ''emulation.cfg'' has in it.
As this point I'm going with some how you are installing a old script.
Or better yet. Post the whole install script, that way we can see what one you are using.
I'm going with you are changing the resolution through the runcommand, correct? -
Ha, I just reinstalled it for the 6th time and now it's in fullscreen :D
But I still have almost no sound, even after changing the settings from MIDI to MP3, and no background images. Am I meant to download MP3s and images separately from somewhere?
It's a nightmare trying to find any documentation for this stuff, but it LOOKS as though they're meant to go in /opt/retropie/configs.hdmi/ports/heboris/config/res, except I don't have the permissions to create that folder.
This is what's in HEBORIS.SH in /home/pi/RetroPie-Extra/scriptmodules/ports:
#!/usr/bin/env bash # This file is part of RetroPie-Extra, a supplement to RetroPie. # For more information, please visit: # # https://github.com/RetroPie/RetroPie-Setup # https://github.com/Exarkuniv/RetroPie-Extra # # See the LICENSE file distributed with this source and at # https://raw.githubusercontent.com/Exarkuniv/RetroPie-Extra/master/LICENSE # rp_module_id="heboris" rp_module_desc="HeborisC7EX - Tetris The Grand Master Clone" rp_module_help="To get mp3 audio working, you will need to change the music type from MIDI to MP3 in the Heboris options menu." rp_module_repo="git https://github.com/zerojay/HeborisC7EX.git" rp_module_section="exp" rp_module_flags="!mali" function depends_heboris() { getDepends libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libgl1-mesa-dev xorg } function sources_heboris() { gitPullOrClone } function build_heboris() { make md_ret_require="$md_build/heboris" } function install_heboris() { md_ret_files=( 'heboris' 'res' 'replay' 'config' 'heboris.ini' 'heboris.txt' ) } function configure_heboris() { local script="$md_inst/$md_id.sh" chown pi:pi "$md_inst/heboris" moveConfigDir "$md_inst/config" "$md_conf_root/$md_id/config" moveConfigDir "$md_inst/replay" "$md_conf_root/$md_id/replay" moveConfigFile "$md_inst/heboris.ini" "$md_conf_root/$md_id/heboris.ini" #create buffer script for launch cat > "$script" << _EOF_ #!/bin/bash pushd "$md_inst" "./heboris" \$* popd _EOF_ chmod +x "$script" addPort "$md_id" "heboris" "HeborisC7EX - Tetris The Grand Master Clone" "XINIT:$script" }
This is what's in EMULATORS.CFG in /opt/retropie/configs.hdmi/ports/heboris:
heboris = "XINIT:/opt/retropie/ports/heboris/heboris.sh" default = "heboris"
Also, btw, there's a really weird issue with Blake Stone - the sequel, Planet Strike runs perfectly, but the original Aliens Of Gold just dumps back to EmulationStation.
-
@JimmyFromTheBay well I'm glad you got full screen. As for the sound. I don't know if something is missing like a driver or it just will not work. I know the mp3s are in the folders. Same for the backgrounds.
You have to remember most of the ports on RP-E are no longer being worked on so they might be incomplete.
Since I personally did not make the script for this I never looked in to how complete the game outside of what zerojay wrote
As for Blake stone. You need the full game for it to work.
Only the demo is preinstalled.Unless you have it. Then something is going on and I have to look at it
-
@JimmyFromTheBay said in Suggestions for ports #2:
But I still have almost no sound, even after changing the settings from MIDI to MP3, and no background images. Am I meant to download MP3s and images separately from somewhere?
It's a nightmare trying to find any documentation for this stuff, but it LOOKS as though they're meant to go in /opt/retropie/configs.hdmi/ports/heboris/config/res, except I don't have the permissions to create that folder.
This PR should fix the permissions and make a link to the configs dir for easy access to
res
and its contents: -
@ExarKunIv said in Suggestions for ports #2:
As for Blake stone. You need the full game for it to work.
Only the demo is preinstalled.Unless you have it. Then something is going on and I have to look at it
Yes, I have the full game for both.
[EDIT: scratch this - there was some sort of conflict created by copying over too many files from the full version or not deleting the shareware ones or something. Long story short, it works now. It's a bit academic as neither game supports gamepad input so they're not much fun, but I do like solving problems :D]
-
@sleve_mcdichael said in Suggestions for ports #2:
I know the mp3s are in the folders. Same for the backgrounds.
There are definitely no MP3s or background images installed with the game. But I navigated about a thousand broken links and finally found some somewhere. (MP3s called bgm01.mp3, bgm01.mp3 etc and PNGs called BACK01.png, BACK02.png etc.)
This PR should fix the permissions and make a link to the configs dir for easy access to
res
and its contents:Okay, I updated and reinstalled and I now have a res folder and all the requisite subfolders in /opt/retropie/ports/heboris, but they're empty and I still have no permission to copy anything into them.
(There are shortcut links to accessible config and replay folders, but not one for res.)
However, following the logic of what appeared to be happening, I created a res folder and subfolders in /opt/retropie/configs.hdmi/ports/heboris alongside the config and replay folders in there, and added the MP3s to the res/bgm subfolder and the PNGs to the res/bg subfolder. I changed the game's settings to MP3, but still no sign of either music or backdrops.
Despite not having the slightest clue what I'm doing in terms of scripts, I then tried editing the relevant part of /home/pi/RetroPie-Extra/scriptmodules/ports/heboris.sh to add a line about res, thus:
function configure_heboris() { local script="$md_inst/$md_id.sh" chown pi:pi "$md_inst/heboris" moveConfigDir "$md_inst/config" "$md_conf_root/$md_id/config" moveConfigDir "$md_inst/replay" "$md_conf_root/$md_id/replay" moveConfigDir "$md_inst/res" "$md_conf_root/$md_id/res"
but that had no apparent effect. There was still no shortcut to res in /opt/retropie/ports/heboris.
Then I worked out that was the wrong script file, and did the same edit to /home/pi/RetroPie-Setup/ext/RetroPie-Extra/scriptmodules/ports/heboris.sh, deleted and reinstalled again. Now I do have the shortcut, but the music and backgrounds still don't appear in the game. I'm stumped :(
-
@Philcomm said in Suggestions for ports #2:
@exarkuniv said in Suggestions for ports #2:
@philcomm thanks for linking my post.
ill take all the help to get more people to find this. :)
Sure i would love to make something with you
I was thinking something along the same line. this post was kinda a start for it.there is so much good stuff out there and alot of it get lost in the forum
Nice to hear. So I was thinking about hosting a markdown document somewhere. That way we don't have to worry too much about formatting.
I think very important here is the structure. It is very easy to just put stuff in the document, but another thing to make it easily navigatable and understandable.Happy to assist with this, I too have a pretty extensive document for my own use, written in simple terms so that even clueless dumdums like me can follow it.
-
@sleve_mcdichael applied the update
-
@JimmyFromTheBay said in Suggestions for ports #2:
There are definitely no MP3s or background images installed with the game.
Not that it matters now, since i just merged the update from @sleve_mcdichael, but yes both the MP3s and PNGs are in the folders they need to be, or in the folders that the scripts put them in since on my system they are sitting where they should be from what the old script put them
those are all the files that are included when the game installsnot sure why yours didn't have them, since we both used the same script..
with that being said. try the new script and let @sleve_mcdichael know how it works
-
So I uninstalled Heboris (which was playing perfectly, just silently) completely, deleted both of the heboris.sh scripts, quit to the commandline, typed cd RetroPie-Extra and ran ./update-extras.sh, restored Heboris to the selected installs list, rebooted EmulationStation, installed Heboris again from RetroPie-Setup and rebooted again.
GOOD NEWS: all the MP3 and PNG files are now present and correct in the right folders.
BAD NEWS: the game no longer runs at all, freezing on a black screen necessitating a power-off.
Runcommand log prior to power-off:
Parameters: Executing: xinit /dev/shm/retropie_xinitrc -- vt1 -keeptty X.Org X Server 1.20.4 X Protocol Version 11, Revision 0 Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian Current Operating System: Linux retropie 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=HDMI-A-1:1920x1080M@60,margin_left=16,margin_right=16,margin_top=16,margin_bottom=16 smsc95xx.macaddr=DC:A6:32:D6:68:B8 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=2010ac85-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0 Build Date: 19 April 2021 03:23:36PM xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support) Current version of pixman: 0.36.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Wed Jul 27 15:20:59 2022 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (II) modeset(0): Initializing kms color map for depth 24, 8 bpc. Set mode 1920x1080@60Hz on HDMI-1 Executing (via xinit): /opt/retropie/ports/heboris/heboris.sh /opt/retropie/ports/heboris ~
-
@JimmyFromTheBay hmm thats a odd one, but i have not tried the new script. hopefully @sleve_mcdichael can shed some light on it
-
@ExarKunIv said in Suggestions for ports #2:
@JimmyFromTheBay hmm thats a odd one, but i have not tried the new script. hopefully @sleve_mcdichael can shed some light on it
That's what I get for pushing changes without testing first.
-
I forgot a
$
-
I tried to use
moveConfigDir
on a file, not a directory -
I neglected that
moveConfigDir
andmoveConfigFile
do not work like a regularmv
; they do need the actual filename in the destination and not just the dir to move them to, i.e.mv bar foo/bar
, and not justmv bar foo
.
This should fix it up. I have tested this and it is working on my end, including custom music by replacing the files in
/opt/retropie/configs/ports/heboris/res/bgm
with my own tracks, renamed following the convention (seebgm.txt
in that folder for details -- you do have to change music to MP3 in the in-game "settings"):https://github.com/Exarkuniv/RetroPie-Extra/pull/97
@JimmyFromTheBay (edit: fix is published, just update your extras.)
if you get here before EK pushes the fix, you can download this file from my fork and replace the one in yourRetroPie-Setup
directory as you've done before at the end of this post.Despite not having the slightest clue what I'm doing in terms of scripts, I then tried
Best way to learn, in my opinion. You can almost always undo whatever you've done and if not, you've got backups right?
-
-
@sleve_mcdichael said in Suggestions for ports #2:
Best way to learn, in my opinion. You can almost always undo whatever you've done and if not, you've got backups right?
I completely agree. That and asking alot of questions.
Edit
Applied the merge now -
Well, the game runs again, but despite all the folders being there with MP3s and PNGs in them, still no sound or backdrops :(
There seemed to be far too many files, though, so I uninstalled again, deleted the whole RES folder manually, and reinstalled once more. This time there were fewer files, and I suddenly DO have music, but no ingame sound effects and still no backdrops.
However, this doesn't look like an installation issue. I found the sound test menu and the only sound effects that seem to be present are #4, #15-19, and #34. The only music tracks present are #1-#5 (faster versions of the same song) and #11 (same as #1). So I guess the issue now is just finding the proper music.
No idea why the backdrops aren't working, though.
-
@JimmyFromTheBay said in Suggestions for ports #2:
No idea why the backdrops aren't working, though.
Yeah me neither. I look in the graphics test in the game and it shows like 88 pages but none of them are the images from the bg folder. That folder also doesn't have a
.txt
file explaining its usage like the other folders do. The README says you can alter backgrounds here but maybe it was planned but never implemented. In the gameplay it looks like it's just a black background? I didn't play very long...The music does support more tracks (it says) but yeah, it only comes with bgm01-06 and title.mp3.
Sound effects appear to support more than are included, as well.
-
@sleve_mcdichael It's really annoying. I spent half a day trying to find some audio packs to at least get basic sound effects, and every single link is dead. It's weird because they're just sound effects, who would object to those? And why would a game be released with basic sound effects as an external plugin anyway? It seems there are 47 in total but it comes with only 20 of them. Grrrr.
-
@JimmyFromTheBay said in Suggestions for ports #2:
And why would a game be released with basic sound effects as an external plugin anyway? It seems there are 47 in total but it comes with only 20 of them.
welcome to the world of ports. there are alot out there that are almost done with a few things missing and the Devs stop working on them. So not everything was added like it was meant to be.
this is the reason for RE-E. for ports that are almost working but a few things a missing or just cuz someone got it to work on a Raspberry Pi, IE. DOOM 3.
I do appreciate the work you are putting into this and getting it to work as it should.
-
@ExarKunIv Well, you guys are doing all the work, I'm just picking holes in it :D
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.