Forums

[Script] Consortium

Auteur Réponses
aggelito Samedi 20 Février 2016 à 15:44
aggelito

Description

This is an installer script for the game Consortium by Interdimensional Games Inc.

Things done outside of PlayOnLinux

 Nothing has to be done outside of PlayOnLinux to make it work.

Errors

The installer throws a few errors while installing, but they should be safe to ignore.

Unfortunately the ending scene of the game is a bit broken in wine, so the screen will be completely black during this scene. The game is still completeable though. Instructions for finishing the game, and more information about how the game performs in wine i general, can be found in this thread: https://steamcommunity.com/app/264240/discussions/0/613956964585243941/.

The instructions for how to finish the game are:
"As soon as you see the thing you're approaching at the end of the game come into view, remove your hand from the mouse. When you find yourself in the void, tap the D key a couple quick times (you don't spawn perfectly lined up), and then just hold W."

I will provide these instructions and the link to the steam thread in the description of the game. The script also informs of this error during installation

Images

Screenshots

https://www.dropbox.com/s/1z7aqjklsh614ig/consortium_screenshot_1.jpg?dl=0

https://www.dropbox.com/s/7j7sbezrq7yoqh3/consortium_screenshot_2.jpg?dl=0

https://www.dropbox.com/s/kgc6x3oq0punl1e/consortium_screenshot_3.jpg?dl=0

Icons

22x22 -- https://www.dropbox.com/s/eapjdcu32iwghuh/consortium-22x22.png?dl=0

48x48 -- https://www.dropbox.com/s/9hv0d8vfiqj4ykn/consortium-48x48.png?dl=0

top -- https://www.dropbox.com/s/9hv0d8vfiqj4ykn/consortium-48x48.png?dl=0

left -- https://www.dropbox.com/s/yy6mke8qsij506h/left.png?dl=0

The Script

So here is the script! Since the images are not yet uploaded I haven't beenable to test the POL_GetSetupImages command, I think it is correct though.

#!/bin/bash
# Date : (2016-01-20 21-00)
# Wine version used : 1.8
# Distribution used to test : Xubuntu 15.10 x64
# Author : August Lindberg
# Program licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - Consortium: The Master Edition"
SHORTCUT_NAME="Consortium: The Master Edition"
PREFIX="Consortium_gog"
WORKING_WINE_VERSION="1.8"
GOGID="consortium_the_master_edition"
 
# Starting the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/consortium/top.jpg" "http://files.playonlinux.com/resources/setups/consortium/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2642
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Interdimensional Games Inc"\
 "http://interdimensionalgames.com" "August Lindberg" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Forcing x86 to make wmp9 work
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose setup file
POL_Call POL_GoG_setup "$GOGID"

# Warn for installer errors
POL_SetupWindow_message "$(eval_gettext "The installer will probably throw a\
 few errors during installation. This is nothing to worry about. Just press\
 'OK' when the errors appear and everything should work fine.\n\n\
 Also, be sure to use the default install path and to press 'Exit' instead\
 of 'Launch' when the game has finished installing.")" "$TITLE"

# Install game
POL_Call POL_GoG_install

## Fix for this game
# Create file to remove Consortiums static FX. Without this fix the screen
# will be black while playing.
GAME_PATH=$(cd "$(dirname "$(find "$WINEPREFIX" -name "consortium.exe")")"; pwd -P)
echo 'r_signal_fx "0"' > "$GAME_PATH"/consortium/cfg/autoexec.cfg
echo 'host_writeconfig' >> "$GAME_PATH"/consortium/cfg/autoexec.cfg
## End fix

# Create game shortcut. A launch argument is added that calls the
# file created in the previous step.
POL_Shortcut "consortium.exe" "$SHORTCUT_NAME" "" "+exec autoexec.cfg"
 
# Warn about broken ending
POL_SetupWindow_message "$(eval_gettext "IMPORTANT: The ending scene of the\
 game is broken in wine, and because of this the screen will be black during\
 this scene. For information on how to finish the game, please visit the page\
 for this installer on playonlinux.com or this forum thread:\
 https://steamcommunity.com/app/264240/discussions/0/613956964585243941/.")"\
 "$TITLE"

POL_SetupWindow_Close
exit

 

plata Dimanche 15 Mai 2016 à 12:45
plata

Could you change the script such that you can select GOG or Steam?