Installer battlefield-1942-internet-archives

files:
- file1: 'N/A: Select BattleField 1942 setup installer downloaded from https://archive.org/download/battlefield1942thecompletecollectionwindows10compatible'
- patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Battlefield%201942%20-%20Complete%20Edition/bf1942_patch.tar.xz
game:
  exe: drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    description: Installing Battlefield 1942
    executable: file1
    name: wineexec
- copy:
    dst: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/backup
    src: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe
- extract:
    dst: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE
    file: patch
- input_menu:
    description: 'Choose the game''s language for menus:'
    id: LANG
    options:
    - English: English
    - French: French
    - Italian: Italian
    - Spanish: Spanish
    - German: German
    - Chinese: Chinese
    - Korean: Korean
    - Japanese: Japanese
    preselect: English
- task:
    key: Language
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\EA Games\Battlefield 1942
    type: REG_SZ
    value: $INPUT_LANG
- execute:
    command: cd "$GAMEDIR//drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/Mods/bf1942/Settings/Profiles/Custom";
      sed -i -e s/1024\ 768/$RESOLUTION_WIDTH\ $RESOLUTION_HEIGHT/ Video.con;
description: Play "Battlefield 1942 - Complete Edition" on Linux!
game_slug: battlefield-1942
gogslug: ''
humblestoreid: ''
installer_slug: battlefield-1942-internet-archives
name: Battlefield 1942
notes: "- Before to launch this script, you have to download \"Battlefield 1942 complete\
  \ edition\" setup installer at https://archive.org/download/battlefield1942thecompletecollectionwindows10compatible\r\
  \n- Multilingual: you will be able to choose your preferred language for the menus\
  \ between English (default), French, Italian, Spanish, German, Chinese, Korean and\
  \ Japanese\r\n- Game executable patched to enable connection to the new master server:\
  \ master.bf1942.org"
runner: wine
script:
  files:
  - file1: 'N/A: Select BattleField 1942 setup installer downloaded from https://archive.org/download/battlefield1942thecompletecollectionwindows10compatible'
  - patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Battlefield%201942%20-%20Complete%20Edition/bf1942_patch.tar.xz
  game:
    exe: drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      description: Installing Battlefield 1942
      executable: file1
      name: wineexec
  - copy:
      dst: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/backup
      src: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe
  - extract:
      dst: $GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE
      file: patch
  - input_menu:
      description: 'Choose the game''s language for menus:'
      id: LANG
      options:
      - English: English
      - French: French
      - Italian: Italian
      - Spanish: Spanish
      - German: German
      - Chinese: Chinese
      - Korean: Korean
      - Japanese: Japanese
      preselect: English
  - task:
      key: Language
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\EA Games\Battlefield 1942
      type: REG_SZ
      value: $INPUT_LANG
  - execute:
      command: cd "$GAMEDIR//drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/Mods/bf1942/Settings/Profiles/Custom";
        sed -i -e s/1024\ 768/$RESOLUTION_WIDTH\ $RESOLUTION_HEIGHT/ Video.con;
slug: battlefield-1942-internet-archives
steamid: null
version: Internet Archives
year: 2002
{
  "game_slug": "battlefield-1942",
  "version": "Internet Archives",
  "description": "Play \"Battlefield 1942 - Complete Edition\" on Linux!",
  "notes": "- Before to launch this script, you have to download \"Battlefield 1942 complete edition\" setup installer at https://archive.org/download/battlefield1942thecompletecollectionwindows10compatible\r\n- Multilingual: you will be able to choose your preferred language for the menus between English (default), French, Italian, Spanish, German, Chinese, Korean and Japanese\r\n- Game executable patched to enable connection to the new master server: master.bf1942.org",
  "name": "Battlefield 1942",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "battlefield-1942-internet-archives",
  "installer_slug": "battlefield-1942-internet-archives",
  "script": {
    "files": [
      {
        "file1": "N/A: Select BattleField 1942 setup installer downloaded from https://archive.org/download/battlefield1942thecompletecollectionwindows10compatible"
      },
      {
        "patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Battlefield%201942%20-%20Complete%20Edition/bf1942_patch.tar.xz"
      }
    ],
    "game": {
      "exe": "drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Installing Battlefield 1942",
          "executable": "file1",
          "name": "wineexec"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/backup",
          "src": "$GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/BF1942.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GAMES/BATTLEFIELD_1942_COMPLETE",
          "file": "patch"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language for menus:",
          "id": "LANG",
          "options": [
            {
              "English": "English"
            },
            {
              "French": "French"
            },
            {
              "Italian": "Italian"
            },
            {
              "Spanish": "Spanish"
            },
            {
              "German": "German"
            },
            {
              "Chinese": "Chinese"
            },
            {
              "Korean": "Korean"
            },
            {
              "Japanese": "Japanese"
            }
          ],
          "preselect": "English"
        }
      },
      {
        "task": {
          "key": "Language",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\EA Games\\Battlefield 1942",
          "type": "REG_SZ",
          "value": "$INPUT_LANG"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR//drive_c/GAMES/BATTLEFIELD_1942_COMPLETE/Mods/bf1942/Settings/Profiles/Custom\"; sed -i -e s/1024\\ 768/$RESOLUTION_WIDTH\\ $RESOLUTION_HEIGHT/ Video.con;"
        }
      }
    ]
  }
}
Back to game