RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    amiberry .whd files not working + renaming .lha files

    Scheduled Pinned Locked Moved Help and Support
    amiberrywhdloadhelp
    9 Posts 4 Posters 1.8k 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.
    • M
      MadHorse
      last edited by

      Hi,

      I'm using Retropie 4.4.2 with amiberry 2.21+whdload autoboot on a Raspberry Pi 3 b+.
      All the Amiga roms are .lha files.
      Most of the games are working out of the box without a problem, but for some of them i would like to customize the configuration, for example cannon fodder CD32 i would like to configure the joystick as CD32 Joystick.
      If i change the configuration in the whdload_db.xml it's working fine

      	<game filename="CannonFodder_v1.2_CD32"  sha1="13c2869844bf78d25426f78feee0961b32eedce3">
      		<name>Cannon Fodder [CD32]</name>
      		<slave_count>1</slave_count>
      		<slave_default>CannonFodderCD32.Slave</slave_default>
      		<hardware>
      PRIMARY_CONTROL=MOUSE
      PORT0=MOUSE
      PORT1=CD32
      SCREEN_HEIGHT=240
      SCREEN_Y_OFFSET=0
      		</hardware>
      		<custom_controls>
      
      		</custom_controls>
      	</game>
      

      but as it says in the F.A.Q. it's better to not modify this file because may be overwritten in future updates and to use a .whd file instead so i've created the file CannonFodder_v1.2_CD32.whdin the same folder of the CannonFodder_v1.2_CD32.lha file.
      The content of the .whd contains only one line

      PORT1=CD32
      

      but when i start the game the joystick is configured as joystick, not as CD32.
      Do someone know if i need to insert more informations inside the whd file to make it work ?

      Another questions, i try to play Banshee CD32 game, if the rom name is Banshee_v3.3_CD32.lha the game is working properly, but if i rename it to Banshee (CD32).lha the game is not working anymore, it stays on a black screen forever.
      I see that the amiberry configuration is different, with the first name amiberry is set as an Amiga1200 AGA configuration, while with the second name amiberry is set as an Amiga600 Full ECS.
      Do you know why is acting like this ?

      Thank you very much if anyone could be of help.

      D 1 Reply Last reply Reply Quote 0
      • D
        dudleydes @MadHorse
        last edited by

        @madhorse Regards Cannon Fodder, I would check the contents of the hostprefs.conf file that you can find in /opt/retropie/configs/amiga/amiberry/whdboot/ with the Amiberry github version.

        I found that I needed to swap the values for CONTROLLER_MOUSE_1 and CONTROLLER_MOUSE_2 to get the analog stick on my PS3 controller working as a mouse in Cannon Fodder. If this doesn't work, then this post may be useful.

        Why do you want to change the name of rom? If you want to change how the game name is presented in EmulationStation, then scraping would be a better solution.

        1 Reply Last reply Reply Quote 0
        • M
          MadHorse
          last edited by

          @dudleydes

          Thank you for your help, i don't know why but i thought that if i put CONTROLLER_MOUSE_1=joy1, my joystick will be recognized always as a mouse.
          That did the trick and i think now every game will work as expected.

          But... I would like to know why the .whd file is not working, could you also give me some help about this ?

          About the roms renaming, i know about the scraping and I'm using it, but when I use the Attract Mode the interface shows the rom filename, if i rename it i will have a good name for both EmulationStation and for Attract Mode.

          Thank you again for your help.

          D 1 Reply Last reply Reply Quote 0
          • D
            dudleydes @MadHorse
            last edited by

            @madhorse Regards the .whd file, it needs to be in the same folder as the whdload_db.xml file, i.e. /opt/retropie/configs/amiga/amiberry/whdboot/game-data/.

            I have never used Attract Mode so I'm afraid I can't help you there.

            1 Reply Last reply Reply Quote 0
            • M
              MadHorse
              last edited by

              @dudleydes
              Man you are the number one, I was struggling for days because i put the .whd file in the same folder of the .lha file.
              You are great, you save my day.

              Thank you so much for your help.

              D 1 Reply Last reply Reply Quote 0
              • D
                dudleydes @MadHorse
                last edited by

                @madhorse Yes, I had trouble with this too, my intuition also telling me to place the .whd file in the rom folder.

                I have added a comment at the Amiberry Wiki page as it wasn't explicit where the .whd file should be placed.

                1 Reply Last reply Reply Quote 0
                • M
                  MadHorse
                  last edited by

                  @dudleydes, very good, i think i'm not the only one that had this problem.

                  Thank you again.

                  1 Reply Last reply Reply Quote 0
                  • M
                    moonston333
                    last edited by

                    in response to re naming the rar files.

                    all my amiga game are in lha zip format with version and numbers after each game like this

                    4DSportsDriving&MasterTracks_v1.0_1461.lha

                    5thGear_v1.0_1001.lha

                    now ive got around 2500 of these games with these numbers after them
                    is there a way to batch remove the numbers so that it says

                    4DSportsDriving&MasterTracks.lha

                    5thGear.lha

                    also when i click on the zip file the names are perfect with no numbers

                    just need a quick way of getting rid of the number instead of doing manually.

                    also if i do remove the numbers will the games still work

                    thanks

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

                      I have always used 'File Rename Turbo' by Kristanix Software.
                      It allows you to rename most of your files in batch mode easily.
                      Hope it helps!

                      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.