Lightweight script designed to import games from Lutris in to Steam along with corresponding art work uing Steam ROM Manager.
Run the command to create a folder in the current working directory for each "service" registered in Lutris. The command will then make a .json manifest file containing the details for each game associated with that service in the respective folders.
These .json files can then be parsed by Steam Rom Manager to import them in to Steam with the correct artwork.
The manifest files make use of the Lutris CLI protocol link functionality, using lutris: followed by the service and a game identifier, which will open a game via Lutris if it is installed, or install it if not. Games will have to be uninstalled via Lutris directly.
Clone the repo using:
git clone [email protected]:culain-45124/lutris-importer.git
Create a new bin directory if you don't already have one:
mkdir ~/bin
Symlink script in to the bin directory:
ln -s /home/deck/lutris-importer/lutris-import.sh /home/deck/bin/lutris-import
Add bin to your path:
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
Restart your terminal, or open a new tab for changes to take effect
Register all the services you want to on Lutris, you need a version >0.5.14 for this to work
Change directory to the location you want to create the folders, for example
cd /run/media/mmcblk0p1/Emulation
Run the command
lutris-import
This should create all the corresponding files and folders
| Arguments | Description |
|---|---|
-f |
If the script detects a file with the name of the service in the current working directory it will exit so as not to delete anything important. Use -f to force the deletion of this file so it can be replaced with a directory |
-h |
Display help text |
You'll need to do this for each service that you want to add the games from to Steam
To import via Steam ROM Manager:
- Open Steam ROM Manager
- Click "Create Parser"
- Under "PARSER TYPE" select "Manual"
- For "MANIFESTS DIRECTORY" select the service directory that you're adding, e.g.
/run/media/mmcblk0p1/Emulation/gog - Fill in the other options as required, click "Test parser" to check it works then "Save" to finish
- Use the "Preview" pane as usual to select artwork and add to Steam