To verify I am using the correct version I updated RetroPie and it did a full rebuild/compile of Advmame. Here is the version:
pi@retropie:~ $ attract --version
Attract-Mode v2.2.1 (Linux, SFML 2.3 +FontConfig +RPi +SWF)
Using Libav for Audio and Video.
avcodec 56.1.0 / avformat 56.1.0 / swscale 3.0.0 / avresample 2.1.0
Shaders are not available.
pi@retropie:~ $ ll /usr/bin/attract
-rwxr-xr-x 1 root root 138 Apr 15 10:28 /usr/bin/attract
I checked after the rebuild and same thing. I deleted the .tag file, started attract-mode and added a single favorite, Robotron. Here is what the file looks like:
pi@retropie:~ $ cat ~/.attract/romlists/Advmame.tag
robotron
Right after I added it, I can switch to favorites view and it looks good. When I exit and return to attract mode (even after a reboot), switching to favorites shows no favorites. The .tag file still is the same.
The permissions on the "romlists" directory looks good. The "pi" user has write access and when I add them through attract-mode they get correctly saved to the .tag file.
pi@retropie:~ $ ll ~/.attract/
total 72
-rw-r--r-- 1 pi pi 210 Apr 15 10:44 attract.am
-rw-r--r-- 1 pi pi 9242 Apr 15 10:29 attract.cfg
-rw-r--r-- 1 root root 9166 Apr 15 10:29 attract.cfg.bak
drwxr-xr-x 2 pi pi 4096 Apr 15 10:29 emulators
drwxr-xr-x 2 pi pi 4096 Mar 30 19:56 intro
drwxr-xr-x 10 pi pi 4096 Apr 14 21:55 layouts
drwxr-xr-x 7 pi pi 4096 Mar 30 19:56 menu-art
drwxr-xr-x 2 pi pi 4096 Mar 30 19:56 modules
drwxr-xr-x 2 pi pi 4096 Mar 30 19:56 plugins
drwxr-xr-x 2 pi pi 4096 Apr 15 10:41 romlists
drwxr-xr-x 2 pi pi 4096 Mar 30 19:56 screensaver
-rw-r--r-- 1 pi pi 4 Apr 15 10:44 script.nv
drwxr-xr-x 2 pi pi 4096 Mar 30 19:56 sounds
drwxr-xr-x 5 pi pi 4096 Apr 1 23:48 stats
pi@retropie:~ $ ll ~/.attract/romlists/
total 1688
-rw-r--r-- 1 pi pi 9 Apr 15 10:35 Advmame.tag
-rw-r--r-- 1 pi pi 971914 Apr 13 19:57 Advmame.txt
-rw-r--r-- 1 pi pi 309510 Apr 1 23:35 Mame.txt
-rw-r--r-- 1 pi pi 432038 Apr 2 14:00 Multiple Arcade Machine Emulator.txt
-rw-r--r-- 1 pi pi 752 Apr 15 10:29 RetroPie.txt
It really seems like for whatever reason it is just not properly reading the .tag file on startup. I agree it did seem to read the roms starting with a number before but I don't know why that would be.
As for how I start attract-mode, in this testing I generally just run it from the command-line with no parameters. As for autostart, I pipe all output to /dev/null since there is alot of output on startup.
pi@retropie:~ $ cat /opt/retropie/configs/all/autostart.sh
#emulationstation #auto
clear
attract > /dev/null 2>&1
I exist attract-mode with the "Esc" key. I stop the Pi with a "sudo halt".
I feel like since this seems to be working for everyone else, I must be doing something wrong. Just not sure what to check anymore.