Tomb Raider Chronicles

Informations

Creator Nachricht
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 8543
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : (2009-12-22 21-00)
# Last revision : (2009-12-22 21-00)
# Wine version used : Fedora 12
# Distribution used to test : 1.1.35
# Author : NSLW
# Licence : Retail

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

TITLE="Tomb Raider Chronicles"
PREFIX="TRV"
WORKINGWINEVERSION="1.1.35"

POL_SetupWindow_make_icon_for_shortcut()
{
convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
}

#procedure for patching TombRaider V
patch_trV()
{
POL_SetupWindow_browse "Select patch file" "$TITLE" ""
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine "$APP_ANSWER"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Patch for $TITLE has been installed successfully" "$TITLE"
}

wget http://upload.wikimedia.org/wikipedia/en/5/5f/TombRaiderChronicles.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$TITLE" "Eidos Interactive" "www.eidos.com" "NSLW" "$PREFIX" 

POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

#asking about patching or updating Wine version
if [ -e "$REPERTOIRE/configurations/installed/$TITLE" ]; then
POL_SetupWindow_menu "What do you want to do?" "Actions" "Patch game" "~"

if [ "$APP_ANSWER" == "Patch game" ]; then
patch_trV
POL_SetupWindow_Close
exit
fi
fi

POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom

cd "$CDROM"
CHECK=$(find . -iwholename ./PCTomb5.exe)
if [ "$CHECK" == "" ]; then
CHECK="PCTomb5.exe"
fi

POL_SetupWindow_prefixcreate
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
PROGRAMFILES=${PROGRAMFILES:3}
 
#adding CD-ROM as drive e: to winecfg
cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" e:

cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"e:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg

sleep 5

POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
cd "$CDROM"
wine "Setup.exe"
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Core Design/Tomb Raider Chronicles" "PCTomb5.exe" "" "$TITLE" "" ""
POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_pctomb5.0.xpm"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Core Design/Tomb Raider Chronicles" "PCTomb5.exe" "" "Setup $TITLE" "" "setup"
POL_SetupWindow_make_icon_for_shortcut "Setup $TITLE" "*_pctomb5.0.xpm"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "Setup $TITLE"

cd "$REPERTOIRE/ressources"
#downloading XP patch
if [ ! -e "tr5updateXP.zip" ]; then
POL_SetupWindow_download "PlayOnLinux is downloading tr5updateXP.zip" "Downloading patch" "http://s1.sigmirror.com/files/48911_8msrd/tr5updateXP.zip"
fi

#unpacking XP patch to temp
cd "$WINEPREFIX/drive_c/windows/temp/"
unzip "$REPERTOIRE/ressources/tr5updateXP.zip"

#installing XP patch
POL_SetupWindow_wait_next_signal "Installation of XP patch in progress..." "$TITLE"
wine "tr5update.exe"
POL_SetupWindow_detect_exit

POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Nachricht
anass Thursday 30 October 2014 at 10:19
anass Anonymous

Nachricht

error starting  Tomb Raider Chronicles

this is the debug output ...

[10/30/14 11:07:04] - Running wine-1.1.35 PCTomb5.exe (Working directory : /home/anass/.PlayOnLinux/wineprefix/TRV/drive_c/Program Files/Core Design/Tomb Raider Chronicles)
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00010000-00110000
wine: Module not found
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00010000-00110000
wine: Unhandled page fault on read access to 0x0000000a at address 0x434843 (thread 0009), starting debugger...
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range 00010000-00110000
Unhandled exception: page fault on read access to 0x0000000a in 32-bit code (0x00434843).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:00434843 ESP:0032fd38 EBP:0032fea8 EFLAGS:00010202(  R- --  I   - - - )
 EAX:00000038 EBX:00000000 ECX:00000000 EDX:00000000
 ESI:7ed6d880 EDI:004e59e0
Stack dump:
0x0032fd38:  00508418 0032fd50 004e59e0 7ed6d880
0x0032fd48:  0032fea8 00000000 00000038 00518da0
0x0032fd58:  00008080 00000000 00518da8 008000ff
0x0032fd68:  004d1d89 7ffdf000 0032fea8 7b8b27f8
0x0032fd78:  7bc3450f 7ffdf000 7b8b27f8 00000824
0x0032fd88:  00000000 00000077 7b8b27f8 0032fda0
Backtrace:
=>0 0x00434843 in pctomb5 (+0x34843) (0x0032fea8)
  1 0x7b876854 in kernel32 (+0x56854) (0x0032fee8)
...skipped 82 line(s)...
00000008 (D) C:\Program Files\Core Design\Tomb Raider Chronicles\PCTomb5.exe
    00000009    0 <==
0000000e
    00000016    0
    00000015    0
    00000014    0
    00000010    0
    0000000f    0
00000011
    00000017    0
    00000013    0
    00000012    0
0000001a
    0000001b    0
Backtrace:
=>0 0x00434843 in pctomb5 (+0x34843) (0x0032fea8)
  1 0x7b876854 in kernel32 (+0x56854) (0x0032fee8)
  2 0x7bc6ea54 call_thread_func+0xc() in ntdll (0x0032fef8)
  3 0x7bc6ec20 call_thread_entry_point+0x70() in ntdll (0x0032ffc8)
  4 0x7bc4a86a in ntdll (+0x3a86a) (0x0032ffe8)

Antworten

Saturday 1 November 2014 at 12:16
Wine 1.1.35? The script looks awfully obsolete