The forum

[script] Carom3D

(non fonctionnel pour l'instant)

Author Replies
ddelec24 Friday 26 June 2009 at 10:54
ddelec24

Hello POLiens :)

voulant rejouer à Carom3D (le jeu de billard le plus réaliste sur PC que j'ai trouvé) j'ai fait un script se basant sur les recommandations de son appdb (version plus ancienne de Carom3D que celle actuelle)

voilà donc le script qui devrait ressembler au fonctionnement qui vaut "gold":

#!/bin/bash
# Date : (2009-06-23 12-30)
# Last revision : (2009-06-26 10-30)
# Wine version used : 1.1.7
# Distribution used to test : Ubuntu Jaunty
# Author : DDelec24
# Licence : Free
 
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Carom3D"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_DX9_DL="Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_DX9_INSTALL="L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_WINETRICKS="Installation du framework .NET version 1.1"
LNG_MFC42_DL="Téléchargement de mfc42..."
LNG_MEMSIZE="Quelle est la taille de la mémoire de votre carte graphique?"
LNG_TITLE_MEMSIZE="Taille de la mémoire"
LNG_PATHEXE="Ou est le fichier d'installation de Carom3D?"
LNG_WAITINSTALL="Installation de Carom3D en cours..."
else
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_WINETRICKS="Installation of Framework .NET v1.1"
LNG_MFC42_DL="Downloading mfc42..."
LNG_MEMSIZE="What's your graphical card memory size?"
LNG_TITLE_MEMSIZE="Memory Size"
LNG_PATHEXE="Where is the installation file of Carom3D?"
LNG_WAITINSTALL="Installation of Carom3D in progress..."
fi
 
 
#Presentation
cd "$REPERTOIRE/tmp"
POL_SetupWindow_Init "" ""
POL_SetupWindow_presentation "$TITLE" "IsGames" "http://www.carom3d.com/" "DDelec24" "$TITLE"
 
#Installation of Wine
POL_SetupWindow_install_wine "1.1.7"
 
select_prefix "$REPERTOIRE/wineprefix/$TITLE/"
POL_SetupWindow_prefixcreate
 
#downloading needed files (dll, directx, .net)
cd "$REPERTOIRE/ressources"
if [ ! -e $REPERTOIRE/ressources/ ]; then
mkdir -p $REPERTOIRE/ressources/
fi
if [ ! -e $REPERTOIRE/ressources/mfc42.dll.zip ]; then
POL_SetupWindow_download "$LNG_MFC42_DL" "$TITLE" "http://www.dllbank.com/zip/m/mfc42.dll.zip"
fi
if [ ! -e $REPERTOIRE/ressources/D3DX9_XX_dll_\\(32Bit_All\\).zip ]; then
POL_SetupWindow_download "$LNG_DX9_DL" "$TITLE" "http://mulx.playonlinux.com/file_pol/D3DX9_XX_dll_(32Bit_All).zip"
fi

cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/ressources/D3DX9_XX_dll_\\(32Bit_All\\).zip
wine c:\\\\windows\\\\temp\\\\D3DX9_XX_dll_\\(32Bit_All\\)\\\\Install\\\\DXSETUP.exe

#downloading winetricks
if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "bf24bc6d84a40a836d7ce6de41ff04f910b34434" ]; then
wget http://winezeug.googlecode.com/svn/trunk/winetricks --output-document=winetricks
fi
POL_SetupWindow_wait_next_signal "$LNG_WINETRICKS" "$LNG_NWINETRICKS"
#installing .NET Framework 1.1
bash winetricks -q dotnet11
POL_SetupWindow_detect_exit

cd $WINEPREFIX/drive_c/windows/system32/
unzip $REPERTOIRE/ressources/mfc42.dll.zip
regsvr32 mfc42.dll

cat << EOF > "$REPERTOIRE/tmp/dlloverride.reg"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]"d3d8"="builtin"
"d3d9"="builtin"
"d3dim"="native"
"d3drm"="native"
"d3dx8"="native"
"d3dx9_24"="native"
"d3dx9_25"="native"
"d3dx9_26"="native"
"d3dx9_27"="native"
"d3dx9_28"="native"
"d3dx9_29"="native"
"d3dx9_30"="native"
"d3dx9_31"="native"
"d3dx9_32"="native"
"d3dx9_33"="native"
"d3dx9_34"="native"
"d3dx9_35"="native"
"d3dx9_36"="native"
"d3dxof"="native"
"dciman32"="native"
"ddrawex"="native"
"devenum"="native"
"dinput"="builtin"
"dinput8"="builtin"
"dmband"="native"
"dmcompos"="native"
"dmime"="native"
"dmloader"="native"
"dmscript"="native"
"dmstyle"="native"
"dmsynth"="native"
"dmusic"="native"
"dmusic32"="native"
"dnsapi"="native"
"dplay"="native"
"dplayx"="native"
"dpnaddr"="native"
"dpnet"="native"
"dpnhpast"="native"
"dpnlobby"="native"
"dsound"="builtin"
"dswave"="native"
"dxdiagn"="native"
"mscoree"="native"
"msdmo"="native"
"qcap"="native"
"quartz"="native"
"streamci"="native" 
EOF
regedit "$REPERTOIRE/tmp/dlloverride.reg" # apply reg patch

# Carom3D installation
cd "$HOME"
POL_SetupWindow_browse "$LNG_PATHEXE" "$TITLE"
POL_SetupWindow_wait_next_signal "$LNG_WAITINSTALL" "$TITLE"
cd "$REPERTOIRE/tmp"
unzip "$APP_ANSWER"
wine "NeoSetup.exe"
POL_SetupWindow_detect_exit
 
#memory size
POL_SetupWindow_menu_list "$LNG_MEMSIZE" "$LNG_TITLE_MEMSIZE" "32 64 128 256 384 512 768 1024 2048" " "
VMS="$APP_ANSWER"
 
 #Configuration of Wine
Set_OS winxp
#Set_Managed "On"
#Set_DXGrab "On"
Set_Desktop "On" "800" "600"
Set_SoundDriver "alsa"
Set_WineVersion_Assign "1.1.7" "$TITLE"
Use_WineVersion "1.1.7"

POL_SetupWindow_make_shortcut "$TITLE" "$PROGRAMFILES/Neoact/$TITLE" "carom.exe" "" "$TITLE"

POL_SetupWindow_Close
exit




merci à celui ou celle qui m'aidera à faire fonctionner ce jeu et le rendre officiel :D

Edited by ddelec24


- venez sur irc!
ddelec24 Sunday 5 July 2009 at 19:24
ddelec24

up!

voila j'ai amélioré le script, rien d'anormal à l'installation, mais quand il est lancé, rien dans la fenêtre...

si quelqu'un à une idée je suis preneur jai retravaillé dessus fait plein de test, mais rien :(

- venez sur irc!

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 dmcayonlinux.com