Hey folks!
Installing with Lutris is simple: Go to the game’s page, click Install - BOOM! it’s running
What if I want to test or fiddle around with own installations? Do I have to create an installer on the website, save it, open it via the little “show unpublished” link and then install it?
Or is there something in Lutris like “right-click -> paste custom install script to run”?
2 Likes
I would also like you have and answer to that. Want to add a caesar 3 GOG install script, but no idea how to test it
1 Like
cxf
February 2, 2019, 5:40am
3
Go back into the edit page. At the bottom there’ll be a “Test Installer” button. Use that. You can also write installers locally as you can see by my example below. Keep in mind though, you’ll need to reformat the script in order for it to be valid and installable through the website.
name: Aion
game_slug: aion
version: Installer
slug: aion
runner: wine
script:
files:
- aion: http://dl.aion.gameforge.com/aion/client/20180104/20180103_AION_Setup.exe
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
game:
exe: drive_c/Program Files (x86)/Gameforge/NCLauncher/NCLauncher.exe
prefix: $GAMEDIR
arch: win64
args: /LauncherID:"GameForge" /CompanyID:"11" /GameID:"AION-LIVE" /LUpdateAddr:"update.aion.gfsrv.net"
installer:
- extract:
dst: $CACHE/dxsetup
file: dx2010
- task:
arch: win64
name: create_prefix
prefix: $GAMEDIR
- task:
arch: win64
args: /silent
executable: $CACHE/dxsetup/DXSETUP.exe
name: wineexec
prefix: $GAMEDIR
- task:
arch: win64
name: winekill
prefix: $GAMEDIR
- task:
app: vrun2005 vrun2008 vrun2013 corefonts
arch: win64
name: winetricks
prefix: $GAMEDIR
- task:
app: dotnet472 win7
description: Installing .NET 4.7.2
arch: win64
name: winetricks
prefix: $GAMEDIR
- task:
arch: win64
executable: aion
name: wineexec
prefix: $GAMEDIR
system: {}
wine:
version: tkg-3.21-x86_64
You must include each section or Lutris won’t be able to install the script. See system: {}
To install a local script open a terminal and run it with lutris -i filename.yml
In order to submit you have to reformat as such:
files:
- aion: http://dl.aion.gameforge.com/aion/client/20180104/20180103_AION_Setup.exe
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
game:
exe: drive_c/Program Files (x86)/Gameforge/NCLauncher/NCLauncher.exe
prefix: $GAMEDIR
arch: win64
args: /LauncherID:"GameForge" /CompanyID:"11" /GameID:"AION-LIVE" /LUpdateAddr:"update.aion.gfsrv.net"
installer:
- extract:
dst: $CACHE/dxsetup
file: dx2010
- task:
arch: win64
name: create_prefix
prefix: $GAMEDIR
- task:
arch: win64
args: /silent
executable: $CACHE/dxsetup/DXSETUP.exe
name: wineexec
prefix: $GAMEDIR
- task:
arch: win64
name: winekill
prefix: $GAMEDIR
- task:
app: vrun2005 vrun2008 vrun2013 corefonts
arch: win64
name: winetricks
prefix: $GAMEDIR
- task:
app: dotnet472 win7
description: Installing .NET 4.7.2
arch: win64
name: winetricks
prefix: $GAMEDIR
- task:
arch: win64
executable: aion
name: wineexec
prefix: $GAMEDIR
wine:
version: tkg-3.21-x86_64
Start from files and remove everything above it.
Remember to remove two spaces from the beginning of every line.
Remove system: {}
since it’s not being used.
deckoff
February 2, 2019, 10:19am
4
Thank you for your helpful answer
I found this in the meanwhile:
==================
Writing installers
==================
See an example installer at the end of this document.
Fetching required files
=======================
The ``files`` section of the installer references every file needed for
installing the game. This section's keys are unique identifier used later in
the ``installer`` section. The value can either be a string containing a URI
pointing at the required file or a dictionary containing the ``filename`` and
``url`` keys. The ``url`` key is equivalent to passing only a string to the
installer and the ``filename`` key will be used to give the local copy another
name. If you need to set referer use ``referer`` key.
If the game contains copyrighted files that cannot be redistributed, the value
should begin with ``N/A``. When the installer encounter this value, it will
prompt the user for the location of the file. To indicate to the user what file
This file has been truncated. show original
Think it would be a good idea to stick it here, for everyone that needs even more detailed info, and and searches here on the forum first.
2 Likes