You are here > Forums > Your creations. > Empire Earth I -- test script
| New topic - Reply |
| Author | Replies |
| Jump to the page: 1 - 2 | |
| realta_taisteal | Sunday 4 December 2011 at 9:20 - [Quote] |
| Rank: Member |
I'm trying to create a script for 'Empire Earth I'. I figured out it's a basic file not found problem. The script has an error. I used the simplest GOG script and modified it. If I click on the empire earth icon. The debugger gives directory not found. The install works fine, all the files are there.
What did I do wrong?
Edited by realta_taisteal |
| petch | Sunday 4 December 2011 at 21:42 - [Quote] |
| Rank: Developer
|
I'm still learning POL scripting, so, for what it's worth:
Some things in your script are deprecated (POL v.3 stuff, really), like you should use POL_Wine_SelectPrefix "EmpireEarth" instead of select_prefix... But since you said the game seems to have been deployed correctly, I suppose it's still ok (until some deprecated things are totally removed...) I wonder it you could show the content of the shortcut file, that is, ~/.PlayOnLinux/shortcuts/EmpireEarth ? Hopefully it can give a clue about what is this directory that cannot be found... Pierre. My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Sunday 4 December 2011 at 22:22 - [Quote] |
| Rank: Member |
I corrected the script. There no way to copy and paste the debugger text. I have to send to pastebin and it's a hassle. There needs to be a copy and paste in the debugger.
#!/bin/bash
File :EmpireEarth
Using 'program files (x86)' gives the same error. Edited by realta_taisteal |
| petch | Monday 5 December 2011 at 17:50 - [Quote] |
| Rank: Developer
|
The shortcut file looks ok, so, I suppose the directory
/home/alex/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/ really doesn't exist (seems ok at least 'til GOG.com, can't tell for the end of the path) and need to be adjusted? My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Monday 5 December 2011 at 21:45 - [Quote] |
| Rank: Member |
/home/username/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/
// has to be an error. That must be the problem. How to fix it?? Look at the other gog scripts. There must be a clue there. Search: gog Edited by realta_taisteal |
| petch | Wednesday 7 December 2011 at 16:54 - [Quote] |
| Rank: Developer
|
// should not be a problem, it's explicitly stated in POSIX norm that multiple consecutive slashes in paths have the same meaning as one...
My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Wednesday 7 December 2011 at 22:31 - [Quote] |
| Rank: Member |
Note: username hidden for privacy
The installer shows this: C:\Program Files (x86)\GOG.com\Empire Earth Gold Edition ----------------------------------------------------------------------------------- This is the location of EE-AOC and filename. /home/[username]/.PlayOnLinux/wineprefix/EmpireEarth/drive_c/Program Files (x86)/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/ EE-AOC.exe ----------------------------------------------------------------------------------- This is the location of EE and filename: ---------------------------------------------------------------------------------- /home/[username]/.PlayOnLinux/wineprefix/EmpireEarth/drive_c/Program Files (x86)/GOG.com/Empire Earth Gold Edition/Empire Earth/ Empire Earth.exe ----------------------------------------------------------------------------------- Does this help? |
| realta_taisteal | Friday 9 December 2011 at 3:08 - [Quote] |
| Rank: Member |
It works. Now, I get this. I'm looking for solution to my new problem. winemenubuilder.exe not found. Looking for the solution, nothing useful. |
| petch | Monday 12 December 2011 at 20:54 - [Quote] |
| Rank: Developer
|
From what I understand, in PlayOnLinux, winemenubuilder is disabled so that installations don't create entries in your environment menu; It's up to the script to create desired shortcuts in PlayOnLinux.
My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Tuesday 13 December 2011 at 7:01 - [Quote] |
| Rank: Member |
Script Update:
It's there, check.
Edited by realta_taisteal |
| petch | Tuesday 13 December 2011 at 20:52 - [Quote] |
| Rank: Developer
|
Maybe it needs native DirectMusic libs?
Add POL_Call POL_Install_directmusic to you script and see... My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Wednesday 14 December 2011 at 1:12 - [Quote] |
| Rank: Member |
Quote from petch: Maybe it needs native DirectMusic libs?
|
| petch | Wednesday 14 December 2011 at 8:16 - [Quote] |
| Rank: Developer
|
Since the game is available for free for a short while on gog, I took it and give it a try, and obviously saw the same problem. On WineHQ there's a suggestion of totally disabling DirectMusic in the game (thru registry), by then the game starts, I see logos and introduction video, then I get the main menu with a very slow mouse and pointer leaving lots of graphic garbage... and it seems nobody has a solution yet for that. My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Wednesday 14 December 2011 at 22:04 - [Quote] |
| Rank: Member |
I tried to disable direct music. I couldn't find the registry entry. Where is it? I'v googled the problem on the internet. It offered some solutions for other games. Can you take a look at them?
The earlier versions of wine worked according to the APP database on winehq. Once, I get it running. I'll try other wine versions. http://appdb.winehq.org/objectManager.php?sClass=version&iId=2174 I don't think directmusic is installing. I didn't see it downloading. I'm going to try it manually(no POL_call). Also, I want to install everything POL can install, everything. Where the complete install list? POL_Call POL_Install_d3dx10 POL_Call POL_Install_d3dx11 POL_Call POL_Install_d3dx9 POL_Call POL_Install_devenum POL_Call POL_Install_dinput POL_Call POL_Install_dinput8 POL_Call POL_Install_directmusic POL_Call POL_Install_directplay POL_Call POL_Install_directx9 POL_Call POL_Install_dsound POL_Call POL_Install_quartz Edited by realta_taisteal |
| petch | Friday 16 December 2011 at 9:59 - [Quote] |
| Rank: Developer
|
Here's the script I came up with for GoG release of Empire Earth: Gold Edition (again, the result is far from being playable):
https://raw.github.com/petchema/playonlinux/dev/broken/empireearth-gog #!/bin/bash
# Date : (2012-12-14 02-03)
# Last revision : (2011-12-14 02-03)
# Wine version used : 1.3.34
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
check_install_archive () {
FILE="$1"
EXPECTED_NAME="$2"
EXPECTED_SIZE="$3"
EXPECTED_MD5="$4"
POL_SetupWindow_wait "$(eval_gettext 'Checking install archive...')" "$TITLE"
# Temporarily prevent word splitting
OLDIFS="$IFS"
IFS=''
NAME="$(basename $FILE)"
SIZE="$(stat -c%s $FILE)"
MD5="$(POL_MD5_file $FILE)"
IFS="$OLDIFS"
if [ $SIZE -ne $EXPECTED_SIZE -o "$MD5" != "$EXPECTED_MD5" ]; then
POL_Debug_Error "$(eval_gettext 'Install archive mismatch.\nEither your install archive is corrupted, or is not the expected version.\nThis script cannot guarantee that installation will work correctly. Please report success or failure to PlayOnLinux forums.')\n$(eval_gettext 'Name:') $NAME ($(eval_gettext 'expected') $EXPECTED_NAME)\n$(eval_gettext 'Size:') $SIZE ($(eval_gettext 'expected') $EXPECTED_SIZE)\n$(eval_gettext 'MD5:') $MD5\n ($(eval_gettext 'expected') $EXPECTED_MD5)"
POL_SetupWindow_question "$(eval_gettext 'Continue?')" "$TITLE"
[ "$APP_ANSWER" != "TRUE" ] && POL_Debug_Fatal "$(eval_gettext 'Not the expected archive')"
fi
}
PREFIX="EmpireEarth_gog"
WORKING_WINE_VERSION="1.3.34"
TITLE="$(eval_gettext 'Empire Earth: Gold Edition (GoG release)')"
SHORTCUT_NAME1="Empire Earth"
SHORTCUT_DOC1="$SHORTCUT_NAME1 - $(eval_gettext 'Manual')"
SHORTCUT_DOC_TECHTREE1="$SHORTCUT_NAME1 - $(eval_gettext 'Technology tree')"
SHORTCUT_DOC_EDITOR1="$SHORTCUT_NAME1 - $(eval_gettext 'Scenario editor manual')"
SHORTCUT_NAME2="Empire Earth: The Art of Conquest"
SHORTCUT_DOC2="$SHORTCUT_NAME2 - $(eval_gettext 'Manual')"
SHORTCUT_DOC_TECHTREE2="$SHORTCUT_NAME2 - $(eval_gettext 'Technology tree')"
SHORTCUT_README2="$SHORTCUT_NAME2 - $(eval_gettext 'Readme')"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Stainless Steel Studios / Rebellion" "http://www.gog.com/en/gamecard/empire_earth_gold_edition" "Pierre Etchemaite" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
ARCHIVE="$APP_ANSWER"
check_install_archive "$ARCHIVE" setup_empire_earth_gold.exe 564162686 1d5c5587ab26488b3a38f1ba288ce89a
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
# Associate .PDF with native app
# http://wiki.winehq.org/FAQ#head-91bf3f0a8ccbfab8dee96f82fae2f1a489e0d243
# Do it before installing the game, so you have the possibility to open
# PDFs with Win32 reader if you choose to install it
cat <<'_EOF_' > $REPERTOIRE/tmp/pdfnativereader.reg
[HKEY_CLASSES_ROOT\.pdf]
@="PDFfile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command]
@="winebrowser \"%1\""
_EOF_
POL_Wine regedit $REPERTOIRE/tmp/pdfnativereader.reg
POL_Wine_InstallFonts
POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
POL_Wine_WaitExit "$TITLE"
POL_Call POL_install_vcrun6
cat <<_EOFINI_ > "$REPERTOIRE/tmp/disable_directmusic.reg"
REGEDIT4
[HKEY_CURRENT_USER\Software\SSSI\Empire Earth]
"Music Enabled"=dword:00000000
_EOFINI_
POL_Wine regedit "$REPERTOIRE/tmp/disable_directmusic.reg"
rm "$REPERTOIRE/tmp/disable_directmusic.reg"
# GoG work!?
Set_OS win2k
POL_SetupWindow_VMS "4"
POL_Wine_X11Drv "DXGrab" "Y"
POL_Wine_X11Drv "GrabFullScreen" "Y"
## PlayOnMac Section
[ -n "$PLAYONMAC" ] && Set_SoundDriver "alsa"
[ -n "$PLAYONMAC" ] || Set_Managed "Off"
## End Section
# Doesn't hurt ;)
POL_Wine_reboot
POL_Shortcut "Empire Earth.exe" "$SHORTCUT_NAME1"
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME1" "POL_Wine_AutoSetVersionEnv\nwineserver -k\nnice -19 wineserver"
POL_Shortcut "start.exe" "$SHORTCUT_DOC1" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth/Manual.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_DOC_TECHTREE1" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth/technology_tree.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_DOC_EDITOR1" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth/scenario_editor_manual.pdf'"
POL_Shortcut "EE-AOC.exe" "$SHORTCUT_NAME2"
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME2" "POL_Wine_AutoSetVersionEnv\nwineserver -k\nnice -19 wineserver"
POL_Shortcut "start.exe" "$SHORTCUT_README2" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/readme.txt'"
POL_Shortcut "start.exe" "$SHORTCUT_DOC2" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/manual_aoc.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_DOC_TECHTREE2" "" "'C:/$PROGRAMFILES/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/technology_tree_aoc.pdf'"
POL_SetupWindow_Close
exitTo see all what POL_Call can call, open "Supported software", then "Functions": http://www.playonlinux.com/repository/?cat=100 Edited by petch My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Friday 16 December 2011 at 21:57 - [Quote] |
| Rank: Member |
Thanks for the assist. Since I started it, you helped, this is a co-credit project. I'll test it more and some more finishing work. There might be a way to get direct music working. Can you comment it more? There is lot I don't understand.
>POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" I have simpler version of this line. Please explain. The mouse point garbage and other problems were in the nvidia driver for windows as well till they fixed it. I'v read about similar mouse problems on the google search. They mentioned mouse acceleration. I need to understand the whole project so I use this info to get "Nexus the Jupiter Incident" game working. Also, it's Stainless Steel Studios Basic / Mad-DOC software -- Sierra Entertainment distributed by GOG games. I'm able to run it, but for some reason. I can't break out with control-alt-escape. In suse, use alt-tab to bring up another window. Don't cross the wine window with your mouse, it will lock again. Move the window near the bar at the bottom of your screen. Then try to use control-alt-esc on wine to end program. google: linux wine "mouse frozen" http://appdb.winehq.org/appview.php?iVersionId=3696 Relative vs Absolute positioning of mouse http://wiki.winehq.org/Bug6971 This offers a dirty hack patch to wine that might fix the problem. http://www.playonlinux.com/en/topic-3718-WineBuild_Demand.html This looks promising. http://www.playonlinux.com/en/page-19-PlayOnLinux_script_functions_reference.html WineCFG Direct Input for mouse http://wiki.winehq.org/DInput Related wine source code http://www.winehq.org/pipermail/wine-bugs/2006-March/027503.html You can move the mouse, but it takes very large movements. Maybe changing wine mouse sensitivity. Edited by realta_taisteal |
| realta_taisteal | Friday 16 December 2011 at 23:34 - [Quote] |
| Rank: Member |
|
| petch | Saturday 17 December 2011 at 17:16 - [Quote] |
| Rank: Developer
|
Quote from realta_taisteal: Thanks for the assist. Since I started it, you helped, this is a co-credit project. I'll test it more and some more finishing work. There might be a way to get direct music working. Can you comment it more? There is lot I don't understand. This is the new POL4 way for script localization, based on gettext: once the script is registered here, it will be possible for translators to replace the text with a localized one at runtime. Quote from realta_taisteal: I'm able to run it, but for some reason. I can't break out with control-alt-escape. Could be a consequence of POL_Wine_X11Drv "DXGrab" "Y" POL_Wine_X11Drv "GrabFullScreen" "Y" I had some crashes with the game when it loses focus, so I grabbed the mouse inside the game window. You can remove those statements and experiment. (Edit: looks like you did already) Quote from realta_taisteal: (several clues about how to fix mouse problems) Yes, in POL there's even some Wine versions with dinput patch applied. Good luck with finding the combinaison that works! I recently struggled with getting the sound working correctly in Beyond Good and Evil, but haven't found a satisfactory solution yet, so I know what it looks like
Quote from realta_taisteal: You can move the mouse, but it takes very large movements. Maybe changing wine mouse sensitivity. By the way, POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME1" "POL_Wine_AutoSetVersionEnv\nwineserver -k\nnice -19 wineserver" decreases the priority of the wineserver process, which slightly lessen the problem (weird uh ? But worked perfectly with Age of Wonders 3)... Edited by petch My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
| realta_taisteal | Saturday 17 December 2011 at 21:14 - [Quote] |
| Rank: Member |
One problem at a time, fixing mouse only. I'v tried every possible combination of settings to get the mouse working, nothing works. Disabled mouse warp to no effect.
>Yes, in POL there's even some Wine versions with dinput patch applied. wine 1.3.34-rawinput right? Using a startx command http://bugs.winehq.org/show_bug.cgi?id=13351 wiztool http://wine-review.blogspot.com/2010_06_01_archive.html http://wine-wiki.org/index.php/Reading_Debug_Trace_Examples Tried wine 1.3.35 and 1.3.34-rawinput. No effect. Edited by realta_taisteal |
| petch | Sunday 18 December 2011 at 2:45 - [Quote] |
| Rank: Developer
|
Now I wonder if it's really the same patch...
Are patches used by POL-compiled Wine packages described somewhere? Also, I found a copy of wisotool that still had Empire Earth entry in it, but it doesn't seem to do anything special (to native libs, no tweaks) http://web.archive.org/web/20101103164412/http://kegel.com/wine/wisotool Edited by petch My scripts wiki: https://github.com/petchema/playonlinux/wiki GOGmix: http://www.gog.com/en/mix/playonlinux_install_scripts |
276 people online


