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

    Dragon's Lair from Daphne Download, what to do when no lair.zip file

    Scheduled Pinned Locked Moved Help and Support
    daphnedragons lair
    37 Posts 3 Posters 33.4k 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.
    • J
      jimd0586
      last edited by

      @Finhead
      You're a stud. You should be the one making the youtube video

      RiverstormR 1 Reply Last reply Reply Quote 0
      • RiverstormR
        Riverstorm @jimd0586
        last edited by

        @jimd0586 said in Dragon's Lair from Daphne Download, what to do when no lair.zip file:

        @Finhead
        You're a stud. You should be the one making the youtube video

        I'll second that! ;)

        1 Reply Last reply Reply Quote 0
        • J
          jimd0586
          last edited by

          In general with emulation I have found that sometimes things need tweaking here and there. Sometimes what is written down isn't entirely clear or it needs clarification. Sometimes simple video walkthroughs are just what's needed. @Floob 's videos helped explain a ton to me.

          RiverstormR 1 Reply Last reply Reply Quote 0
          • RiverstormR
            Riverstorm @jimd0586
            last edited by

            @jimd0586 said in Dragon's Lair from Daphne Download, what to do when no lair.zip file:

            @Floob 's videos helped explain a ton to me.

            I'll second that. @Floob is a Retropie video star! ;)

            @Finhead

            I make movie props and costumes for a living, autobody before that so about as far from tech as you can get. ;) lol

            I don't know but that sounds pretty cool and fun Fin!

            1 Reply Last reply Reply Quote 0
            • J
              jimd0586
              last edited by

              @Finhead

              So I made the .command file and ran jstest. I am trying to understand the daphne wiki here...

              "# The third number is the joystick button code (or 0 for "none")

              Since 0 is reserved for special meaning, joystick button 0 is identified

              as 1 here. Button 1 is identified as 2, and so on.

              Find the button you want to map by running:

              jstest /dev/input/js0"

              So it's that third number on each line I want to change in the config file, since I am using a joystick and button layout? I ran jstest and the button I want for sword is button "5". I made that attack 1 or what have you as the third number on that line. However, it doesn't seem to be doing it... nor did changing the insert coin and start button... they are backwards on my machine. I figured reversing them would do the trick however they seem to still be unchanged.

              This is why I am horrible with emulation. Instructions often don't seem to work out for me.

              FinheadF 1 Reply Last reply Reply Quote 0
              • FinheadF
                Finhead @jimd0586
                last edited by

                @jimd0586
                What controller are you using and have you set it up correctly in retropie? Driver installed etc?

                As stated in the .ini file you add 1 to whatever your jstest shows. So if your button you want as a Sword button is a "5" on the jstest make that into a "6" and type that number into
                KEY_BUTTON1 = 306 97 6 <--- that's the number you put into that line for the sword.

                1 Reply Last reply Reply Quote 0
                • J
                  jimd0586
                  last edited by

                  Ok yeah. It works in retropie and with the other emulators. I will experiment a bit more. It may also be VERY poor timing on my part. Though the joystick is not a button but an "axis" in my jstest

                  FinheadF 1 Reply Last reply Reply Quote 0
                  • FinheadF
                    Finhead @jimd0586
                    last edited by

                    @jimd0586 said in Dragon's Lair from Daphne Download, what to do when no lair.zip file:

                    Though the joystick is not a button but an "axis" in my jstest

                    Not sure what you mean by axis? What controller are you using? Are you not assigning the button1 to a acutal button?

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimd0586
                      last edited by

                      @Finhead

                      I would upload a screenshot of my jstest but I have been unable to upload screenshots. When I run jstest it has the on:off for each button, but for my joystick it is an axes: and then either a positive or - negative number

                      FinheadF RiverstormR 2 Replies Last reply Reply Quote 0
                      • FinheadF
                        Finhead @jimd0586
                        last edited by

                        @jimd0586 said in Dragon's Lair from Daphne Download, what to do when no lair.zip file:

                        @Finhead

                        I would upload a screenshot of my jstest but I have been unable to upload screenshots. When I run jstest it has the on:off for each button, but for my joystick it is an axes: and then either a positive or - negative number

                        Your joystick should be automatically mapped, the only thing you "should" have to do is map the buttons. So you should only be looking at the button test and add 1 to the numbers that would map to the button you want to use.

                        1 Reply Last reply Reply Quote 1
                        • RiverstormR
                          Riverstorm @jimd0586
                          last edited by Riverstorm

                          @jimd0586 said in Dragon's Lair from Daphne Download, what to do when no lair.zip file:

                          @Finhead

                          I would upload a screenshot of my jstest but I have been unable to upload screenshots. When I run jstest it has the on:off for each button, but for my joystick it is an axes: and then either a positive or - negative number

                          @jimd0586 Don't over think it. Don't worry about the axis values, they are for the joysticks and not the buttons (except Left Top and Right Top are axis values).

                          It's not really difficult at all. Below is the default dainput.ini. I didn't do much with KEY_UP, KEY_DOWN, KEY_LEFT and KEY_RIGHT except remove the values 5, 7, 8, 6 (if you want to use those buttons for another function). The joystick automatically worked I only had to modify the buttons.

                          Say you want to change action button 1 (KEY_BUTTON1 is the sword in Dragon's Lair). Just run jstest, press a button. If it highlights button 3 then add 1 to the number (3+1=4). 3 is the button and the +1 is because button 0 is reserved so you need to add 1. Every button is the value+1 and 0 is never used. Each line has 3 numbers (the first 2 are keyboard inputs and the last one is for the joystick). Now just find the line below you want to modify (names are self explanatory if not the Wiki explains them) and change the last number which is 14 to the new number which is 4 and that's it. Do this for each button you want to change. Example below.

                          Original line:
                          KEY_BUTTON1 = 306 97 14

                          New line:
                          KEY_BUTTON1 = 306 97 4

                          # Daphne custom keyboard and joystick mapping
                          #
                          # Each input is mapped to 2 keyboard keys and one joystick button.
                          # A joystick's first analog stick is also automatically mapped.
                          #
                          # The first two numbers are SDL keyboard codes (or 0 for "none")
                          # Find keyboard codes here:
                          # http://www.daphne-emu.com/mediawiki/index.php/KeyList
                          #
                          # The third number is the joystick button code (or 0 for "none")
                          # Since 0 is reserved for special meaning, joystick button 0 is identified
                          # as 1 here.  Button 1 is identified as 2, and so on.
                          # 
                          # Find the button you want to map by running:
                          # jstest /dev/input/js0
                          
                          [KEYBOARD]
                          KEY_UP = 273 114 5
                          KEY_DOWN = 274 102 7
                          KEY_LEFT = 276 100 8
                          KEY_RIGHT = 275 103 6
                          KEY_BUTTON1 = 306 97 14
                          KEY_BUTTON2 = 308 115 15
                          KEY_BUTTON3 = 32 113 16
                          KEY_START1 = 49 0 4
                          KEY_START2 = 50 0 0
                          KEY_COIN1 = 53 0 1
                          KEY_COIN2 = 54 0 0
                          KEY_SKILL1 = 304 119 0
                          KEY_SKILL2 = 122 105 0
                          KEY_SKILL3 = 120 107 0
                          KEY_SERVICE = 57 0 0
                          KEY_TEST = 283 0 0
                          KEY_RESET = 284 0 0
                          KEY_SCREENSHOT = 293 0 0
                          KEY_QUIT = 27 113 17
                          END
                          
                          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.