You are here > Les forums > Your creations. > Dragon Age Origin sv ru pl es fr

Forums

Dragon Age Origin

New topic  - Reply
Author Replies
Berillions Thursday 26 November 2009 at 19:04 - [Quote]
Membre

Membre
Game Icon :


Script :
#!/bin/bash
# PlayOnLinux Game
# Date : (2009-02-14 20-25)
# Author : Berillions
# Distribution : Debian Sid
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
source "$PLAYONLINUX/lib/sources"
 
Title="Dragon Age Origin"
Updater="DaUpdater"
Prefix="DAO"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique? (Ex : 512)"
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_MEM="How much memory do your graphic card have got? (Ex : 512)"
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation
is finished or you will have to redo the installation."
fi
 
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/d/d6/Dragon_Age.jpg --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$Title" "BioWare" "http://eu.dragonage.com/?lang=fr" "Berillions" "$Prefix"
 
#Installation de Wine
POL_SetupWindow_install_wine "1.1.38"
Use_WineVersion "1.1.38"
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"
VMS="$APP_ANSWER"
 
#Réglage Direct3D
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > OGL.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"Multisampling"="enabled"
"OffscreenRenderingMode"="fbo"
"VideoMemorySize"="$VMS"
EOF
regedit OGL.reg
 
#Configuration de Wine
Set_OS winxp
 
#Install vcrun6
POL_Call POL_Install_vcrun6
POL_Call POL_Install_dotnet20
POL_Call POL_Install_physx
 
convert "$CDROM/data/autorun.ico" -geometry 32X32 "$REPERTOIRE/icones/32/$Title"
convert "$CDROM/data/autorun.ico" -geometry 32X32 "$REPERTOIRE/icones/32/$Updater"
 
POL_SetupWindow_wait_next_signal "Installing ..." "$Title"
 
wine start /unix "$CDROM/setup.exe"
 
POL_SetupWindow_detect_exit
 
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Dragon Age/bin_ship/" "daorigins.exe" "" "$Title"
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Dragon Age/bin_ship/" "daupdater.exe" "" "$Updater"
 
Set_WineVersion_Assign "1.1.38" "$Title"
 
POL_SetupWindow_Close
exit


Screens :

Edited by Berillions


NSLW Friday 27 November 2009 at 8:19 - [Quote]
Membre

Membre
You do
cp -R 1.1.33 1.1.33-DaO
without downloading Wine 1.1.33 before.

Edited by NSLW

wwwolf Sunday 27 December 2009 at 1:32 - [Quote]
Membre

Membre
The wined3d.dll.so causes my wine to crash. My system is 64-bit, could it be that the file was compiled for 32-bit?

Also, I needed to download a Microsoft C++ Redist patch to make the game work at all: http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en#filelist
I think this has to do with the latest patch for Dragon Age.

Great work on the script, but any chance I might get the wined3d.dll.so file for 64-bit? (Working on compileing it myself - but no quite there...)
NSLW Sunday 27 December 2009 at 10:36 - [Quote]
Membre

Membre

Citation de wwwolf:

The wined3d.dll.so causes my wine to crash. My system is 64-bit, could it be that the file was compiled for 32-bit?


No, this might mean that wined3d.dll was compiled on latest Frugalware instead on Debian Etch. You haven't got Frugalware so you catch an error. I think Berillions should share with us how he did create this wined3d.dll and eventually compile it on Debian Etch.

Edited by NSLW

Berillions Sunday 27 December 2009 at 13:49 - [Quote]
Membre

Membre
To create this patch :

- Download the wine source in winehq.org

- Download three patch here :
http://sd-1.archive-host.com/membres/up/51568577817080088/patchDAO.zip
and extract this 2 files.

- Copy three files in Wine source folder. And in a console, launch this commands :
cd ~/Desktop/wine-1.1.35
patch -p1 < Patch1.diff
patch -p1 < Patch2.diff

- Compile Wine to create the wined3d.dll.so

I'm now on Debian Sid 32bits. So i can create the patch for 32 bits.


EDIT : Initial post update with the new patch for wine 1.1.35 32Bits.

Edited by Berillions


Ken Saturday 9 January 2010 at 10:32 - [Quote]
Membre

Membre
I'm a bit of a noob at this aspect of Linux, but eventually spotted a typo in your script which breaks things.
The name of the downloaded patch is:
DAO-1135-Patch.zip
but the following unzip process is looking for a file called:
DAO-1.1.35-Patch.zip

Thanks for your efforts,

Ken
xellink Tuesday 23 February 2010 at 23:34 - [Quote]
Membre

Membre
There is no longer the need to use the script or patch wine. Dragon Age Origins now works on wine 1.1.38. Have fun.
minimax Sunday 18 September 2011 at 5:06 - [Quote]
Membre

Membre
Hi,

Dragon Age : Origins is the first game that I'm trying to install using playonmax. I've used the playonlinux's script and everything went well.

I patched the game to 1.03, since it's the only no-cd that I have and that I know works on windows.

When a launch the game I get,

«failed to detect supported video card»

I own a macbook pro 2011, 13 inch with the Intel Graphics 3000 HD. Maybe my video card is just not enough to run DAO?

I'm really a new to mac and playonmac.

If anybody can help I would be very grateful.
Il n'y a rien à voir ici