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

    ScummVM Controlller Issues

    Scheduled Pinned Locked Moved Help and Support
    scummvm
    168 Posts 3 Posters 25.9k 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.
    • E
      escc1986
      last edited by escc1986

      unfortunately

      same as before

      dpad didnt work

      L = space

      R= f2

      Anything Else we could try

      1 Reply Last reply Reply Quote 0
      • E
        escc1986
        last edited by

        @ExarKunIv said in ScummVM Controlller Issues:

        +start scummvm.sh

        #!/bin/bash
        
        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &
        
        game="$1"
        pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null
        /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game
        while read id desc; do
            echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm"
        done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3)
        popd >/dev/null
        
        

        this is my +Start ScummVM.sh

        1 Reply Last reply Reply Quote 0
        • E
          escc1986
          last edited by

          i tried this method many times , no luck

          i hope im doing it right

          1 Reply Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @escc1986
            last edited by

            @escc1986
            you put scumm.cfg in the xdrive folder
            and you +Start ScummVM.sh looks good leave it

            Remove everything that you don,t have a key assigned to for both the keymap and buttonmap

            i will try you config tomroow when im at work, thats where my system is at. and ill let you know what i find out

            [evdev-keymap]
            KEY_#304=a
            KEY_#305=b
            KEY_#307=x
            KEY_#308=y
            =lb
            =lt
            =rb
            =rt
            KEY_#312=back
            KEY_#313=start
            KEY_#310=tl
            KEY_#311=tr
            
            [ui-axismap]
            x1=KEY_LEFT:KEY_RIGHT
            y1=KEY_DOWN:KEY_UP
            dpad_x=REL_X:10
            dpad_y=REL_Y:10
            
            [ui-buttonmap]
            a=BTN_LEFT
            b=BTN_RIGHT
            x=KEY_ENTER
            y=
            lb=
            lt=
            rb=
            rt=
            back=KEY_F5
            start=KEY_ESC
            tr=
            tl=
            

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            1 Reply Last reply Reply Quote 0
            • E
              escc1986
              last edited by

              alright , no problem

              still hasnt worked for me

              thank you for trying to help me

              i'll talk to you tommrow

              ExarKunIvE 1 Reply Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv @escc1986
                last edited by ExarKunIv

                @escc1986

                all i did was remove the empty buttons
                this is what i ended up with

                this is the scumm.cfg. that is in the config/all/xdrive folder

                [xboxdrv]
                silent=true
                deadzone=4000
                deadzone-trigger=15%
                dpad-as-button=false
                trigger-as-button=true
                detach-kernel-driver=true
                #force-feedback=true
                mimic-xpad=true
                
                [evdev-absmap]
                ABS_X=x1
                ABS_Y=y1
                ABS_Z=x2
                ABS_RZ=y2
                ABS_HAT0X=dpad_x
                ABS_HAT0Y=dpad_y
                
                [evdev-keymap]
                KEY_#304=a
                KEY_#305=b
                KEY_#307=x
                KEY_#308=y
                KEY_#312=back
                KEY_#313=start
                KEY_#310=tl
                KEY_#311=tr
                
                [ui-axismap]
                x1=KEY_LEFT:KEY_RIGHT
                y1=KEY_DOWN:KEY_UP
                dpad_x=REL_X:10
                dpad_y=REL_Y:10
                
                [ui-buttonmap]
                a=BTN_LEFT
                b=BTN_RIGHT
                x=KEY_ENTER
                back=KEY_F5
                start=KEY_ESC
                
                # EOF #
                

                and it works for me.

                so as long as you have your +Start ScummVM.sh looking like this that is in the roms/scummvm folder

                #!/bin/bash
                
                sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &
                
                game="$1"
                pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null
                /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game
                while read id desc; do
                    echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm"
                done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3)
                popd >/dev/null
                

                and the button maps named as scumm.cfg and saved in configs/all//xdrive

                everything should work fine. other then that i dont know.

                when you start a game run
                cat /proc/bus/input/devices
                you should have your controller and then a new one called Microsoft X-Box 360 pad then you know the file is starting.
                if not then it is not seeing something.

                we'll go from there

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                1 Reply Last reply Reply Quote 0
                • E
                  escc1986
                  last edited by escc1986

                  Hi , Good Morning

                  so i revised the changes ...

                  changed everything how it should be

                  i reboot

                  now i enter the game in scumm and it doesnt run

                  it doesnt start , any idea ?

                  (wait i belive i made a mistake , when you mentioned the scumm.sh file , where is that file located ?)

                  ExarKunIvE 1 Reply Last reply Reply Quote 0
                  • ExarKunIvE
                    ExarKunIv @escc1986
                    last edited by

                    @escc1986

                    it should be in the config/all/xdrive folder.

                    (now you can have it where ever you want in the all folder. you will just have to tell the start-scumm.sh where to look

                    RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                    RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                    Maintainer of RetroPie-Extra .

                    1 Reply Last reply Reply Quote 0
                    • E
                      escc1986
                      last edited by

                      im sorry i edited the wrong scumm file

                      would you be so kind to send me a copy of the +Start ScummVM.sh file

                      im sorry for the mistake

                      1 Reply Last reply Reply Quote 0
                      • E
                        escc1986
                        last edited by escc1986

                        i may have not understood ,

                        so in my xdrive folder

                        /opt/retropie/configs/all/xdrive

                        the 2 files i should have are

                        scumm.sh

                        scumm.cfg

                        ( i only have a scumm.cfg)

                        i will make a scumm.sh wilth you content you provided , i applogize)

                        hope you abel to send me a copy of +Start ScummVM.sh (i messed mine up)

                        ExarKunIvE 1 Reply Last reply Reply Quote 0
                        • ExarKunIvE
                          ExarKunIv @escc1986
                          last edited by ExarKunIv

                          @escc1986

                          no just the .cfg file

                          this will be the +start scummvm.sh that is in the rom/scummvm folder

                          #!/bin/bash
                          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &
                          
                          game="$1"
                          pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null
                          /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game
                          while read id desc; do
                              echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm"
                          done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3)
                          popd >/dev/null
                          

                          sorry dont worry about the scumm.sh. thats wrong. i miss typed

                          ill edit the about folder to make it easy to under stand

                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                          Maintainer of RetroPie-Extra .

                          1 Reply Last reply Reply Quote 0
                          • ExarKunIvE
                            ExarKunIv
                            last edited by

                            ok i edit the one that i first posted today hope its easyer to understand

                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                            Maintainer of RetroPie-Extra .

                            1 Reply Last reply Reply Quote 0
                            • E
                              escc1986
                              last edited by escc1986

                              im sorry for the re-route but my scumm isnt working with the +Start ScummVM.sh you provided

                              i do aplogize for the mess up

                              1 Reply Last reply Reply Quote 0
                              • E
                                escc1986
                                last edited by escc1986

                                (Sorry for Any Confusion) i originally changed the +Start ScummVM.sh to

                                #!/bin/bash
                                
                                sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &
                                
                                game="$1"
                                pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null
                                /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game
                                while read id desc; do
                                    echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm"
                                done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3)
                                popd >/dev/null
                                
                                

                                and my games stoped working

                                ExarKunIvE 1 Reply Last reply Reply Quote 0
                                • ExarKunIvE
                                  ExarKunIv @escc1986
                                  last edited by

                                  @escc1986

                                  no clue.
                                  i just copyed what you posted into mine and it works fine
                                  your +Start ScummVM.sh is in the roms folder
                                  right?

                                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                  Maintainer of RetroPie-Extra .

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    escc1986
                                    last edited by

                                    interesting .... yeah no clue either ... yes +Start ScummVM.sh

                                    well im stumped , im just uninstalling and reinstalling ... i will come back when it reinstalls

                                    ExarKunIvE 1 Reply Last reply Reply Quote 0
                                    • ExarKunIvE
                                      ExarKunIv @escc1986
                                      last edited by

                                      @escc1986

                                      remove this line from the +Start ScummVM.sh

                                      sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &

                                      before you uninstall, but if you did dont worry about it. get the game to launch again

                                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                      Maintainer of RetroPie-Extra .

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        escc1986
                                        last edited by escc1986

                                        that took along time , sorry about that

                                        just installed

                                        rebooted

                                        scumm games work now

                                        what would be the first thing you want me to try

                                        (Just made a back up , just incase we have the same probmem with +Start ScummVM.sh)

                                        just updated the .config in xdrive folder

                                        [xboxdrv]
                                        silent=true
                                        deadzone=4000
                                        deadzone-trigger=15%
                                        dpad-as-button=false
                                        trigger-as-button=true
                                        detach-kernel-driver=true
                                        #force-feedback=true
                                        mimic-xpad=true
                                        
                                        [evdev-absmap]
                                        ABS_X=x1
                                        ABS_Y=y1
                                        ABS_Z=x2
                                        ABS_RZ=y2
                                        ABS_HAT0X=dpad_x
                                        ABS_HAT0Y=dpad_y
                                        
                                        [evdev-keymap]
                                        KEY_#304=a
                                        KEY_#305=b
                                        KEY_#307=x
                                        KEY_#308=y
                                        KEY_#312=back
                                        KEY_#313=start
                                        KEY_#310=tl
                                        KEY_#311=tr
                                        
                                        [ui-axismap]
                                        x1=KEY_LEFT:KEY_RIGHT
                                        y1=KEY_DOWN:KEY_UP
                                        dpad_x=REL_X:10
                                        dpad_y=REL_Y:10
                                        
                                        [ui-buttonmap]
                                        a=BTN_LEFT
                                        b=BTN_RIGHT
                                        x=KEY_ENTER
                                        back=KEY_F5
                                        start=KEY_ESC
                                        
                                        # EOF #
                                        

                                        and run the game

                                        typed in cat /proc/bus/input/devices

                                        and got

                                        
                                        I: Bus=0005 Vendor=057e Product=2007 Version=0001
                                        N: Name="NES Controller (L)"
                                        P: Phys=b8:27:eb:7b:bc:a9
                                        S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:057E:2007.0001/input/input0
                                        U: Uniq=ec:c4:0d:a4:92:4a
                                        H: Handlers=js0 event0
                                        B: PROP=0
                                        B: EV=10001b
                                        B: KEY=ffff0000 0 0 0 0 0 0 0 0 0
                                        B: ABS=3001b
                                        B: MSC=10
                                        
                                        

                                        ( i havent touched since restall ScummVM.sh)

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          escc1986
                                          last edited by escc1986

                                          this is my ScummVM.sh (Before any changes)

                                          #!/bin/bash
                                          game="$1"
                                          pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null
                                          /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game
                                          while read id desc; do
                                              echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm"
                                          done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3)
                                          popd >/dev/null
                                          
                                          
                                          ExarKunIvE 1 Reply Last reply Reply Quote 0
                                          • ExarKunIvE
                                            ExarKunIv @escc1986
                                            last edited by

                                            @escc1986

                                            ok good.

                                            1 is the xdrive folder in the config/all folder

                                            2 all you need to do is add 1 line of code to the +Start ScummVM.sh right under the #!/bin/bash

                                            sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &

                                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                            Maintainer of RetroPie-Extra .

                                            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.