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 controller help

    Scheduled Pinned Locked Moved Help and Support
    scummvmcontroller help
    76 Posts 8 Posters 13.3k 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.
    • B
      bassman6805
      last edited by bassman6805

      Here is the log file. I see there is an error but I am not sure what to do. I copied it from the guide. I thought maybe it was the indention on the onstart but that didn't fix it. If you look at mine compared to yours the "fi" at the end isn't the same color as the "if" at the beginning of the if statement.

      scummvm
      scummvm
      
      bash "/home/pi/RetroPie/roms/scummvm/+Start ScummVM.sh"
      /opt/retropie/configs/all/runcommand-onstart.sh: line 31: syntax error near unexpected token `&'
      /opt/retropie/configs/all/runcommand-onstart.sh: line 31: `&'
      Parameters: 
      Executing: bash "/home/pi/RetroPie/roms/scummvm/+Start ScummVM.sh"
      WARNING: Invalid joystick: 0!
      Virtual keyboard pack 'vkeybd_default' loaded successfully
      WARNING: No hardware input were defined, using defaults!
      
      ExarKunIvE 1 Reply Last reply Reply Quote 0
      • ExarKunIvE
        ExarKunIv @bassman6805
        last edited by ExarKunIv

        ok i have found your problem at the very start you have a double #

        so copy the script as you see below. it works. i tested it out on my system.

        if for some reason it still not working, please post your log file again. it is the only way we know what is going on, but so far it is looking good

        #!/bin/sh
        
        ## Name of the emulator
        echo $1 >> /dev/shm/runcommand.log
        
        ## Name of the software used for running the emulation
        echo $2 >> /dev/shm/runcommand.log
        
        ## Name of the rom
        echo $3 >> /dev/shm/runcommand.log
        
        ##Executed command line
        echo $4 >> /dev/shm/runcommand.log
        
        if [ "$1" = "scummvm" ]
        then
        sudo killall > /dev/null 2>&1 xboxdrv
        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1   \
        --evdev /dev/input/event0 \
        --silent \
        --detach-kernel-driver \
        --force-feedback \
        --deadzone-trigger 15% \
        --deadzone 4000 \
        --mimic-xpad \
        --evdev-keymap KEY_#44=a,KEY_#45=b,KEY_#31=x,KEY_#30=y,KEY_#16=lb,KEY_#17=rb,KEY_#1=back,KEY_#28=start,KEY_#108=du,KEY_#106=dr,KEY_#103=dd,KEY_#105=dl \
        --ui-buttonmap b=BTN_LEFT,a=BTN_RIGHT,start=KEY_F5,dr=REL_X:25,dl=REL_X:-25,dd=REL_Y:25,du=REL_Y:-25 \
        --ui-buttonmap guide=void,x=void,y=void,lb=void,rb=void,tl=void,tr=void,lt=void,rt=void,back=void \
        &
        fi
        

        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 .

        jonnykeshJ 1 Reply Last reply Reply Quote 1
        • jonnykeshJ
          jonnykesh @ExarKunIv
          last edited by jonnykesh

          @exarkuniv Well spotted. I'd say that is the issue. The extra hash before the shebang just comments it out and the script won't run.

          1 Reply Last reply Reply Quote 0
          • B
            bassman6805
            last edited by

            I'll try it this evening. Thanks so much. I'm probably showing my age but I wish these things were written in dos!

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

              @bassman6805

              i miss DOS also, was never that good at that either, but i knew enough to get around :)

              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
              • B
                bassman6805
                last edited by

                That did the trick. Works great. The movement is a little jerky but that is probably caused by using a directional pad versus analog. When I built the unit it called for the analog joystick so me being an idiot I thought that meant it would be analog. I think this will work perfectly for the point and click games I am wanting to play though. I would like to build another supergame pi but make it analog on the next one. Maybe that can be my next challenge. Thanks again for all the help.

                1 Reply Last reply Reply Quote 1
                • B
                  bassman6805
                  last edited by

                  One last question. Is there away to adjust the movement of the joystick? By that I mean the amount the cursor moves when pushed once in a certain direction. I was unable to load a couple games from the menus because I couldn't get the cursor over the name to select it. If I pushed up or down it would go to far. Other than that it seams to be good.

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

                    @bassman6805

                    I don't know off the top of my head but I'll take a look in to. I'm sure there is away to fine tune it better for you.

                    If it seems like the curser moves too fast then lower the number for the movement. Right now for you it is set for 25 and -25. Going lower will slow down how fast the pointer moves.

                    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
                    • B
                      bassman6805
                      last edited by

                      Thanks. I will also try lowering the speed.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bassman6805
                        last edited by

                        Lowering the speed from 25 to 15 seemed to help with the issue. Thanks.

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

                          @bassman6805
                          Sweet
                          Glad to hear

                          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
                          • BillyHB
                            BillyH @dudleydes
                            last edited by

                            @dudleydes said in Scummvm controller help:

                            A year ago, ScummVM moved to version 1.9 which uses SDL2 as its backend. Users reported issues when using a joystick so the devs added the SDL1 version to RetroPie.

                            Found this thread because my controller doesn't work in ScummVM so I looked for a way to fix it. Going by this post, I removed the 'new' ScummVM and installed the SDL1 one but that one won't even start up for me, I just get thrown back into the main menu.

                            • First Pi: Pi 3 in a PSone case
                            • Second Pi: Pi 0 in a Retroflag GPi Case
                            • Third Pi: Pi 4 as a desktop computer
                            • Some time in 2020: Picade
                            1 Reply Last reply Reply Quote 0
                            • fabio78F
                              fabio78
                              last edited by

                              The new ScummVm (2.0) offers better support to gamepads and it basically works out-of-the-box. Try updating it (binary works).

                              BillyHB 1 Reply Last reply Reply Quote 1
                              • BillyHB
                                BillyH @fabio78
                                last edited by

                                @fabio78 Oh wow, updating it helped a bunch! Thanks! Controller definitely works now in the ScummVM menu so I'll go through the motions of adding my games to Pi then.

                                • First Pi: Pi 3 in a PSone case
                                • Second Pi: Pi 0 in a Retroflag GPi Case
                                • Third Pi: Pi 4 as a desktop computer
                                • Some time in 2020: Picade
                                1 Reply Last reply Reply Quote 1
                                • 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.