The forum

[Script] Street Wars: Constructor

Author Replies
DriverPT Sunday 17 March 2013 at 17:53
DriverPTAnonymous

Hello,

I've tried creating an install Script for Street Wars: Constructor. I know the installer is kinda weird, contributions are welcome :P.

For now here's my work:

[code language=playonlinux]######################################################################
#!/bin/bash
# Date : (2013-03-17 14:00)
# Last revision : (2013-03-17 14:00)
# Wine version used : 1.5.22
# Distribution used to test : Ubuntu 12.04 LTS x64
# Author : driverpt
# Licence : Retail
# Only For : http://www.playonlinux.com
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Street Wars: Constructor"
WINEVERSION="1.5.25"
EDITOR="Studio 3"
EDITOR_URL=""
PREFIX="StreetWars"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"


# Create and setup wine prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
POL_System_SetArch "x86"
Set_OS "win98"
if [ "$POL_SELECTED_FILE" ]; then
        SetupIs="$POL_SELECTED_FILE"
else
        POL_SetupWindow_InstallMethod "CD"
         if [ "$INSTALL_METHOD" = "CD" ]; then
                POL_SetupWindow_cdrom
                POL_SetupWindow_check_cdrom "SETUP.exe"
                SetupIs="$CDROM/SETUP.exe"
        fi
# TODO: Add GOG Version here (named Mob Rule)
fi
POL_Wine start /unix "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "SW.exe"  "$TITLE"

POL_SetupWindow_Close
exit 0
######################################################################[/code]

Edited by petch

petch Sunday 17 March 2013 at 20:50
petch
Developer

Hi,
Are you using Chrome? Your script was all mangled, I had to edit your post to make it readable.
Well, not much to say about this script, simple and clean. Using POL_SetupWindow_InstallMethod with just one method is a bit strange though, sort of like an election in North Corea :D
Ronin DUSETTE Monday 18 March 2013 at 17:07
Ronin DUSETTE
Admin

sort of like an election in North Corea

Quote


hahahaha. nice one.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
DriverPT Sunday 7 April 2013 at 17:04
DriverPTAnonymous

Hi,
Are you using Chrome? Your script was all mangled, I had to edit your post to make it readable.
Well, not much to say about this script, simple and clean. Using POL_SetupWindow_InstallMethod with just one method is a bit strange though, sort of like an election in North Corea :D

Quote from petch

Hello, sorry for the late late response.
Yeah, i'm using Chrome. I know, i tried submitting of every possible way and the script kept all mangled, so i gave up... :(.

Sorry if my script is a bit "newbish". Only reason i have the Install Method with only one option, is to support the GOG.com version of Street Wars/Mob Rule, which i haven't yet purchased. But as soon as i purchase, i'll add it to the script.

PS.: Like the North Corea quote :P

Cheers
steve723 Wednesday 31 July 2013 at 19:51
steve723Anonymous

Actually North Korea is spelled with the letter k. Same for our friends in South Korea. Its the Korean language just like in spanish Jesus is spelled hesus. Great joke though. :)
Ronin DUSETTE Wednesday 31 July 2013 at 20:05
Ronin DUSETTE
Admin


Hello, sorry for the late late response.Yeah, i'm using Chrome. I know, i tried submitting of every possible way and the script kept all mangled, so i gave up... :(.Cheers

Quote from DriverPT


I just use firefox whenever I am on this site. It doesnt (usually) do that formatting thing. Chrome does it all of the time.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
steve723 Wednesday 31 July 2013 at 20:47
steve723Anonymous

Lets see, I hate IE, don't like Safari, don't like Google Chrome and use Firefox except when I am checking out other web browsers. I forgot, I think Rekonq is to basic.
Ronin DUSETTE Wednesday 31 July 2013 at 20:55
Ronin DUSETTE
Admin

I use chrome out of habit and it keeps all of my stuff nice and tidy between my systems, but other than that, Ill only use FF unless forced to use IE by my job.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts