The forum

[Script] Mirror's Edge (Steam)

Author Replies
plata Sunday 17 April 2016 at 14:22
plata

The script installs Mirror's Edge for Steam.

Icons:

MirrorsEdge-48x48.png

https://ibin.co/2e4EB6RUWs37.png

MirrorsEdge-22x22.png

https://ibin.co/2e4DEPEFi6gH.png

left.png

https://ibin.co/2e4EKmWdtliL.png

top.png

https://ibin.co/2e4EU9Fcy6cv.png

#!/bin/bash
# Date : (2016-04-17 ??-??)
# Last revision : (2016-04-17 ??-??)
# Wine version used : 1.8.2
# Distribution used to test : Linux Mint 17.3 x64
# Author : plata
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Mirror's Edge (Steam)"
PREFIX="Mirrors_Edge"
WORKING_WINE_VERSION="1.8.2"
EDITOR="DICE"
GAME_URL="http://www.mirrorsedge.com/"
AUTHOR="plata"
 
# start the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# set prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# download wine if necessary and create prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# make sure that game window shows up
Set_Managed "Off"
 
# install dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9
POL_Call POL_Install_Physx
POL_Call POL_Install_tahoma
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_steam
 
# begin game installation
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/17410
POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
POL_Wine_WaitExit "$TITLE"
 
# Making shortcut
POL_Shortcut "MirrorsEdge.exe" "$TITLE"
 
POL_SetupWindow_Close
exit 0

Edited by plata

MTres19 Friday 22 April 2016 at 2:11
MTres19Anonymous

Just a suggestion: You might want to set $WORKING_WINE_VERSION to 1.8.2 or even a 1.9.x development release. Especially 1.8.2 is going to be more likely to be already installed, since it's a stable version and therefore more likely to be used by scripts.

plata Friday 6 May 2016 at 10:28
plata

I followed this guide: http://www.gamersonlinux.com/forum/threads/mirrors-edge-guide.254

Maybe 1.8.2 or 1.9.x is working as well, but I cannot approve that in general.

 

Btw: Why am I not subscribed to this thread automatically when I created it?

MTres19 Friday 6 May 2016 at 16:22
MTres19Anonymous

Have you tested 1.8.x or 1.9.x? To test your script: in the PlayOnLinux window, go to Tools > Run a local script.

plata Friday 6 May 2016 at 18:18
plata

1.8.2 is working. I just had to uncheck "Allow window manager to control window". How can I do that in the script directly?

MTres19 Friday 6 May 2016 at 20:36
MTres19Anonymous

Use:

Set_Managed "Off"
plata Friday 6 May 2016 at 21:42
plata

Updated the script.

MTres19 Saturday 14 May 2016 at 21:23
MTres19Anonymous

Well, If you've tested it and everything works, I'd go ahead and submit it. (http://wiki.playonlinux.com/index.php/How_to_Contribute_a_Script)

plata Sunday 15 May 2016 at 11:17
plata

It's here: https://www.playonlinux.com/en/app-2789.html

 

Something went wrong when commiting the code. Could some mod please delete the duplicate contributions?

Hunter621 Tuesday 26 March 2019 at 8:12
Hunter621Anonymous

 

The script installs Mirror's Edge for Steam.

Icons:

MirrorsEdge-48x48.png

https://ibin.co/2e4EB6RUWs37.png

MirrorsEdge-22x22.png

https://ibin.co/2e4DEPEFi6gH.png

left.png

https://ibin.co/2e4EKmWdtliL.png

top.png

https://ibin.co/2e4EU9Fcy6cv.png APKJunky

#!/bin/bash
# Date : (2016-04-17 ??-??)
# Last revision : (2016-04-17 ??-??)
# Wine version used : 1.8.2
# Distribution used to test : Linux Mint 17.3 x64
# Author : plata
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Mirror's Edge (Steam)"
PREFIX="Mirrors_Edge"
WORKING_WINE_VERSION="1.8.2"
EDITOR="DICE"
GAME_URL="http://www.mirrorsedge.com/"
AUTHOR="plata"
 
# start the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# set prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# download wine if necessary and create prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# make sure that game window shows up
Set_Managed "Off"
 
# install dependencies
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9
POL_Call POL_Install_Physx
POL_Call POL_Install_tahoma
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_steam
 
# begin game installation
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/17410
POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
POL_Wine_WaitExit "$TITLE"
 
# Making shortcut
POL_Shortcut "MirrorsEdge.exe" "$TITLE"
 
POL_SetupWindow_Close
exit 0

 

I have faced the same issue. Can anyone help me? 

Edited by Hunter621

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