Running skyscraper from command line and need help[
-
I've been running skyscraper from the command line since running it out of the Retropie-Setup doesn't seem to pickup it's config.ini. I scrape using this command for example:
/opt/retropie/supplementary/skyscraper/Skyscraper -p nes -g /home/pi/.emulationstation/gamelists/nes -o /home/pi/.emulationstation/downloaded_media/nes -s screenscraper --flags unattend,skipped -u "Gorf:xxx" -t 2
That command works great except that I did notice I had to put the screenscraper.fr username and pass credentials in the command line since it doesn't seem to pick those up out of the ini no matter how I try. Though it did pick up my max API call configuration.
Here is where I am stuck. Run like that, it doesn't download any media. In EmulationStation I seem to get the 2-column layout with the game titles on the left, but no information on the right. I noticed that when I run skyscraper out of the package manager it takes two steps, "Gather Resouces" and then "Build Gamelist" (or something like that).
Is there a missing option in my command line? Or is there a second step that I don't seem to know what it is?
Thanks!
-
@gorf said in Running skyscraper from command line and need help[:
Or is there a second step that I don't seem to know what it is?
Yeah. To build the gamelist.xml file after scraping all your media, run it again without the “-s <scrapingModule>” flag:
/opt/retropie/supplementary/skyscraper/Skyscraper -p nes -g /home/pi/.emulationstation/gamelists/nes -o /home/pi/.emulationstation/downloaded_media/nes --flags unattend,skipped -u "Gorf:xxx" -t 2
(Also, you MIGHT not need the trailing “nes” in the gamelist and media folders, I think it’s implied. At least it is when setting them via config.ini in the main section, but not in a platform section. If your xml shows up in “gamelists/nes/nes” go ahead and just point them at “gamelists”/“downloaded_media”; it should automatically use a “<platform>” subfolder for each different one.)
If you’re going to be using it from the command line a lot, consider setting a symbolic link to the executable in the system path:
sudo ln -s /opt/retropie/supplementary/skyscraper/Skyscraper /usr/local/bin/Skyscraper
This will allow you to just type
Skyscraper
when running it from command line so you don’t have to use the full path each time.More command-line help, here: https://github.com/muldjord/skyscraper/blob/master/docs/CLIHELP.md
Are you sure you want
unattend,skipped
or did you meanunattendskip
? The former will overwrite existing gamelist entries without asking, and include (unnecessary) empty entries for roms with no resources attached. The second option will skip existing gamelist entries and only write new ones. -
@iron-magus said in Running skyscraper from command line and need help[:
(Also, you MIGHT not need the trailing “nes” in the gamelist and media folders, I think it’s implied. At least it is when setting them via config.ini in the main section, but not in a platform section. If your xml shows up in “gamelists/nes/nes” go ahead and just point them at “gamelists”/“downloaded_media”; it should automatically use a “<platform>” subfolder for each different one.)
When setting them on command-line the
nes
part is required. :) It is similar to setting it in a[nes]
section in/home/USER/.skyscraper/config.ini
.@Gorf The credentials in
/home/USER/.skyscraper/config.ini
will be used if they are added using this exact formar:[screenscraper] userCreds="USER:PASSWORD"
I would also set the following which allows you to leave out the
-g
and-o
part of your command:[main] gameListFolder="/home/pi/.emulationstation/gamelists" mediaFolder="/home/pi/.emulationstation/downloaded_media"
Setting those in
[main]
will automatically add the/nes
part to the end of them as @iron-magus explained.Lastly, you don't need the
-t 2
option when using ScreenScraper. It will overwrite it anyway. It is usable with other sources though.
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.