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

    update issue; regarding Attract Mode

    Scheduled Pinned Locked Moved Help and Support
    attract mode
    9 Posts 3 Posters 2.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.
    • InsecureSpikeI
      InsecureSpike
      last edited by

      ok, i updated via binaries, and my attract.cfg has been completely re-written, all my custom entries have been deleted from there, and all the standard entries have had the themes reset to the basic one. this is the only file tghat seems to be affected.

      i'm running the latest update, on a Rpi3

      RPi 3 - RetroPie + 500gb HDD [consoles] + Razer Onza Tournament
      RPi 3 - RetroPie + 32gb USB [computers] + Keyboard
      both with AttractMode + FuzzBoxx Layout

      1 Reply Last reply Reply Quote 0
      • InsecureSpikeI
        InsecureSpike
        last edited by

        heres's the attract.cfg after the update

        http://pastebin.com/LdZYL63G

        RPi 3 - RetroPie + 500gb HDD [consoles] + Razer Onza Tournament
        RPi 3 - RetroPie + 32gb USB [computers] + Keyboard
        both with AttractMode + FuzzBoxx Layout

        AlexMurphyA 1 Reply Last reply Reply Quote 0
        • AlexMurphyA
          AlexMurphy Banned @InsecureSpike
          last edited by

          @InsecureSpike I'm not sure what your question is. That's what happens when you update. The default files are re-written and any custom changes lost. I don't use AM so I don't know exactly how it is handled but in ES you need to copy any modified custom config files to a specific location that is not affected by the update process. This preserves any changes you make to themes or systems etc. Check any documentation regarding AM and find out the location you should store your custom configs to protect them from future updates overwriting them.

          1 Reply Last reply Reply Quote 0
          • InsecureSpikeI
            InsecureSpike
            last edited by InsecureSpike

            yup i no about the es side of things,
            from what i remember, when updating the attract.cfg should not get fully rewritten, only added to, so say i removed master system from my set up, the update should add that back in, but leave everything else alone, it should only get updated, no completely rewritten, it worked all ok last week, and did as it was suppose to.

            i generally wondered if any other Pi-AttractMode users had similar issues? before posting over at attractmode forum.

            not much of a big deal to me as i make back ups for ever edit i do (a habit from building themes/layouts, i guess). but others may not be as lucky as to have backed up files

            the place where i have kept the attract.cfg is the same place as when it started being supported, and i've done countless updates since then.

            RPi 3 - RetroPie + 500gb HDD [consoles] + Razer Onza Tournament
            RPi 3 - RetroPie + 32gb USB [computers] + Keyboard
            both with AttractMode + FuzzBoxx Layout

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

              The code only ever appends to that file - so I suspect something went wrong with attractmode parsing the file and so it got reset that way.

                  local config="$attract_dir/attract.cfg"
                  local tab=$'\t'
              
              # if the config exists, and does NOT contain "display\tWhatever" then add it to the end.
              
                  if [[ -f "$config" ]] && ! grep -q "display$tab$fullname" "$config"; then
                      cat >>"$config" <<_EOF_
              display${tab}$fullname
              ${tab}layout               Basic
              ${tab}romlist              $fullname
              _EOF_
                      chown $user:$user "$config"
                  fi
              

              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 BuZz

                I will add a change so a backup file is made, but note this is in experimental etc :)

                Unfortunately the way we have to "edit" the attractmode config isn't ideal - attractmode needs a commandline tool for managing systems. Its config file "format" is also hard to parse/manage. XML would be better.

                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
                • InsecureSpikeI
                  InsecureSpike
                  last edited by

                  awesome, thank you Buzz, greatly appreciated

                  RPi 3 - RetroPie + 500gb HDD [consoles] + Razer Onza Tournament
                  RPi 3 - RetroPie + 32gb USB [computers] + Keyboard
                  both with AttractMode + FuzzBoxx Layout

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

                    @InsecureSpike If you have an earlier copy of the configs that would be useful, in case it can point to what happened.

                    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
                    • InsecureSpikeI
                      InsecureSpike
                      last edited by

                      @BuZz my edited config file?

                      RPi 3 - RetroPie + 500gb HDD [consoles] + Razer Onza Tournament
                      RPi 3 - RetroPie + 32gb USB [computers] + Keyboard
                      both with AttractMode + FuzzBoxx Layout

                      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.