adding commandline options to the emulaators config on vice
-
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? -
@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 ? -
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. -
@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. -
@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
. -
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
-
@Mangaclub Could you give the line you added to
emulators.cfg
and what result you were expecting? -
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!
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.