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?
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
select_prefix "$REPERTOIRE/wineprefix/EmpireEarth/"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"
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...
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
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
POL_Wine_SelectPrefix "EmpireEarth"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"
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?
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/
POL_Wine_SelectPrefix "EmpireEarth"
POL_SetupWindow_prefixcreate
cd '$HOME'
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"
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.
# Downloading specific Wine
if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
POL_Call POL_Install_wine64b
else
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
fi
Use_WineVersion "$WORKING_WINE_VERSION"
# Creating prefix
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"
# Downloading specific Wine
if [ "$MACHTYPE" == "x86_64-pc-linux-gnu" ]; then
POL_Call POL_Install_wine64b
else
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
fi
Use_WineVersion "$WORKING_WINE_VERSION"
Output : 12/14/11 16:06:24 - [main] Message: Debugger is starting
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.3.34, x86
[POL_Wine_SetVersionEnv] Message: "/home/alex/.PlayOnLinux//wine/linux-x86/1.3.34" exists
[POL_Wine] Message: Running wine-1.3.34 Empire Earth.exe
wine: cannot find L"C:\\\\windows\\\\system32\\\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\\\windows\\\\system32\\\\winemenubuilder.exe -a -r" (2)
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled
fixme:win:EnumDisplayDevicesW ((null),0,0x32f334,0x00000000), stub!
err:wgl:internal_SetPixelFormat Invalid operation on root_window
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled
fixme:win:EnumDisplayDevicesW ((null),0,0x32f334,0x00000000), stub!
err:wgl:internal_SetPixelFormat Invalid operation on root_window
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled
fixme:win:EnumDisplayDevicesW ((null),0,0x32f27c,0x00000000), stub!
err:wgl:internal_SetPixelFormat Invalid operation on root_window
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled
fixme:win:EnumDisplayDevicesW ((null),0,0x32f27c,0x00000000), stub!
err:wgl:internal_SetPixelFormat Invalid operation on root_window
fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled
fixme:win:EnumDisplayDevicesW ((null),0,0x32f34c,0x00000000), stub!
fixme:imm:ImmReleaseContext (0xe005a, 0x18e9c0): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 32 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
err:ole:COMPOBJ_DllList_Add couldn't load in-process dll L"C:\\\\windows\\\\system32\\\\dmloader.dll"
err:ole:CoGetClassObject no class object {d2ac2892-b39b-11d1-8704-00600893b1bd} could be created for context 0x3
fixme:d3d:wined3d_device_decref Device released with resources still bound, acceptable but unexpected.
fixme:d3d:wined3d_device_decref Leftover resource 0x1b0a78 with type WINED3DRTYPE_BUFFER (0x6).
err:mmtime:TIME_MMTimeStop Timer still active?!
[POL_Wine] Message: Wine return: 3
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.
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.
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.playonmac.com/en/topic-3718-WineBuild_Demand.html
This looks promising.
#!/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), Suse 12.1-kde
# Authors : Pierre Etchemaite petchema@concept-micro.com, realta_taisteal
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
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
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.
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.
I'm able to run it, but for some reason. I can't break out with control-alt-escape.
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)
(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
pinch:
You can move the mouse, but it takes very large movements. Maybe changing wine mouse sensitivity.
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
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 dmca-notice@playonlinux.com