update issue; regarding Attract Mode
-
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
-
heres's the attract.cfg after the update
-
@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.
-
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.
-
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
-
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.
-
awesome, thank you Buzz, greatly appreciated
-
@InsecureSpike If you have an earlier copy of the configs that would be useful, in case it can point to what happened.
-
@BuZz my edited config file?
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.