Proper way to make a slightly altered version of a script installer?

Hello all! I’ve recently fiddled around with an installer for FFXI. To be specific, I took the Full (US) with D8VK version and modified slightly in order for the script to install the European version of the client instead.

I was successful and I would like to publish it on Lutris, but I am unsure of which other fields I need to change in the script in order for it not to clash with pre-existing scripts on the website.

To be specific, I changed:

  • Installer URLs
  • link to D8VK (now deprecated, merged with the DVXK project)
  • A couple of game paths

Here’s the script:

Full (EU) with D8VK
description: Full install of the US region version of PlayOnline and Final Fantasy
  XI with all expansions. Also configures D8VK for better performance
game_slug: final-fantasy-xi-online
gogslug: ''
humblestoreid: ''
installer_slug: final-fantasy-xi-online-full-us-version-with
name: FINAL FANTASY XI Online
notes: The graphics settings for the game are configured with a separate utility found
  at "C:\Program Files (x86)\PlayOnline\SquareEnix\FINAL FANTASY XI\ToolsEU\FINAL
  FANTASY XI Config.exe" which can be reached via the "FINAL FANTASY XI Online Configuration"
  launch config.
runner: wine
script:
  files:
  - installer_part1: https://gdl.square-enix.com/ffxi/download/eu/FFXIFullSetup_EU.part1.exe
  - installer_part2: https://gdl.square-enix.com/ffxi/download/eu/FFXIFullSetup_EU.part2.rar
  - installer_part3: https://gdl.square-enix.com/ffxi/download/eu/FFXIFullSetup_EU.part3.rar
  - installer_part4: https://gdl.square-enix.com/ffxi/download/eu/FFXIFullSetup_EU.part4.rar
  - installer_part5: https://gdl.square-enix.com/ffxi/download/eu/FFXIFullSetup_EU.part5.rar
  - d8vk: https://github.com/doitsujin/dxvk/releases/download/v2.5.1/dxvk-2.5.1.tar.gz
  game:
    exe: drive_c/Program Files (x86)/PlayOnline/SquareEnix/FINAL FANTASY XI/polboot.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/Program Files (x86)/PlayOnline/SquareEnix/PlayOnlineViewer/polcfg/polcfg.exe
      name: PlayOnline Configuration
    - exe: $GAMEDIR/drive_c/Program Files (x86)/PlayOnline/SquareEnix/FINAL FANTASY
        XI/ToolsEU/FINAL FANTASY XI Config.exe
      name: FINAL FANTASY XI Online Configuration
    prefix: $GAMEDIR
  installer:
  - task:
      install_mono: true
      name: create_prefix
  - execute:
      args: -s -t "$CACHE" "$installer_part1" "$installer_part2" "$installer_part3"
        "$installer_part4" "$installer_part5"
      description: Preparing installer archive
      file: ln
  - task:
      args: -s
      description: Extracting installer archive
      executable: $CACHE/FFXIFullSetup_EU.part1.exe
      name: wineexec
  - task:
      args: -q -i "$CACHE/FFXIFullSetup_EU/PlayOnline/PlayOnlineViewer.msi"
      description: Installing PlayOnline
      executable: msiexec
      name: wineexec
  - task:
      args: -q -i "$CACHE/FFXIFullSetup_EU/FINAL_FANTASY_XI/FINAL_FANTASY_XI.msi"
      description: Installing Final Fantasy XI
      executable: msiexec
      name: wineexec
  - extract:
      description: Extracting d8vk v1.0
      dst: $CACHE/d8vk
      file: d8vk
  - copy:
      description: Installing d8vk v1.0
      dst: $GAMEDIR/drive_c/Program Files (x86)/PlayOnline/SquareEnix/FINAL FANTASY
        XI/
      src: $CACHE/d8vk/x32/
  system:
    env:
      DXVK_HUD: fps
  wine:
    dxvk: false
    esync: false
    overrides:
      d3d8: n,b
    vkd3d: false
slug: final-fantasy-xi-online-full-us-version-with
steamid: 23360
version: Full (US) Version with D8VK
year: 2003

Similarly, I also slightly altered the Windower Live 4 script, which install useful software for dealing with the game:

Windows Live 4 (EU)
description: Installs the Windower 4 third-party launcher and performs required Winetricks
  configurations.
game_slug: final-fantasy-xi-online
gogslug: ''
humblestoreid: ''
installer_slug: final-fantasy-xi-online-windower-4-live
name: FINAL FANTASY XI Online
notes: This installer works best with the "Full (US) Version with D8VK" version. For
  information about configuring Windower 4, see https://www.windower.net
runner: wine
script:
  custom-name: Windower 4
  files:
  - windower: https://update.windower.net/live/Windower.exe
  game:
    exe: $WINDOWER/Windower.exe
    launch_configs:
    - exe: $GAMEDIR/$SE_DIR/PlayOnlineViewer/polcfg/polcfg.exe
      name: PlayOnline Configuration
    - exe: $GAMEDIR/$SE_DIR/FINAL FANTASY XI/ToolsEU/FINAL FANTASY XI Config.exe
      name: FINAL FANTASY XI Online Configuration
    prefix: $GAMEDIR
  installer:
  - task:
      app: dotnet462
      description: 'Winetricks: Installing dotnet462'
      name: winetricks
  - task:
      app: gdiplus
      description: 'Winetricks: Installing gdiplus'
      name: winetricks
  - copy:
      description: Installing Windower 4
      dst: $WINDOWER
      src: windower
  - copy:
      description: Updating D8VK DLL location for Windower
      dst: $GAMEDIR/$SE_DIR/PlayOnlineViewer
      src: $GAMEDIR/$SE_DIR/FINAL FANTASY XI/d3d8.dll
  requires: final-fantasy-xi-online
  variables:
    SE_DIR: drive_c/Program Files (x86)/PlayOnline/SquareEnix
    WINDOWER: drive_c/Windower4
slug: final-fantasy-xi-online-windower-4-live
steamid: 23360
version: Windower 4 Live
year: 2003

Thank you in advance for anyone who could help out.

Hi,

Pretty much - you will be able to see from the versions there

  • The game_slug stays the same, and the installer_slug is something new.
  • Try and keep the description a sensible length
  • Notes have a bit more space

Login to Lutris.net and use the web form on the game (bottom option that says “write a new installer” to submit it as a new version, then poke the moderators in a few weeks.
Give them time for Christmas and New Year hangovers :slight_smile:

Ouch. Does the most recent installer still need DirectX 8? So much for updates… :stuck_out_tongue:
Gamescope would probably be a better windower.