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

    create-fs-uae-uuids script error

    Scheduled Pinned Locked Moved Help and Support
    emustationamigaretropie x86
    5 Posts 3 Posters 556 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.
    • X
      xxalfalfaxx
      last edited by

      Re: [Guide] Getting EmulationStation to work with FS-UAE

      Hi all,
      i'm trying to follow the instructions to get emulationStation to work with FS-UAE but i get the following error when launching create-fs-uae-uuids

      command substitution: riga 28: EOF non atteso durante la ricerca di "'"
      command substitution: riga 29: errore di sintassi: EOF non atteso

      it seems it can't find something here
      file=echo $name | sed -e 's/[^a-z0-9\._\-\&\']/ /gi' | tr -s ' '
      file="$file ($year).fs-uae"

      but i'm not confident with script syntax.
      Thank you

      X 1 Reply Last reply Reply Quote 0
      • X
        xxalfalfaxx @xxalfalfaxx
        last edited by

        just to add, i'm using emulationstation on x86 pc

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

          Seems like an scripting error - I think the original script has an error.
          Try this version, it has a minor modification.

          #!/usr/bin/env bash
          
          # --- Configuration settings start here ---
          
          # Location of FS-UAE Launcher.sqlite file
          database="$HOME/Documents/FS-UAE/Data/Databases/Launcher.sqlite"
          
          # Location of Amiga folder in EmulationStation. Ignore trailing /
          amiga="$HOME/RetroPie/roms/amiga"
          
          # ----- Code starts here -----
          
          # Remove any existing .fs-uae files
          rm -f $amiga/*.fs-uae
          
          # Connect to the FS-UAE database
          sqlite3 "$database" "select name,year,uuid from 'game' where have=4" | while read line ;
          do
            # Extract the game name, year and UUID
            name=`echo $line | cut -d"|" -f1`
            year=`echo $line | cut -d"|" -f2`
            uuid=`echo $line | cut -d"|" -f3`
          
            # Tell the user what we've found
            echo "Found: $name ($year)"
          
            # Create a valid filename based on the game name
            file=`echo $name | sed -e 's/[^a-z0-9\._\-\&\]/ /gi' | tr -s ' '`
            file="$file ($year).fs-uae"
          
            # Create a file with that name containing the UUID for the game
            echo -n "$uuid" > "$amiga/$file"
          done
          
          1 Reply Last reply Reply Quote 0
          • X
            xxalfalfaxx
            last edited by

            I can now create .fs-uae files succesfully! Many thanks!

            1 Reply Last reply Reply Quote 0
            • S
              silver
              last edited by silver

              Oops, sorry about that. Have updated the original post.

              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.