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

    adding commandline options to the emulaators config on vice

    Scheduled Pinned Locked Moved Help and Support
    vice 64
    8 Posts 4 Posters 1.1k 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
      Mangaclub
      last edited by

      Greetings,

      the last one and a half hour i am researching how to add special commandline options inside the emulators.cfs or maybe even vice.sh file.
      I understood that in the emulators config the line: vice-x64 = "/opt/retropie/emulators/vice/bin/vice.sh x64 %ROM% -commandline1 -commandline 2"
      would be wrong. Where am i able to deliver the emulator such commandlines?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @Mangaclub
        last edited by

        @Mangaclub Where did you understood that adding them in the emulators.cfg would be wrong ? What exactly are you trying to accomplish/what parameters you like to add ?

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

          several posts on this forum i found but because somehow the way the vice.sh is made to extract files.
          Since vice always enables warp mode and forgets to enable the joystick swap, i need to state those manually via commandline.

          mituM D 2 Replies Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Mangaclub
            last edited by

            @Mangaclub Technically, the script (vice.sh) accepts the parameters at the end of the command line and passes them automatically to the emulator, but I'd try to see if setting those values through the configuration file wouldn't be easier.

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

              @Mangaclub I have successfully added command line parameters in /opt/retropie/configs/c64/emulators.cfg.

              For example, to launch d81 formats, I added the line below and used the runcommand menu to change the emulator on launch.

              vice-x64-1581 = "/opt/retropie/emulators/vice/bin/vice.sh x64 %ROM% -drive8type 1581"
              

              I did try to enable joystick swap for Maniac Mansion and Zak McKracken from the command line (I don't recall the parameter, I'm afraid) but I couldn't get it to work.

              I found a simpler solution was to map swap joystick to a button on my PS3 controller using the video below as a guide.

              I also mapped toggle warp mode to a controller button. It's useful to improve loading times.

              Warp mode can be turned off by setting WarpMode to 0 in the Vice config file, /opt/retropie/configs/c64/sdl-vicerc.

              M 1 Reply Last reply Reply Quote 1
              • M
                Mangaclub @dudleydes
                last edited by

                well as soon as i add any line here the c64 sides goes nuts when trying to load the rom in a File not found error. As if the commandline would be interpreted as a filename

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

                  @Mangaclub Could you give the line you added to emulators.cfg and what result you were expecting?

                  1 Reply Last reply Reply Quote 0
                  • C
                    cybling1
                    last edited by

                    Hi all.

                    I'm fairly new to Retropie etc. and I realise this is an old thread, but just in case this helps someone else. I have been trying to run vice xvic with 16k expansion as some ROMs seemed to require this, they were just failing to load and showing error. I read a bunch of posts on the forum suggesting that a separate run command could be placed in emulators.cfg file with a command line switch (https://retropie.org.uk/forum/topic/1052/vic20-cartridge-launching/3) but everything I tried failed except this:

                    vice-xvic = "/opt/retropie/emulators/vice/bin/vice.sh xvic %ROM%"
                    vice-xvic-expanded = "/opt/retropie/emulators/vice/bin/vice.sh xvic %ROM% -memory all"
                    vice-xvic-cart = "/opt/retropie/emulators/vice/bin/vice.sh xvic %ROM% -cartgeneric"

                    This was added to my /opt/retropie/configs/vic20/emulators.cfg file and now my vic20 ROMs load (once I select vice-xvic-expanded on the load screen.) Any Vic 20 ROMS that don't like the memory expansion should use the default vice-xvic.

                    It seems the issues with some of the command line switch suggestions I was copying from the forum were that single quotes don't work in these commands e.g. = "/opt/retropie/emulators/vice/bin/vice.sh 'xvic -cartgeneric' %ROM% " and %ROM% should come before the switch i.e. %ROM% -memory all .... not .... -memory all %ROM%

                    If anyone is wondering how I have a separate vic20 folder instead of this just being under the default c64, I followed these instructions: https://ianwilliamhill.co.uk/c16rp/index.php

                    I hope this helps!

                    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.