Launch Amiga games from Retropie menu

Home Forums RetroPie Project Everything else related to the RetroPie Project Launch Amiga games from Retropie menu

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

Tagged: 

This topic contains 27 replies, has 8 voices, and was last updated by Profile photo of vincedj vincedj 1 year ago.

Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #113030
    Profile photo of yorkie
    yorkie
    Participant

    Hi all,

    I’ve come up with a way of being able to launch amiga roms from the Emulation Station menu, rather than having to run the uae4arm GUI. A previous poster suggested modifying the “Start UAE4ARM.sh” script to accept zip files. I couldn’t get this to work though.

    Instead I have been using the command line options of uae4arm to pass a config file. I then have a quick-and-dirty script that will create a config file for each adf file in my directory

    – use the uae4arm GUI to create a template .uae config file. I based the config file on the A1200, as A500 should play on A1200 but not vice-versa. I also made sure that ‘use_gui=no’ was set. I then edited the file manually so the floppy0 location is set to the following

    floppy0=/home/pi/RetroPie/roms/amiga/DISK1

    – then run the following lines of code in the /home/pi/RetroPie/roms/amiga directory, which will create a new config file for each adf file (the name will be the same as the adf file, with .uae appended). The name of the adf file will replace where it says DISK1 in the template file.

    for adf in *.adf
    do
    config=”${adf}.uae”
    echo $config
    sed “s/DISK1/${adf}/g” template.uae > “${config}”
    done

    – Finally, change /opt/retropie/config/amiga/emulators.cfg to use the config parameter.

    uae4arm=”/opt/retropie/emulators/uae4arm/uae4arm -f %ROM%”

    and /etc/emulationstation/es_systems.cfg so that the uae files are recognised.

    <extension>.sh .SH .uae</extension>

    Single-disk games should now launch from Emulation Station. One downside of the script is that games with multiple floppies will get a separate config file for each floppy. You have to manually combine the different files into one.

    I also have problems switching to the uae4arm GUI when pressing CTRL during a game. An error message appears saying the data/FreeSans.ttf can not be found. I think this is because uae4arm expects to be running from the folder /opt/retropie/emulators/uae4arm, which does indeed have a ‘data’ sub-folder. I’ve tried copying the data folder to various sensible locations around the pi, but no luck so far.

    Anyways, thought I would report my approach in case it is of interest. I’m certainly finding it useful to be able to run games with just the joypad in the same way as other systems.

    Attachments:
    1. template.uae_.txt
    #113152
    Profile photo of tronkyfran
    tronkyfran
    Participant

    Great!!!! I’m looking forward to have some time and test it. I dont get the 2 or more disk system though, then Ill need a keyboard anyway¿?

    #113481
    Profile photo of yorkie
    yorkie
    Participant

    I’ve got a Python script that will do a better job for games with multiple floppies. It has to make some assumptions about the way in which the adf files are named.

    I’ll do some testing and post later.

    #113508
    Profile photo of yorkie
    yorkie
    Participant

    Update as promised;

    – Modify /etc/emulationstation/es_systems.cfg so that the uae files are recognised.

    <extension>.sh .SH .uae</extension>

    – change /opt/retropie/config/amiga/emulators.cfg to use the config parameter.

    uae4arm=”pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%”

    – Download the following two files and copy to your amiga roms folder (i.e. /home/pi/Retropie/roms/amiga)

    adflist2uae.py
    https://www.dropbox.com/s/6opn1gehvnjtvox/adflist2uae.py?dl=0

    template.uae
    https://www.dropbox.com/s/be230bhjq86he8l/template.uae?dl=0

    Now, from the command line run the Python script in the your roms folder

    python adflist2uae.py

    This script is used to create config files for each of the games in your folder. If a game has only one floppy (one adf file) it will be straightforward
    e.g.
    StuntCarRacer.adf writes a file called StuntCarRacer.uae, where the first floppy disk is set to StuntCarRacer.adf

    For games with multiple floppies, it will expect files in the form GameXXX (Disk 1 of Y).adf, GameXXX (Disk 2 of Y).adf etc

    So, if I’ve got

    Sensible Soccer (Disk 1 of 2).adf and Sensible Soccer (Disk 2 of 2).df I will get a config file called Sensible Soccer.uae

    You have to make sure that the adf files are named exactly the same, except for the floppy disk number.

    You should now be able to launch into the games from the Amiga menu in EmulationStation without the GUI. However if you have a keyboard handy, you can return to the menu by pressing CTRL if you need to change the configuration or save state etc.

    Unfortunately, I’m not quite sure how to quit the emulator without the keyboard, so maybe we can’t get away with using only the joypad just yet.

    #113587
    Profile photo of labelwhore
    labelwhore
    Participant

    I just got done running your script. (I haven’t tried the games just yet.) One of my games caused an error. “Indiana Jones and the Fate of Atlantis – The Graphic Adventure” has 11 disks, the number of which seemed to screw up the python script. I got rid of that game and moved on for now.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #113593
    Profile photo of sander
    sander
    Participant

    when i try to open a game, it goes back to the main screen…

    #113892
    Profile photo of labelwhore
    labelwhore
    Participant

    That happened to me too at first, your kick13.rom is most likely in the wrong place. Moving it to where the emulator needs it fixed the issue. (I think I actually ended up deleting a symlink and placing it in the folder where the symlink was. IDK where the correct location is, because I had one in the BIOS folder all along.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    #113911
    Profile photo of sander
    sander
    Participant

    i placed it in the bios folder.
    must i config something else?

    #113914
    Profile photo of labelwhore
    labelwhore
    Participant

    The trouble is, the emulator seems to be looking elsewhere for it. I’m not at home, so unfortunately I don’t have access to my pi to be able to say for sure where I put kick13.rom. If I remember correctly, I put it in the same folder as the emulator itself.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    #113927
    Profile photo of Floob
    Floob
    Moderator

    Yes, the BIOS directory is correct, make sure you have the filename case correct.
    Details here:
    https://github.com/retropie/retropie-setup/wiki/Amiga

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #113943
    Profile photo of labelwhore
    labelwhore
    Participant

    That’s what it says, but I had the same problem until I moved the file. I suspected the symlink was not pointing to the right place, but just deleted it and placed the file where the symlink used to be. That worked for me.

    I just started fresh on retropie 3.3 jessie. Previously, I hadn’t messed with Amiga much due to the funky way to launch roms. So I have no idea if prior versions worked out of the box or not.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    #113968
    Profile photo of yorkie
    yorkie
    Participant

    I just got done running your script. (I haven’t tried the games just yet.) One of my games caused an error. “Indiana Jones and the Fate of Atlantis – The Graphic Adventure” has 11 disks, the number of which seemed to screw up the python script. I got rid of that game and moved on for now.

    Yeah, sorry about that. I didn’t test on games with that many disks. It doesn’t do a very clever job of working how many disks a game has. Glad to hear it mostly working ok though.

    The trouble is, the emulator seems to be looking elsewhere for it. I’m not at home, so unfortunately I don’t have access to my pi to be able to say for sure where I put kick13.rom. If I remember correctly, I put it in the same folder as the emulator itself.

    The ROM path in the template file is

    kickstart_rom_file=/home/pi/RetroPie/roms/amiga/KICK31.ROM

    So, this is probably where it expects to find the file.

    If you wish to use a different rom, for the time being you’ll have to edit the file template.uae. At some point soon I’ll change to script so that you can specify the ROM and also chipset.

    #113988
    Profile photo of labelwhore
    labelwhore
    Participant

    /home/pi/RetroPie/roms/amiga/KICK31.ROM

    Oops! Now that you say this, I remember why I did what I did with the kick roms. I replaced the symlinks with the rom files because I wanted to keep the rom folder ‘clean’.

    Sorry for the misdirection.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #114087
    Profile photo of sander
    sander
    Participant

    when i start a game the i must choose a default emulator for it.
    i can only choose for aue4arm.
    then i wil get to the main menu and i can select a game but i goes straight back to the main menu.
    i put all the rom files in de roms/amiga dir.

    the configfile emulators is chenged to this:

    uae4arm=”pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%”default="uae4arm"
    default="uae4arm"
    
    • This reply was modified 1 year, 3 months ago by Profile photo of sander sander.
    • This reply was modified 1 year, 3 months ago by Profile photo of sander sander.
    #114098
    Profile photo of dustloop
    dustloop
    Participant

    I need to set this up and try it when I get home.

    To practically consolize the Amiga in Emulationstation is an amazing thing!

    Thank you for all your hard work doing this 😀

    #114265
    Profile photo of labelwhore
    labelwhore
    Participant

    I just popped in here to say thanks once again for this. It works with everything I’ve thrown at it so far.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #114282
    Profile photo of sander
    sander
    Participant

    how did you get it working, mine just pops back to the main menu.

    #114291
    Profile photo of labelwhore
    labelwhore
    Participant

    Take a look in the template for the kick rom location, then place the kick file where it’s expected.

    That’s the only thing I did that’s not part of the instructions.

    If it turns out that the KICK31.ROM is in the right place (and named correctly, it’s case sensitive) and it’s still not working, it’s possible that the game you’re trying to launch needs a different kick rom. While everything I have tried so far works with KICK31.ROM, I haven’t tested everything. You may want to try manually editing the .uae file to point to a different kick rom and see what happens.

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    #114418
    Profile photo of sander
    sander
    Participant

    I’ve changed everything the way i should, then when i open the rom (swos.uea) i get a screen where i must choose the default emulator:
    there is one option: aea4arm when i select this option i get once more the screen where i must select the default emulator. the it will jump back to the mainscreen of emulationstation.

    when i look at my amiga config file it looks like this:uae4arm=”pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%”default=”uae4arm”
    default=”uae4arm”

    • This reply was modified 1 year, 3 months ago by Profile photo of sander sander.
    #114423
    Profile photo of labelwhore
    labelwhore
    Participant

    that’s actually makes a lot of sense. You need to be using UAE4ALL for this to work. It can be installed from the retropie_setup script.

    nvm, I got mixed up

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    • This reply was modified 1 year, 3 months ago by Profile photo of labelwhore labelwhore.
    #114430
    Profile photo of labelwhore
    labelwhore
    Participant

    I see an extra default=”uae4arm” in there. Assuming aue4all isn’t installed that file should look like this:

    uae4arm=”pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%”
    default=”uae4arm”

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #114483
    Profile photo of sander
    sander
    Participant

    when i change that i get a screen where i must choose the default emulator again:
    there is one option: aea4arm

    the same problem remains. i’ve used a clean install

    #114516
    Profile photo of labelwhore
    labelwhore
    Participant

    Well, at least that file is correct now. That choose emulator screen is ok, you should just be able to select the default option for the emulator, uae4arm, then select launch. The next time around the game should just launch using that emulator, unless you change it by hitting a button.

    Is there anything in tmp/runcommand.log?

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #115261
    Profile photo of sander
    sander
    Participant

    Nope the file is empty, the games still won’t boot up, when i klick on a game i go straight to the Uae4arm setup when i fill all the paths correctly it wil start the game.
    No luck for me….
    i added my config file and game file.

    • This reply was modified 1 year, 3 months ago by Profile photo of sander sander.
    • This reply was modified 1 year, 3 months ago by Profile photo of sander sander.
    #115297
    Profile photo of labelwhore
    labelwhore
    Participant

    Something that fouled me up recently when creating a new emulators.cfg file for another emulator was that I created the file on my windows machine. I used textpad to create it. When I saved the file, I forgot to save it as a UNIX file. What that did was add a hidden carriage return at the end of the first line in the file. THat carriage return caused the emulator to not start. Maybe there’s something like that going on. Try opening the file with textpad then re-saving it as a UNIX based file, if you previously edited it in windows.

    https://www.textpad.com/

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    #115337
    Profile photo of yorkie
    yorkie
    Participant

    The config file looks Ok to me. In your emulators.cfg file, you have an extra default=”uae4arm” at the end of the first line

    uae4arm="pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%"default="uae4arm"
    default="uae4arm"
    

    but it should be

    uae4arm="pushd /opt/retropie/emulators/uae4arm/; ./uae4arm -f %ROM%"
    default="uae4arm"
    
    • This reply was modified 1 year, 3 months ago by Profile photo of yorkie yorkie.
    #121897
    Profile photo of marclandis
    marclandis
    Participant

    I used the python script by yorkie but changed the following files:

    /opt/retropie/config/amiga/emulators.cfg

    uae4all="/home/pi/RetroPie/roms/amiga/+Start\ UAE4All.sh"
    default="uae4arm"
    uae4arm="/home/pi/RetroPie/roms/amiga/+Start\ UAE4Arm.sh %ROM%"

    /etc/emulationstation/es_systems.cfg

    <extension>.sh .SH .uae</extension>

    /home/pi/RetroPie/roms/amiga/+Start UAE4Arm.sh

    #!/bin/bash
    game="$1"
    pushd "/opt/retropie/emulators/uae4arm"
    if [[ -z "${game}" ]]; then
    ./uae4arm
    else
    ./uae4arm -f "${game}"
    fi
    popd

    This allows to start the games directly or start the gui if needed.

    • This reply was modified 1 year, 1 month ago by Profile photo of marclandis marclandis.
    #122271
    Profile photo of vincedj
    vincedj
    Participant

    great yorkie, your script is fantastic and work but I have a question: is there a way to skip without mouse the initial menù of the game that have unlimited live or a pirated menù ?

    which setting of joystick use ? use the default of retropie ?

    • This reply was modified 1 year ago by Profile photo of vincedj vincedj.
Viewing 28 posts - 1 through 28 (of 28 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar