Вы находитесь здесь

Форум

[Script] Mall Tycoon 2

A rather boring game that some people might like

Автор Replies
MTres19 Saturday 26 December 2015 at 20:37
MTres19Anonymous

Description

Mall Tycoon 2 is a game in which the player attempts to build a successful mall, either in "Free Build" or "Scenario" mode.

Things done outside of Wine/POL

Nothing needed to be done outside of Wine.

Errors

The game crashes on exit, so it's neccessary to contain it to a virtual desktop, hence Set_Desktop and POL_Shortcut_QuietDebug.

Screenshots

Script

#!/bin/bash
# Date: 2015-12-26
# Wine version used: 1.8
# Distribution used to test: Kubuntu 15.10 (amd64)
# Author: MTres19

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Mall Tycoon 2"
PREFIX="MallTycoon2"
WINEVERSION="1.8"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Global Star Software" "www.globalstarsoftware.com" "MTres19" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_cdrom
MT2SETUP="$CDROM/install.exe"
POL_Wine_InstallCDROM "d"
POL_Wine "$MT2SETUP"

Set_Desktop "On" "1024" "768"
POL_Wine_reboot

POL_Shortcut "$PROGRAMFILES/Global Star Software/Mall Tycoon 2/Mall.exe" "$TITLE"
POL_Shortcut_Document "$TITLE" "$POL_USER_ROOT/wineprefix/MallTycoon2/drive_c/Program Files/Global Star Software/Mall Tycoon 2/data/help/eng/Help.htm"
POL_Shortcut_QuietDebug "$TITLE"

POL_SetupWindow_Close
exit 0
petch Saturday 26 December 2015 at 23:23
petch

Hi MTres19,
 
POL_Shortcut_Document "$TITLE" "$POL_USER_ROOT/wineprefix/MallTycoon2/drive_c/Program Files/Global Star Software/Mall Tycoon 2/data/help/eng/Help.htm"

 

Never hardcode "Program Files", it depends on locale; use $PROGRAMFILES instead

Also you can shorten "$POL_USER_ROOT/wineprefix/MallTycoon2" using "$WINEPREFIX"

I think that's about it for me...

 

 

MTres19 Saturday 26 December 2015 at 23:57
MTres19Anonymous

Okay, I'll submit it with that fixed soon.

Вы находитесь здесь: Index > Your creations. > [Script] Mall Tycoon 2