scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
834 stars 96 forks source link

[GNU/Linux] src/ice.py runs without error and creates files in userdata dir, yet nothing is added to Steam #315

Open thecityofguanyu opened 8 years ago

thecityofguanyu commented 8 years ago

Title sums it up. Everything appears to run without issue, yet nothing is added to my Steam client. Any ideas what I might be doing wrong here? I pulled the source code from today, 2015-11-30.

OS Info:

Linux E6320-020212 3.14-1-amd64 #1 SMP Debian 3.14.9-1 (2014-06-30) x86_64 GNU/Linux

Steam info:

Steam Client Version

ice.log:

2015-11-30 15:54:47,910 [INFO][ice_engine.py][main:114]: =========== Starting Ice ===========
2015-11-30 15:54:47,925 [DEBUG][ice_logging.py][log_configuration:84]: Using `config.txt` at `/home/user/.steam/ice/config.txt`
2015-11-30 15:54:47,925 [DEBUG][ice_logging.py][log_configuration:87]: Using `consoles.txt` at `/home/user/.steam/ice/consoles.txt`
2015-11-30 15:54:47,926 [DEBUG][ice_logging.py][log_configuration:90]: Using `emulators.txt` at `/home/user/.steam/ice/emulators.txt`
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_emulator_state:64]: Detected Emulator: GVBA
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_emulator_state:64]: Detected Emulator: ZSNES
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_console_state:73]: Detected Console: Nintendo Entertainment System => ZSNES
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_console_state:73]: Detected Console: Super Nintendo => ZSNES
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_console_state:73]: Detected Console: Nintendo Gameboy => GVBA
2015-11-30 15:54:47,926 [INFO][ice_logging.py][log_console_state:73]: Detected Console: Gameboy Advance => GVBA
2015-11-30 15:54:47,926 [INFO][ice_engine.py][main:126]: =========== User: 68406062 ===========
2015-11-30 15:54:47,926 [DEBUG][ice_engine.py][run_for_user:140]: Not creating backup because its a dry run
2015-11-30 15:54:47,927 [DEBUG][rom_parser.py][parse:26]: [ROMParser] Matched game 'Super Mario World.smc' using regular expression `(?P<name>[^\(\)\[\]\.]*).*`
2015-11-30 15:54:47,928 [DEBUG][rom_parser.py][parse:26]: [ROMParser] Matched game 'Pokemon - Fire Red.GBA' using regular expression `(?P<name>[^\(\)\[\]\.]*).*`
2015-11-30 15:54:47,928 [DEBUG][rom_parser.py][parse:26]: [ROMParser] Matched game 'Pokemon - Fire Red.sav' using regular expression `(?P<name>[^\(\)\[\]\.]*).*`
2015-11-30 15:54:47,928 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:74]: Previous managed ids: [u'17973235912317861888', u'9633807783233060864', u'10530353090689761280']
2015-11-30 15:54:47,929 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:76]: Unmanaged shortcuts: []
2015-11-30 15:54:47,929 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:78]: Current Ice shortcuts: [<pysteam.shortcut.Shortcut object at 0x7fc5c9e576d0>, <pysteam.shortcut.Shortcut object at 0x7fc5c9e57610>, <pysteam.shortcut.Shortcut object at 0x7fc5c9e574d0>]
2015-11-30 15:54:47,937 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:91]: Finished sync. Updated shortcuts: [<pysteam.shortcut.Shortcut object at 0x7fc5c9e57e90>, <pysteam.shortcut.Shortcut object at 0x7fc5c9e57fd0>, <pysteam.shortcut.Shortcut object at 0x7fc5c9e57ed0>]
2015-11-30 15:54:47,937 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:96]: Saving shortcuts
2015-11-30 15:54:47,939 [DEBUG][steam_shortcut_synchronizer.py][sync_roms_for_user:101]: Updating archive to ids: ['17973235912317861888', '9633807783233060864', '10530353090689761280']

cat config.txt | grep Userdata:

Userdata Directory=~/.local/share/Steam/userdata/

ls -ltra ~/.local/share/Steam/userdata/xxxxxxxx/config/grid/:

total 716
drwxr-xr-x 3 user user   4096 Nov 30 14:08 ..
-rw------- 1 user user 185745 Nov 30 14:29 9633807783233060864.png
-rw------- 1 user user 185745 Nov 30 14:32 10363794460814344192.png
-rw------- 1 user user 156121 Nov 30 14:46 17973235912317861888.png
-rw------- 1 user user 185745 Nov 30 15:06 10530353090689761280.png
drwxrwxrwx 2 user user   4096 Nov 30 15:06 .

Running ice.py with Steam running correctly trips this error message:

=========== Starting Ice ===========
Ice cannot run because of issues with your system.

* `Steam` cannot be running while Ice is being run

Please resolve these issues and try running Ice again

Close the window, or hit enter to exit...

Steam process running:

~/.steam/ice/ ps aux | grep steam 
user  25678  0.0  0.0   4320   652 ?        Ss   16:01   0:00 /bin/sh -e /usr/games/steam
user  25681  0.0  0.0  13516  1832 ?        S    16:01   0:00 bash /home/user/.steam/steam.sh
user  25767  4.5  1.2 323852 98344 ?        Sl   16:01   0:04 /home/user/.steam/ubuntu12_32/steam
user  25769  0.0  0.2 101756 20776 ?        S    16:01   0:00 /home/user/.steam/ubuntu12_32/steam
user  25770  0.0  0.0   4320   636 ?        S    16:01   0:00 sh -c "/home/user/.steam/ubuntu12_32/steamwebhelper" -cachedir="config/htmlcache" -steampid=25767 -buildid=1447125378 -steamid="0"  --disable-gpu-compositing --disable-gpu --process-per-tab --enable-system-flash --disable-spell-checking --enable-widevine-cdm --widevine-cdm-path=/home/user/.steam/ubuntu12_32 --widevine-cdm-version=1.4.8.824
user  25771  0.1  0.3 339264 25104 ?        Sl   16:01   0:00 /home/user/.steam/ubuntu12_32/steamwebhelper -cachedir=config/htmlcache -steampid=25767 -buildid=1447125378 -steamid=0 --disable-gpu-compositing --disable-gpu --process-per-tab --enable-system-flash --disable-spell-checking --enable-widevine-cdm --widevine-cdm-path=/home/user/.steam/ubuntu12_32 --widevine-cdm-version=1.4.8.824
user  25774  0.0  0.1 131684 11932 ?        S    16:01   0:00 /home/user/.steam/ubuntu12_32/steamwebhelper --type=zygote --no-sandbox --lang=en_US.UTF-8 --product-version=Valve Steam Client --widevine-cdm-path=/home/user/.steam/ubuntu12_32 --widevine-cdm-version=1.4.8.824
user  25820  0.0  0.2 221772 22060 ?        Sl   16:01   0:00 /home/user/.steam/ubuntu12_32/steamwebhelper --type=renderer --disable-gpu-compositing --enable-pinch --no-sandbox --lang=en-US --lang=en_US.UTF-8 --product-version=Valve Steam Client --disable-spell-checking --enable-system-flash --widevine-cdm-path=/home/user/.steam/ubuntu12_32 --widevine-cdm-version=1.4.8.824 --enable-pinch --enable-delegated-renderer --num-raster-threads=2 --gpu-rasterization-msaa-sample-count=8 --content-image-texture-target=3553 --video-image-texture-target=3553 --disable-accelerated-video-decode --disable-gpu-compositing --channel=25771.0.1669528477 --v8-natives-passed-by-fd --v8-snapshot-passed-by-fd
user  26303  0.0  0.0  12712   976 pts/5    S+   16:03   0:00 grep steam

Yet all I see in my client is the following (screenshot):

Steam Client

scottrice commented 8 years ago

Huh, this is odd. Do you mind posting your shortcuts.vdf file as well? That should be in your config folder.

thecityofguanyu commented 8 years ago

It looks as if my machine contains two Steam dirs and there's some disconnect between them. One in ~/.steam, with the other in .local/share/Steam.

locate shortcuts.vdf

/home/user/.local/share/Steam/userdata/68406062/config/shortcuts.vdf
/home/user/.steam/userdata/68406062/config/shortcuts.vdf

cat /home/user/.steam/userdata/68406062/config/shortcuts.vdf

 shortcu%                        

cat /home/user/.local/share/Steam/userdata/68406062/config/shortcuts.vdf

shortcuts0AppNameSuper Mario WorldExe"/usr/bin/zsnes" "/usr/games/ROMs/SNES/Super Mario World.smc"StartDir/usr/binicontags0Super Ninten1AppNamePokemon - Fire RedExe"/usr/bin/gvba" "/usr/games/ROMs/GBA/Pokemon - Fire Red.GBA"StartDir/usr/binicontags0Gameboy Advan2AppNamePokemon - Fire RedExe"/usr/bin/gvba" "/usr/games/ROMs/GBA/Saves/Pokemon - Fire Red.sav"StartDir/usr/binicontags0Gameboy Adv%  

Overwriting the one in the .steam folder with the one in the .local folder made the shorts show up, though they are missing icons. I assume something happened there similar to the shortcuts.vdf file -- they reside somewhere in the .local folder.