• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

VICE problem launching VIC20 cartridges

Scheduled Pinned Locked Moved Help and Support
vicexvixvic20cartridge
16 Posts 3 Posters 3.5k 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.
  • U
    UDb23
    last edited by UDb23 22 Oct 2017, 15:37

    I got an issue with launching VIC20 cartridge ROMs.
    I'm using the vice-xvic-cart option to run these from ES: get some seconds of black screen and then it goes back to ES.

    Here's runcommand.log's content:
    Parameters: Executing: SDL1_VIDEODRIVER=dispmanx /opt/retropie/emulators/vice/bin/vice.sh 'xvic -cartgeneric' "/home/pi/RetroPie/roms/vic20/SargonII.prg" Unsupported archive: /home/pi/RetroPie/roms/vic20/SargonII.prg /opt/retropie/emulators/vice/bin/vice.sh: line 18: /opt/retropie/emulators/vice/bin/xvic -cartgeneric: No such file or directory

    If I run VICE with xvic and then use VICE's internal menu to load the cartridge and finally do a soft reset, the cartridges do work !

    Something wrong in the runcommand options ?
    Any ideas ?

    Running VICE v3.1 rev 33700, Raspberry Pi3 w original power supply, Retropie 4.3.

    1 Reply Last reply Reply Quote 0
    • U
      UDb23
      last edited by 22 Oct 2017, 17:52

      Seems same happens to other people under windows also.
      Created a "Bug" ticket on Sourceforge's VICE page.

      1 Reply Last reply Reply Quote 0
      • U
        UDb23
        last edited by 28 Oct 2017, 14:12

        After further investigation the problem seem to be related to vice.sh; when executed with the -cartgeneric option, the ROM filename get's "lost" after the unarchiving step in vice.sh.
        As in the log above, final line launches xvic -cartgeneric but the ROM name is not provided.
        Xvic gives error as no file is provided.

        emulators.cfg for c64 system (used also for vic20) provided with retropie 4.3 is this.

        Note: in this cfg 2 of the vic20 launch options use vice.sh, and 1 calls xvic directly:
        vice-xvic-expanded="SDL_DISPMANX_RATIO=1.33 /opt/retropie/emulators/vice/bin/xvic -memory all %ROM%
        Wondering why and why only this option is setting a display ratio... should be the same for all xvic vic20 launch options.

        If you replace the vic related launch commands with these
        vice-xvic="/opt/retropie/emulators/vice/bin/xvic -memory none %ROM%"

        vice-xvic-expanded="/opt/retropie/emulators/vice/bin/xvic -memory all %ROM%"

        vice-xvic-cart="/opt/retropie/emulators/vice/bin/xvic -cartgeneric %ROM%"
        (basically not using vice.sh and therefore loosing compressed rom compatibility; not a big issue anyway... roms are so small :-) )

        Launching of cartridges with -cartgeneric now works !

        I'm don't know bash scripting but the "lost rom name" can surely be fixed.
        @buzz or @meleu can you please check what is going wrong with vice.sh?

        1 Reply Last reply Reply Quote 0
        • G
          Greg_King
          last edited by 28 Oct 2017, 17:06

          Look at the error message:

          /opt/retropie/emulators/vice/bin/vice.sh: line 18: /opt/retropie/emulators/vice/bin/xvic -cartgeneric: No such file or directory
          

          The left third is /opt/retropie/emulators/vice/bin/vice.sh: line 18: . The right third is : No such file or directory. The middle part is the path-name of the file that could not be found. Notice that -cartgeneric is a part of that name. Obviously, you don't have a file that's spelled like that. The bug is the apostrophes in "emulators.cfg". They make shells think that "xvic -cartgeneric" is a single object. You want them to be two objects; therefore, remove those apostrophes.

          U 1 Reply Last reply 28 Oct 2017, 17:25 Reply Quote 0
          • U
            UDb23 @Greg_King
            last edited by 28 Oct 2017, 17:25

            @greg_king Vice.sh does recognize path and romname, in fact if the rom is a zip file it will run decompressing correctly. After that the script checks the extracted file and assigns that filename to the ROM variable; that should then be used to lauch xvic. But romname is missing in the actual result.

            1 Reply Last reply Reply Quote 0
            • G
              Greg_King
              last edited by 28 Oct 2017, 18:49

              The bug has nothing to do with the ROM! The bug cannot find XVIC. The configuration file lies about the name of VICE's emulator. The name should be only

              xvic

              But, the configuration claims that the name is

              xvic -cartgeneric

              VICE's emulators don't have two words in their names. Therefore, the operating system cannot find an emulator -- there's nothing to launch!

              Try my advice; remove those apostrophes. The configuration line should be

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

              See if it works.

              B U 2 Replies Last reply 28 Oct 2017, 18:56 Reply Quote 1
              • B
                BuZz administrators @Greg_King
                last edited by BuZz 28 Oct 2017, 18:56

                @greg_king You are correct about the apostrophes causing an issue, however, the script also expects the rom as parameter 2. It will need another fix (I'm working on it).

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • B
                  BuZz administrators
                  last edited by 28 Oct 2017, 18:59

                  removing the quotes around the $BIN in the second to last line in the vice.sh script should sort it but will test.

                  from

                  "$BIN" -chdir "$romdir" "$ROM"
                  

                  to

                  $BIN -chdir "$romdir" "$ROM"
                  

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  1 Reply Last reply Reply Quote 0
                  • B
                    BuZz administrators
                    last edited by 28 Oct 2017, 19:02

                    Needs more than this due to parameter ordering etc. Going to swap some stuff around.

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    1 Reply Last reply Reply Quote 0
                    • B
                      BuZz administrators
                      last edited by 28 Oct 2017, 19:16

                      Please update the RetroPie-Setup script then update vice from binary and see if that resolves it for you.

                      https://github.com/RetroPie/RetroPie-Setup/commit/a63a32fe2e51dae84f4b784917d8192c0f14866b

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      U 1 Reply Last reply 28 Oct 2017, 22:38 Reply Quote 1
                      • U
                        UDb23 @Greg_King
                        last edited by 28 Oct 2017, 22:31

                        @greg_king ok, thanks.

                        1 Reply Last reply Reply Quote 0
                        • U
                          UDb23 @BuZz
                          last edited by 28 Oct 2017, 22:38

                          Thanks @buzz. Will Check your fix tomorrow morning and let you know.

                          What about the vic expanded launch command (emulators.cfg for c64 mentioned before) not calling vice.sh but xvic directly? Is there a specific reason or just a typo?

                          B 1 Reply Last reply 28 Oct 2017, 23:17 Reply Quote 0
                          • B
                            BuZz administrators @UDb23
                            last edited by 28 Oct 2017, 23:17

                            @udb23 RetroPie doesn't come with any vic-expanded entry.

                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                            U 1 Reply Last reply 28 Oct 2017, 23:27 Reply Quote 1
                            • U
                              UDb23 @BuZz
                              last edited by 28 Oct 2017, 23:27

                              @buzz Huh, I see.
                              That's quite strange... wondering if it comes from a previous config I made but I'm quite sure I never knew or saw that RATIO=1.33 setting used in that launch command.

                              The xvic expanded launch command is mentioned in this old post.
                              Maybe worth adding to Retropie.

                              B 1 Reply Last reply 28 Oct 2017, 23:40 Reply Quote 0
                              • B
                                BuZz administrators @UDb23
                                last edited by BuZz 28 Oct 2017, 23:40

                                @udb23 the ratio thing was part of an older retropie when we used sdl1 - since that post was made it was removed. Your expanded line should be updated to use the vice.sh if you want to have archive unpacking etc. I will consider adding that line (Although we already have many launch items, and I'm not sure how common it is to use that).

                                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                U 1 Reply Last reply 29 Oct 2017, 08:22 Reply Quote 0
                                • U
                                  UDb23 @BuZz
                                  last edited by 29 Oct 2017, 08:22

                                  @buzz Updated setup script and vice from binary; xvic now launched correctly with specific parameters. Also edited emulators.cfg for expanded as suggested.

                                  Runcommand.log is here.
                                  It shows some errors, probably just minor as cartridges seem to work perfectly.

                                  Thanks for the fix ! Really appreciated.

                                  1 Reply Last reply Reply Quote 0
                                  16 out of 16
                                  • First post
                                    16/16
                                    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.

                                    This community forum collects and processes your personal information.
                                    consent.not_received