https://github.com/yancharkin/games_nebula_goglib_scripts
Scripts for Games Nebula (GOG games)
https://github.com/yancharkin/games_nebula_goglib_scripts
Last synced: 3 months ago
JSON representation
Scripts for Games Nebula (GOG games)
- Host: GitHub
- URL: https://github.com/yancharkin/games_nebula_goglib_scripts
- Owner: yancharkin
- License: gpl-3.0
- Created: 2017-03-05T20:22:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-15T11:49:37.000Z (almost 6 years ago)
- Last Synced: 2025-01-24T11:31:11.611Z (5 months ago)
- Language: Python
- Size: 257 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scripts for 'Games Nebula' (GOG games)
All linux native games, ScummVM and DOSBox wrappers, as well as some windows games should work out of the box. For games that doesn't work or require additional components there are two solutions in 'Games Nebula': **autosetup.ini** and **bash scripts**.
Also this repository contains gui utilities (written in python) for configurating and (sometimes) patching games.
## autosetup.ini
#### Available option:- **image** - image url. If option exists ‘Games Nebula’ will download this image and use it to represent game in you library.
- **native_exe** - path to main executable (linux) (1)
- **native_settings_exe** - path to configuration utility (linux) (1)
- **win_exe** - path to main executable (windows) (1)
- **win_settings_exe** - path to configuration utility (windows) (1)
- **winedlloverrides** - value of WINEDLLOVERRIDES environment variable can be set here
- **winetricks** - components to install with winetricks
- **dos_iso** - path to disk image (1)
- **dos_exe** - path to main executable (dos) (1)
- **dos_settings_exe** - path to configuration utility (dos) (1)
- **scummvm_name** - name used in ScummVM
- **scummvm_id** - id used in ScummVM
- **special** - additional commands (copy, move, remove files, etc.) (2)
- **win_reg1, win_reg2, etc.** - keys to add to registry (windows) (2). **This option(s) should be at the end!***(1) - path relative to 'game' directory*
*(2) - see existing examples*
## Bash scripts
If for some reason **autosetup.ini** is not enough, it's possible to use bash script. It will be executed during installation. See existing examples.
#### Environment variables that already set by 'Games Nebula':
- **$DOWNLOAD_DIR** - absolute path to download directory
- **$INSTALL_DIR** - absolute path to install directory
- **$WINE_PATH** - absolute path to directory containing wine binary or 'wine' if system version used
- **$GAME_NAME** - game id used by gog
- **$START_FILE** - absolute path to 'start.sh'
- **$START_GOG_FILE** - absolute path to 'start_gog.sh'
- **$START_GN_FILE** - absolute path to 'start_gn.sh'
- **$SETTINGS_FILE** - absolute path to 'settings.sh'
- **$ADDITIONS_FILE** - absolute path to 'additions.sh'
- **$DOSBOX_GAME_CONF** - absolute path to 'dosbox_game.conf'
- **$DOSBOX_SETTINGS_CONF** - absolute path to 'dosbox_settings.conf'
- **$NEBULA_DIR** - path to root directory of 'Games Nebula'
- **$WINEARCH** - value of WINEARCH environment variable#### Shell functions
Few simple functions that can be used in bash scripts.- **proc_timer** - simple timer, its main purpose to indicate that process didn't stalled.
- **get_arch** - return OS architecture.
- **get_common_file** - download file to "$DOWNLOAD_DIR/_distr/" using curl. Usable for downloading files required by more than one game.
- **get_file** - download file to "$DOWNLOAD_DIR/_distr/$GAME_NAME/". Usable for downloading game specific files (like patches or mods).
- **get_java_i586** - download 32-bit version of JRE to "$DOWNLOAD_DIR/_distr/" and unpack it to "$INSTALL_DIR/$GAME_NAME/jre".
- **get_java_x64** - download 64-bit version of JRE to "$DOWNLOAD_DIR/_distr/" and unpack it to "$INSTALL_DIR/$GAME_NAME/jre".
- **get_from_mega** - download file to "$DOWNLOAD_DIR/_distr/$GAME_NAME/" using megadl (megtools).
- **get_weidu** - download WeiDU and upack it to "$INSTALL_DIR/$GAME_NAME/game".
- **get_upx** - download UPX and upack it to "$INSTALL_DIR/$GAME_NAME/game".
- **setup_lavfilters** - download, unpack and setup LAVFilters (wine).Before using them you have to add to your script:
source "$NEBULA_DIR/scripts/shell_functions.sh"