The forum

System Shock 2 Script

Author Replies
DemonHypnos Tuesday 27 January 2009 at 19:40
DemonHypnosAnonymous

Hello Everyone,

I have made a script for System Shock 2. Tell me if it works!

However, I have a question: In order to make it work correctly, a patch named SS2Fix can patch the game. But this patch includes an optional no-cd patch. Would I be allowed to include that? Thanks.


#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"



POL_SetupWindow_Init
POL_SetupWindow_presentation "System Shock 2" "Irrational Games" "http://www.irrationalgames.com/shock2/index.php" "DemonHypnos" "SS2"


select_prefix "$REPERTOIRE/wineprefix/SS2/"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

Set_OS win98

POL_SetupWindow_wait_next_signal "Installing System Shock 2...please wait patiently..." "System Shock 2"
wine "$CDROM/setup.exe"

POL_SetupWindow_detect_exit

echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > $REPERTOIRE/tmp/Res.reg
echo "\"Desktop\"=\"1024x768\"" >> $REPERTOIRE/tmp/Res.reg
regedit $REPERTOIRE/tmp/Res.reg
rm -f $REPERTOIRE/tmp/Res.reg

mv -r $WINEPREFIX/Sshock2/cutscenes $WINEPREFIX/Sshock2/cutsceness
POL_SetupWindow_reboot

POL_SetupWindow_make_shortcut "SS2" "Sshock2" "shock2.exe" "" "System Shock 2"


POL_SetupWindow_Close
exit

"Sleep is eminent!"
Ghostofkendo Friday 30 January 2009 at 16:07
Ghostofkendo

Hi DemonHypnos,

Your script seems correct
I didn't tested it because I don't have this game.

About the SS2Fix patch, if it was released by the developers of the game, I think it isn't a problem to include it.

Bye
DemonHypnos Friday 30 January 2009 at 23:14
DemonHypnosAnonymous

Actually, the problem is that the patch is not officially made by the developers. It was released by the community because the patch by the developers did not fix all the bugs.

If it's not official, I guess I'm not allowed to include it then?

"Sleep is eminent!"
Ghostofkendo Saturday 31 January 2009 at 23:18
Ghostofkendo

If it's not official, I guess I'm not allowed to include it then?

Quote from DemonHypnos
Indeed. Instead, add a message saying that the game needs to be patched in order to work well and that we can neither provide this patch nor the support about where to find it or how to apply it.

That's a pity but that's better than no script at all.

By the way, I didn't notice it yesterday but there is a simpler way to enable Wine's virtual desktop
The Set_Desktop function (near the bottom of this page of the documentation), here is its syntax: Set_Desktop "On" "1024" "768"

Bye
DemonHypnos Wednesday 11 March 2009 at 22:56
DemonHypnosAnonymous

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"



POL_SetupWindow_Init
POL_SetupWindow_presentation "System Shock 2" "Irrational Games" "http://www.irrationalgames.com/shock2/index.php" "DemonHypnos" "SS2"


select_prefix "$REPERTOIRE/wineprefix/SS2/"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

Set_OS win98

POL_SetupWindow_wait_next_signal "Installing System Shock 2...please wait patiently..." "System Shock 2"
wine "$CDROM/setup.exe"

POL_SetupWindow_detect_exit

echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > $REPERTOIRE/tmp/Res.reg
Set_Desktop "On" "1024" "768"
regedit $REPERTOIRE/tmp/Res.reg
rm -f $REPERTOIRE/tmp/Res.reg

mv -r $WINEPREFIX/Sshock2/cutscenes $WINEPREFIX/Sshock2/cutsceness
POL_SetupWindow_reboot

POL_SetupWindow_make_shortcut "SS2" "Sshock2" "shock2.exe" "" "System Shock 2"

POL_SetupWindow_message "A nocd crack is necessary to play this game." "System Shock 2"

POL_SetupWindow_Close
exit


All right everyone here is a working version of the script. Note that patching and nocd crack are necessary to play the game.

"Sleep is eminent!"
nesij Saturday 26 March 2011 at 23:35
nesijAnonymous

I wish you or someone added the latest "OFFICIAL PATCH" (2.23) it is perfectly legal.

I am a (very) new user and I had too much trouble installing this patch. Directory Error... :(

Going back to Wine for this one. Years ago when I tried linux I could install it with wine.

I knew where to get a no cd patch and how to install it that was never the problem for me. But my inability to update the default 1.15 patch was a deal breaker.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com