The forum

Playonlinux bug or script error

POL 4.0.14, suse 12.1-kde

Author Replies
realta_taisteal Friday 9 December 2011 at 2:08
realta_taistealAnonymous

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.

This script should work, but the make shortcut isn't. If I make a shortcut from playonlinux, it will run it.

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_Init
POL_SetupWindow_presentation "EmpireEarth" "Real Steel Studios" "http://fallout.bethsoft.com/" "username" "EmpireEarth"


POL_Wine_SelectPrefix "EmpireEarth"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"

POL_SetupWindow_wait_next_signal "Installing EmpireEarth..." "EmpireEarth"
wine $APP_ANSWER

POL_SetupWindow_detect_exit

POL_SetupWindow_reboot


POL_SetupWindow_make_shortcut "EmpireEarth" "Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/" "Empire Earth.exe" "" "EmpireEarth"

POL_SetupWindow_Close
exit


File :EmpireEarth
Date : 12/05/11 13:15:30
PlayOnLinux Version : 4.0.14
File content :

#!/bin/bash
[ "$PLAYONLINUX" = "" ] \\&\\& exit 0
source "$PLAYONLINUX/lib/sources"
export WINEPREFIX="/home/alex/.PlayOnLinux//wineprefix/EmpireEarth"
export WINEDEBUG=""
cd "/home/alex/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/"
POL_Wine "Empire Earth.exe" $@



Output :
12/05/11 13:15:30 - [main] Message: Debugger is starting

Console:

EmpireEarth: line 6: cd: /home/alex/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/: No such file or directory
[POL_Wine] Message: Running wine- Empire Earth.exe
wine: cannot find 'Empire Earth.exe'
[POL_Wine] Message: Wine return: 2

Edited by realta_taisteal

realta_taisteal Friday 9 December 2011 at 3:02
realta_taistealAnonymous


#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_Init
POL_SetupWindow_presentation "EmpireEarth" "Real Steel Studios" "http://fallout.bethsoft.com/" "username" "EmpireEarth"


POL_Wine_SelectPrefix "EmpireEarth"
POL_SetupWindow_prefixcreate
cd '$HOME'
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"

POL_SetupWindow_wait_next_signal "Installing EmpireEarth..." "EmpireEarth"
WINEDLLOVERRIDES=winemenubuilder.exe=d wine $APP_ANSWER

POL_SetupWindow_detect_exit

POL_SetupWindow_reboot


POL_SetupWindow_make_shortcut "EmpireEarth" "/Program Files (x86)/GOG.com/Empire Earth Gold Edition/Empire Earth - The Art of Conquest/" "EE-AOC.exe" "" "EmpireEarth"

POL_SetupWindow_Close
exit


Finally got it to run. Now the winemenubuilder.exe problem.

Edited by realta_taisteal

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