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.
    • UDb23U
      UDb23
      last edited by

      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

        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.

        UDb23U 1 Reply Last reply Reply Quote 0
        • UDb23U
          UDb23 @Greg_King
          last edited by

          @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

            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.

            BuZzB UDb23U 2 Replies Last reply Reply Quote 1
            • BuZzB
              BuZz administrators @Greg_King
              last edited by BuZz

              @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
              • BuZzB
                BuZz administrators
                last edited by

                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
                • BuZzB
                  BuZz administrators
                  last edited by

                  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
                  • BuZzB
                    BuZz administrators
                    last edited by

                    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

                    UDb23U 1 Reply Last reply Reply Quote 1
                    • UDb23U
                      UDb23 @Greg_King
                      last edited by

                      @greg_king ok, thanks.

                      1 Reply Last reply Reply Quote 0
                      • UDb23U
                        UDb23 @BuZz
                        last edited by

                        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?

                        BuZzB 1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators @UDb23
                          last edited by

                          @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

                          UDb23U 1 Reply Last reply Reply Quote 1
                          • UDb23U
                            UDb23 @BuZz
                            last edited by

                            @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.

                            BuZzB 1 Reply Last reply Reply Quote 0
                            • BuZzB
                              BuZz administrators @UDb23
                              last edited by BuZz

                              @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

                              UDb23U 1 Reply Last reply Reply Quote 0
                              • UDb23U
                                UDb23 @BuZz
                                last edited by

                                @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
                                • 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.