Tomb Raider III Adventures of Lara Croft

Informations

Creator Message
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 10901
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 III Adventures of Lara Croft"
PREFIX="TRIII"
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 III
patch_trIII()
{
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/7/77/TombRaiderIII.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_trIII
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 ./tomb3.exe)
if [ "$CHECK" == "" ]; then
CHECK="tomb3.exe"
fi

POL_SetupWindow_check_cdrom "$CHECK"

if [ ! -d "$REPERTOIRE/wineprefix/$PREFIX" ]; then
POL_SetupWindow_prefixcreate
fi

#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 III" "Tomb3.exe" "" "$TITLE" "" ""
POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_tomb3.0.xpm"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Core Design/Tomb Raider III" "Tomb3.exe" "" "Setup $TITLE" "" "setup"
POL_SetupWindow_make_icon_for_shortcut "Setup $TITLE" "*_tomb3.0.xpm"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "Setup $TITLE"

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

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

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

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

Contributions

Filters:

Contribute
Member Message
HD Friday 15 April 2016 at 4:51
HD Anonymous

Message

this scripts is Unable to find the CDROM.

 

also I tried to Install it as (Install an non-listed program)

 

using Wine version 1.5.28-TombRaider

The program is Installed but it crashed

logs

 

Unhandled exception: privileged instruction in 32-bit code (0x0048eaa1).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0048eaa1 ESP:0033fd38 EBP:0033fdb8 EFLAGS:00210206(  R- --  I   - -P- )
 EAX:0000000f EBX:00030800 ECX:00802009 EDX:178bfbff
 ESI:00400000 EDI:006cedd0
Stack dump:
0x0033fd38:  006cedd0 00400000 0033fdb8 0033fd58
0x0033fd48:  00000000 756f6d79 6e6f6e00 55504373
0x0033fd58:  006cf24d 00400000 00000000 00000000
0x0033fd68:  00000001 004b8b76 004cefd0 00008000
0x0033fd78:  00000040 000001a4 006cf24d 00400000
0x0033fd88:  0033fe60 00000000 68747541 69746e65
Backtrace:
=>0 0x0048eaa1 in tomb3 (+0x8eaa1) (0x0033fdb8)
  1 0x004b284b in tomb3 (+0xb284a) (0x0033fe60)
  2 0x7b86058c call_process_entry+0xb() in kernel32 (0x0033fe78)
  3 0x7b86176b in kernel32 (+0x5176a) (0x0033feb8)
  4 0x7bc786c0 call_thread_func_wrapper+0xb() in ntdll (0x0033fed8)
  5 0x7bc7b5cd call_thread_func+0x7c() in ntdll (0x0033ffa8)
  6 0x7bc7869e RtlRaiseException+0x21() in ntdll (0x0033ffc8)
  7 0x7bc4df2e call_dll_entry_point+0x4ed() in ntdll (0x0033ffe8)
  8 0xf761d47d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  9 0xf761d53b wine_switch_to_stack+0x2a() in libwine.so.1 (0xffee85d8)
  10 0x7bc53a07 LdrInitializeThunk+0x3a6() in ntdll (0xffee8648)
  11 0x7b867d50 __wine_kernel_init+0xbbf() in kernel32 (0xffee9558)
  12 0x7bc540d3 __wine_process_init+0x182() in ntdll (0xffee95e8)
  13 0xf761b0c2 wine_init+0x2a1() in libwine.so.1 (0xffee9648)
  14 0x7bf00e7b main+0x7a() in <wine-loader> (0xffee9a88)
  15 0xf743fa83 __libc_start_main+0xf2() in libc.so.6 (0x00000000)
0x0048eaa1: movl    %cr4,%eax
Modules:
Module    Address            Debug info    Name (78 modules)
PE      340000-  357000    Deferred        winstr
PE      360000-  37d000    Deferred        dec130
PE      380000-  3a2000    Deferred        edec
PE      3b0000-  3ca000    Deferred        winsdec
PE      400000-  6ff000    Export          tomb3
PE    10000000-10013000    Deferred        winplay
ELF    7b800000-7b916000    Dwarf           kernel32<elf>
  \-PE    7b810000-7b916000    \               kernel32
ELF    7bc00000-7bcd8000    Dwarf           ntdll<elf>
  \-PE    7bc10000-7bcd8000    \               ntdll
ELF    7bf00000-7bf03000    Dwarf           <wine-loader>
ELF    7dd8e000-7ddb2000    Deferred        imm32<elf>
  \-PE    7dd90000-7ddb2000    \               imm32
ELF    7ddb2000-7dde8000    Deferred        uxtheme<elf>
  \-PE    7ddc0000-7dde8000    \               uxtheme
ELF    7dde8000-7ddee000    Deferred        libxfixes.so.3
ELF    7ddee000-7ddf9000    Deferred        libxcursor.so.1
ELF    7ddf9000-7de09000    Deferred        libxi.so.6
ELF    7de09000-7de0d000    Deferred        libxcomposite.so.1
ELF    7de0d000-7de18000    Deferred        libxrandr.so.2
ELF    7de18000-7de23000    Deferred        libxrender.so.1
ELF    7de23000-7de29000    Deferred        libxxf86vm.so.1
ELF    7de29000-7de2d000    Deferred        libxinerama.so.1
ELF    7de2d000-7de34000    Deferred        libxdmcp.so.6
ELF    7de34000-7de38000    Deferred        libxau.so.6
ELF    7de38000-7de5a000    Deferred        libxcb.so.1
ELF    7de5a000-7de60000    Deferred        libuuid.so.1
ELF    7de60000-7df94000    Deferred        libx11.so.6
ELF    7df94000-7dfa7000    Deferred        libxext.so.6
ELF    7dfa7000-7dfc1000    Deferred        libice.so.6
ELF    7dfc1000-7dfca000    Deferred        libsm.so.6
ELF    7dfed000-7e080000    Deferred        winex11<elf>
  \-PE    7e000000-7e080000    \               winex11
ELF    7e0f8000-7e121000    Deferred        libexpat.so.1
ELF    7e121000-7e15c000    Deferred        libfontconfig.so.1
ELF    7e15c000-7e184000    Deferred        libpng12.so.0
ELF    7e184000-7e198000    Deferred        libz.so.1
ELF    7e198000-7e238000    Deferred        libfreetype.so.6
ELF    7e25b000-7e363000    Deferred        opengl32<elf>
  \-PE    7e280000-7e363000    \               opengl32
ELF    7e363000-7e49f000    Deferred        wined3d<elf>
  \-PE    7e370000-7e49f000    \               wined3d
ELF    7e49f000-7e514000    Deferred        ddraw<elf>
  \-PE    7e4b0000-7e514000    \               ddraw
ELF    7e514000-7e53e000    Deferred        msacm32<elf>
  \-PE    7e520000-7e53e000    \               msacm32
ELF    7e53e000-7e5f3000    Deferred        winmm<elf>
  \-PE    7e550000-7e5f3000    \               winmm
ELF    7e5f3000-7e63c000    Deferred        dsound<elf>
  \-PE    7e600000-7e63c000    \               dsound
ELF    7e63c000-7e6be000    Deferred        rpcrt4<elf>
  \-PE    7e650000-7e6be000    \               rpcrt4
ELF    7e6be000-7e7fb000    Deferred        ole32<elf>
  \-PE    7e6e0000-7e7fb000    \               ole32
ELF    7e7fb000-7e86a000    Deferred        advapi32<elf>
  \-PE    7e810000-7e86a000    \               advapi32
ELF    7e86a000-7e981000    Deferred        gdi32<elf>
  \-PE    7e880000-7e981000    \               gdi32
ELF    7e981000-7eadb000    Deferred        user32<elf>
  \-PE    7e990000-7eadb000    \               user32
ELF    7eadb000-7ebe0000    Deferred        comctl32<elf>
  \-PE    7eae0000-7ebe0000    \               comctl32
ELF    7ebe0000-7ec2a000    Deferred        dinput<elf>
  \-PE    7ebf0000-7ec2a000    \               dinput
ELF    7ec2a000-7ec37000    Deferred        libnss_files.so.2
ELF    7ec37000-7ec43000    Deferred        libnss_nis.so.2
ELF    7ec43000-7ec5c000    Deferred        libnsl.so.1
ELF    7ec5c000-7ec65000    Deferred        libnss_compat.so.2
ELF    7ef97000-7efdd000    Deferred        libm.so.6
ELF    7efe7000-7f000000    Deferred        version<elf>
  \-PE    7eff0000-7f000000    \               version
ELF    f7421000-f7426000    Deferred        libdl.so.2
ELF    f7426000-f75d4000    Dwarf           libc.so.6
ELF    f75d4000-f75f0000    Deferred        libpthread.so.0
ELF    f75f7000-f7600000    Deferred        librt.so.1
ELF    f7614000-f7757000    Dwarf           libwine.so.1
ELF    f7759000-f777b000    Deferred        ld-linux.so.2
ELF    f777d000-f777e000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
    0000001f    0
    0000001e    0
    00000014    0
    00000010    0
    0000000f    0
00000012 winedevice.exe
    0000001d    0
    0000001a    0
    00000017    0
    00000013    0
0000001b plugplay.exe
    00000021    0
    00000020    0
    0000001c    0
0000002b explorer.exe
    0000002c    0
0000002d (D) C:\Program Files\Core Design\Tomb Raider III\tomb3.exe
    0000002e    0 <==
System information:
    Wine build: wine-1.5.28
    Platform: i386
    Host system: Linux
    Host version: 3.19.0-32-generic

Replies