RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Development of module-script generator for lr-mess, lr-mame and mame standalone

    Scheduled Pinned Locked Moved Ideas and Development
    developmentlr-messmamelr-mamescripts
    2.3k Posts 37 Posters 7.8m 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.
    • FollyF
      Folly @DTEAM
      last edited by

      @dteam said in Development of module-script generator for lr-mess and mame standalone:

      @folly said in Development of module-script generator for lr-mess and mame standalone:

      Btw. did you test all those games ?
      I have trouble with finding the right keys on how to play them.
      The one you posted worked though, just shooting with "enter".

      I can only run "Rocket Patrol". For the controller, it works for me with controller # 2 (left controller) and an analog stick. I have some trouble to shoot with the fire button.

      I can't get the cartridges to work ... any idea?

      You are able to boot them but you struggle too with the keys or joystick buttons ?

      spacedst.zip doesn't load for me though.
      All the others work.

      I will have a look at it too.
      I have played some with some strange keys.
      I will let you know.

      DTEAMD 1 Reply Last reply Reply Quote 0
      • jamrom2J
        jamrom2 @Folly
        last edited by

        @folly That would be fine as well... limiting the amount of input helps users that want the experience, but can't remember what to type, or even worse is that they have never seen the system, so don't know what to do.

        I personally add in the commands to my game description in gamelist so that I see it when I want to play the game. I did this with the Dragon 32 system and it works good for me.

        But again.. you and I are above the average user, so we kinda know our way around the file system. Having a user just type in "PLAY" is a lot simpler for them.

        FollyF 2 Replies Last reply Reply Quote 0
        • FollyF
          Folly @jamrom2
          last edited by Folly

          @jamrom2

          Yes I agree.

          We can do some tests with some commands manually before adding it to the script, agreed ?
          The we can see if we can come up with a nice solution.

          This link is in my first post :
          https://forums.launchbox-app.com/topic/54987-autoboot-command-script-for-mame-swl-computer-systems/

          For some systems we can try it.

          Could be as simple as adding something like this -autoboot_delay 4 -autoboot_command cload\n

          Edit :
          emulating key presses seems not implemented so when I press Return first it will type CLOAD. The /n option doesn't work for this system.

          It seems the best way of making everything work is to make a mame autoboot.lua script that is loaded on boot. That whay we also should be able to press the tape on play automatically.
          (well we have to dig deeper to understand that)

          1 Reply Last reply Reply Quote 0
          • DTEAMD
            DTEAM @Folly
            last edited by

            @folly said in Development of module-script generator for lr-mess and mame standalone:

            You are able to boot them but you struggle too with the keys or joystick buttons ?

            They don't start either. Which line do you use when you select your emulator line from the blue menu? I am always on "Rocket Patrol" no matter what the game is.

            FollyF 1 Reply Last reply Reply Quote 0
            • FollyF
              Folly @DTEAM
              last edited by

              @dteam said in Development of module-script generator for lr-mess and mame standalone:

              @folly said in Development of module-script generator for lr-mess and mame standalone:

              You are able to boot them but you struggle too with the keys or joystick buttons ?

              They don't start either. Which line do you use when you select your emulator line from the blue menu? I am always on "Rocket Patrol" no matter what the game is.

              We talk about apfm1000, right.
              I use this :
              default = "mame-system-apfm1000-cart"

              DTEAMD 1 Reply Last reply Reply Quote 1
              • DTEAMD
                DTEAM @Folly
                last edited by DTEAM

                @folly said in Development of module-script generator for lr-mess and mame standalone:

                We talk about apfm1000, right.

                Yes, I'll do more test today

                FollyF 1 Reply Last reply Reply Quote 0
                • FollyF
                  Folly @DTEAM
                  last edited by

                  @dteam

                  Do you want my sha1sums ?

                  DTEAMD 1 Reply Last reply Reply Quote 0
                  • DTEAMD
                    DTEAM @Folly
                    last edited by DTEAM

                    @folly
                    Yes please (sorry double messages)

                    1 Reply Last reply Reply Quote 0
                    • DTEAMD
                      DTEAM
                      last edited by DTEAM

                      @folly
                      Yes, please. I don't know what's wrong for that emulator.

                      FollyF 2 Replies Last reply Reply Quote 0
                      • FollyF
                        Folly @DTEAM
                        last edited by Folly

                        @dteam

                        pi@raspberrypi:~/RetroPie/roms/apfm1000 $ sha1sum *
                        9579e760c4532295a07b0ef0f849bbcddddc39c2  backgamm.zip
                        6fae423ac7af3bd59d2897ecbb9508c6737e41ee  baseball.zip
                        865317d042f5848f33dd57b7de2d2326cf625565  blckjack.zip
                        859ff072135fe9e5bc325cf3c5a2b39e75d7c774  bowling.zip
                        a7615a2eada80cdfc1446a14b06bebc39cafaf29  boxing.zip
                        4119cb1589d68efd560936080f12475b57337b33  brickdwn.zip
                        c72e7ffafb3818a2dd6b46d4f95ea7c5b497f64b  casino.zip
                        0a025850f57cba6ef2df9af6512d169233795a81  catena.zip
                        7aee1189144e53393ddb4e4bc6ea73cb95c941af  catenaa.zip
                        497387a7410e86e7cf6711a37192ff2d24e4e53e  hangman.zip
                        7e1ec8f8e1ff78e6ee730ae9f27e05eebea34979  pinball.zip
                        da39a3ee5e6b4b0d3255bfef95601890afd80709  rocketp.zip
                        c1dd72fb8853c08ffacea77226c656439c0c5674  spacedst.zip
                        b6f287ee37e6016d9910afcf664476e14023423b  ufo.zip
                        
                        jamrom2J 1 Reply Last reply Reply Quote 0
                        • jamrom2J
                          jamrom2 @Folly
                          last edited by

                          @folly said in Development of module-script generator for lr-mess and mame standalone:

                          9579e760c4532295a07b0ef0f849bbcddddc39c2 backgamm.zip

                          I'm up and running with just the pack-in game Rocket Patrol. I did like you did, just made a dummy .zip file. All good.

                          Just can't seem to locate the rest of them. .236?

                          FollyF 1 Reply Last reply Reply Quote 0
                          • FollyF
                            Folly @jamrom2
                            last edited by Folly

                            @jamrom2

                            Something to read :
                            https://docs.mamedev.org/techspecs/luaengine.html

                            Here is the reference manual of lua 5.3 :
                            http://www.lua.org/manual/5.3/

                            1 Reply Last reply Reply Quote 0
                            • FollyF
                              Folly @jamrom2
                              last edited by Folly

                              @jamrom2 said in Development of module-script generator for lr-mess and mame standalone:

                              @folly said in Development of module-script generator for lr-mess and mame standalone:

                              9579e760c4532295a07b0ef0f849bbcddddc39c2 backgamm.zip

                              I'm up and running with just the pack-in game Rocket Patrol. I did like you did, just made a dummy .zip file. All good.

                              Just can't seem to locate the rest of them. .236?

                              I think they are in mame_sl, if you understand what I mean.

                              Fix, get the apfimag_cass.zip, it's in : mame-sl

                              DTEAMD jamrom2J 2 Replies Last reply Reply Quote 0
                              • DTEAMD
                                DTEAM @Folly
                                last edited by

                                @folly

                                I found this today
                                MESS and MAME: The Guide

                                FollyF 1 Reply Last reply Reply Quote 0
                                • FollyF
                                  Folly @DTEAM
                                  last edited by Folly

                                  @dteam

                                  I have spacedst.zip running with the new test method.
                                  In the hash table it describes that this cart has extra ram on board.
                                  Using the new test method it runs the file using the softlist and adds the ram extension automatically.
                                  Bios file apfm1000.zip has to be added in /home/pi/RetroPie/roms/apfm1000 for now.
                                  I hope we can come up with a nice fix for this problem.

                                  It runs by using this line in /opt/retropie/configs/apfm1000/emulators.cfg :
                                  mame-driver-rompath-basename = "/opt/retropie/emulators/mame/mame apfm1000 -rompath /home/pi/RetroPie/roms/apfm1000 -v -c %BASENAME%"

                                  2021-10-08-190310_800x600_scrot.png

                                  Keyboard keys to play :
                                  LEFT RIGHT KPAD_ENTER

                                  DTEAMD 1 Reply Last reply Reply Quote 0
                                  • DTEAMD
                                    DTEAM @Folly
                                    last edited by

                                    @folly said in Development of module-script generator for lr-mess and mame standalone:

                                    mame-driver-rompath-basename = "/opt/retropie/emulators/mame/mame apple2gsr1 -rompath /home/pi/RetroPie/roms/apple2gsr1 -v -c %BASENAME%"

                                    Why apple2gsr1 in the line

                                    FollyF 1 Reply Last reply Reply Quote 0
                                    • FollyF
                                      Folly @DTEAM
                                      last edited by Folly

                                      @dteam

                                      Oops a mistake ;-), fixet it ! (updated)
                                      This is because I also did tests with that line on apple2gsr1 just picked the wrong one.

                                      DTEAMD 1 Reply Last reply Reply Quote 0
                                      • FollyF
                                        Folly @DTEAM
                                        last edited by

                                        @dteam said in Development of module-script generator for lr-mess and mame standalone:

                                        @folly

                                        I found this today
                                        MESS and MAME: The Guide

                                        I will read some, perhaps some interesting stuff to find.

                                        1 Reply Last reply Reply Quote 0
                                        • DTEAMD
                                          DTEAM @Folly
                                          last edited by

                                          @folly

                                          Strange, those lines work with .bin and not .zip

                                          mame-system-apfm1000-cart-autoframeskip = "/opt/retropie/emulators/mame/mame -rompath /home/pi/RetroPie/roms/apfm1000 -v -c -autoframeskip -ui_active apfm1000  -cart %ROM%"
                                          mame-system-apfm1000-cart = "/opt/retropie/emulators/mame/mame -rompath /home/pi/RetroPie/roms/apfm1000 -v -c -ui_active apfm1000 -cart %ROM%"
                                          
                                          FollyF 1 Reply Last reply Reply Quote 0
                                          • FollyF
                                            Folly @DTEAM
                                            last edited by Folly

                                            @dteam

                                            I will try here in ES.
                                            But I think both work on my side.

                                            Edit:
                                            .zip works for me.

                                            DTEAMD jamrom2J 2 Replies 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.