El Foro

[Script] Deus Ex: Human Revolution

Autor Respuestas
Jump to the page: 1 - 2
Xenos5 Thursday 10 April 2014 at 18:29
Xenos5

Deus Ex: Human Revolution is a prequel to the first game in the Deus Ex series, where you take the role of Adam Jensen, and do something or other; I haven't actually played beyond the first ~15 min. :P

The CSMT wine patches have obviated the need for StrictDrawOrdering = enabled, which brings a much needed performance boost. The game is glitchy as all hell though, and while I got it working for me, I wouldn't be surprised if this doesn't work for some people, so testing would be greatly appreciated. I have tested it on Nvidia, but some tests on AMD, Intel and Mac would be appreciated.

List of remaining visual artifacts:
- Certain floor and table textures flicker. If it is irritating enough, it can be worked around by disabling shadows.
- Light sources often give strange light flares that stretch horizontally across your entire screen. No workarounds that I'm aware of.

[code language=playonlinux]
#!/bin/bash
# Date : (2014-04-10T15:26Z)
# Last revision : (2014-04-10T15:26Z)
# Wine version used : 1.7.4-CSMT
# Distribution used to test : Arch Linux x64
# Author : Alexander Borysov
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Deus Ex: Human Revolution"
PREFIX="DXHR"
STEAM_APP_ID=28050

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" "Square Enix" "http://deusex.com/" "Alexander Borysov" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "1.7.4-CSMT"

POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"

# marginally higher fps
Set_OS "win7"

if [ "$INSTALL_METHOD" = "DVD" ]; then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "DEHR.ico"
   POL_Wine "$CDROM/Setup.exe"
   POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Call POL_Install_steam
   cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
   POL_Wine "steam.exe" "steam://install/$STEAM_APP_ID"
   POL_Wine_WaitExit "$TITLE"
else
   POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
   POL_Wine "$APP_ANSWER"
   POL_Wine_WaitExit "$TITLE"
fi

POL_SetupWindow_VMS "512"

POL_Wine_Direct3D "UseGLSL" "disabled"
POL_Wine_Direct3D "CSMT" "enabled"

POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APP_ID"
else
   POL_Shortcut "dxhr.exe" "$TITLE" "${TITLE}.png"
fi

POL_SetupWindow_Close
exit 0
[/code]

Screenshots:





Icons:
22x22.png
48x48.png
top.png
left.png
petch Thursday 10 April 2014 at 18:51
petch
Developer

Hi,
Beside the very short prefix name (hence increased probability of name collision), the script looks fine to me...
Xenos5 Thursday 10 April 2014 at 20:09
Xenos5

DXHR is the accepted acronym for the game. Even google knows what you mean when you search for 'DXHR'. But, if strictly necessary, I can expand it to something like 'DeusExHumanRevolution'. Is prefix length a hard and fast rule?

Secondly, regarding submitting, should I wait for people to post here with their results on AMD, Intel, etc., or can I just submit to the repos with the "Testing" flag? I'm not sure what the exact implications of that flag are.
petch Thursday 10 April 2014 at 20:55
petch
Developer

Is prefix length a hard and fast rule?

Quote from Xenos5

Any prefix name of 4 letters or less will be shown as a warning in the "Code quality" page computed automatically from the script.

Secondly, regarding submitting, should I wait for people to post here with their results on AMD, Intel, etc., or can I just submit to the repos with the "Testing" flag? I'm not sure what the exact implications of that flag are.

Quote from Xenos5

Nobody known really. Don't expect much feedback no matter what you do. At least I never got a lot.


Editado por: petch

Xenos5 Thursday 10 April 2014 at 22:19
Xenos5

Alright, well, I'll submit it as 'Testing'. If people have problems, they can always contact me or post here or something, and we can figure it out from there.
petch Friday 11 April 2014 at 23:58
petch
Developer

Xenos5 Sunday 9 November 2014 at 18:21
Xenos5

So I've discovered a major breaking issue that probably affects 99% of gamers (and yet I received no complaints about the script...).
There's a widely reported issue with mouse movement being constrained to a certain rectangle because of it clipping against the window sides, meaning a lack of 360 degree rotation in-game. This doesn't occur on multihead setups (like mine) though, and when it didn't happen to me during testing, I surmised it was an old fixed issue. It isn't, but thankfully there's a patch.
So, I'd like a patched wine please. I've submitted a ticket asking for it here: http://www.playonlinux.com/en/issue-4923.html
I've also done some AMD testing, and now only disable GLSL on Nvidia. Here follows the updated script:

#!/bin/bash
# Date : (2014-04-10T15:26Z)
# Last revision : (2014-11-09T17:00Z)
# Wine version used : 1.7.24-CS-0.9.1-DXHR
# Distribution used to test : Arch Linux x64
# Author : Alexander Borysov
# Script licence : GPLv3
# Program licence: Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Deus Ex: Human Revolution"
PREFIX="DXHR"
STEAM_APP_ID=28050

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_SetupWindow_SetID 1998
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Square Enix" "http://deusex.com/" "Alexander Borysov" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "1.7.24-CS-0.9.1-DXHR"

POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"

# marginally higher fps
Set_OS "win7"

if [ "$INSTALL_METHOD" = "DVD" ]; then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "DEHR.ico"
   POL_Wine "$CDROM/Setup.exe"
   POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Call POL_Install_steam
   cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
   POL_Wine "steam.exe" "steam://install/$STEAM_APP_ID"
   POL_Wine_WaitExit "$TITLE"
else
   POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
   POL_Wine "$APP_ANSWER"
   POL_Wine_WaitExit "$TITLE"
fi

POL_SetupWindow_VMS "512"

# On Nvidia, disabling GLSL removes the stutter you otherwise get. On AMD, it makes the game crash on start.
POL_Wine_DetectCard
[ "$DRVID" = "NVIDIA" ] && POL_Wine_Direct3D "UseGLSL" "disabled"
POL_Wine_Direct3D "CSMT" "enabled"

POL_Wine_SetVideoDriver

if [ "$INSTALL_METHOD" = "STEAM" ]; then
   POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APP_ID"
else
   POL_Shortcut "dxhr.exe" "$TITLE" "${TITLE}.png"
fi

POL_SetupWindow_Close
exit 0

If I should rather submit the updated script as a 'Contribution' on the script page, let me know.

Ronin DUSETTE Monday 10 November 2014 at 5:22
Ronin DUSETTE
Admin

You should for sure add the contribution on the script's page, that way it can be approved. :)

Also, I love this game. I will totally be trying this out (I own it via Steam.).


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Monday 10 November 2014 at 12:19
petch
Developer

From what I understand it requires a newly patched Wine version though
 

Xenos5 Monday 10 November 2014 at 19:30
Xenos5

What's a "newly" patched wine? Or are you just talking about my patch request above?

grater Sunday 8 March 2015 at 12:41
graterAnonymous

Testing on a latop with Intel Haswell graphics.

Install fails because of the bug where steam text is invisible. I think this bug only affects intel graphics. It is fixed by adding the flag '-no-dwrite' when calling steam. I used that fix to proceed with the installation.

Once installed DXHR ran okay, but performance is very poor. Not that I expected much from the laptop. It runs older games like Halflife 2 beautifully, but DXHR has rather steeper requirements.

Xenos5 Sunday 8 March 2015 at 14:25
Xenos5

Hmm. Well, I must say I haven't tested it on Intel graphics, only discrete AMD and Nvidia GPUs, myself running an AMD CPU. DXHR is quite a bit more modern than HL2, so that may be the issue. What exact GPU does your laptop have?

I think I might be able to get hold of an Intel laptop from a friend to test the script on, and maybe special-case it if there are any particular performance improvements I can make.

As for the steam text issue, I'll add the switch to the script. I also have another change from above I still haven't finalised (because I missed that the build ticket got updated...)

Xenos5 Monday 16 March 2015 at 5:53
Xenos5

Submitted a script update to fix the mouse clipping issue for single-monitor setups, prevent game crashing on start for AMD GPUs, and make Steam installs actually work. Intel testing to come next.

Editado por: Xenos5

petch Monday 16 March 2015 at 7:55
petch
Developer

Xenos5 Monday 16 March 2015 at 8:32
Xenos5

Thanks. Is there any way to edit the description? It's now inaccurate in that it claims only Nvidia has been tested, and I'm also now able to give more clarity about the light artifacts.

petch Monday 16 March 2015 at 14:58
petch
Developer

Do you have an "Edit" icon just below the script description?

Otherwise just give me the new description you want, either here or as a comment on the script, and I'll take care of the replacement...

Xenos5 Monday 16 March 2015 at 16:04
Xenos5

Nope, no edit button, I looked. Would be a nice website improvement to have though. ;)
Here's the update. I will provide another once I get the Intel testing done. Thanks for helping. :D

Deus Ex: Human Revolution is a cyberpunk-themed action role-playing video game developed by Eidos Montreal and published by Square Enix. It is the third game in the Deus Ex series. The game is set in 2027, 25 years before the first game in the series, at a time when multinational corporations have grown in power beyond the control of national governments. The game follows Adam Jensen, the newly hired security manager at Sarif Industries, a growing biotechnology firm.
Description borrowed from http://en.wikipedia.org/wiki/Deus_Ex:_Human_Revolution

Script notes:
- Tested on an Nvidia GTX 760 and an AMD 6450; Intel testing coming soon.

List of remaining visual artifacts:
- Certain floor and table textures flicker. If it is irritating enough, it can be worked around by disabling shadows.
- On Nvidia, light sources often give strange light flares that stretch horizontally across your entire screen. This can be fixed by enabling GLSL, but that comes at the cost of ridiculous stuttering when you first enter any area, and greatly increased loading times.
petch Monday 16 March 2015 at 19:57
petch
Developer

Xenos5 Thursday 19 March 2015 at 6:18
Xenos5

Tested out DXHR on an Ivy Bridge laptop over the past couple of days. It has the same issue as Nvidia, where seemingly every texture load makes it stutter ridiculously; unfortunately, you can't work around it by disabling GLSL, like in Nvidia's case. Disabling GLSL makes it fail to launch: "Failed to initialize Direct3D with current settings". I've tried various dll overrides, and some libgl/mesa environment variable hacks, both to try remove the stutter, and to make it work with disabled GLSL. Nothing helped. :(

So, this basically makes the game unplayable on Intel, which is fairly unfortunate.

petch, please update the description to the following:

Deus Ex: Human Revolution is a cyberpunk-themed action role-playing video game developed by Eidos Montreal and published by Square Enix. It is the third game in the Deus Ex series. The game is set in 2027, 25 years before the first game in the series, at a time when multinational corporations have grown in power beyond the control of national governments. The game follows Adam Jensen, the newly hired security manager at Sarif Industries, a growing biotechnology firm.
Description borrowed from http://en.wikipedia.org/wiki/Deus_Ex:_Human_Revolution

Script notes:
- Playable on Nvidia, with minor graphical artifacts
- Playable on AMD
- Unplayable on Intel, due to major stuttering on every texture load, and very long load times

List of remaining visual artifacts:
- Certain floor and table textures flicker. If it is irritating enough, it can be worked around by disabling shadows.
- On Nvidia, light sources often give strange light flares that stretch horizontally across your entire screen. This is a result of the workaround to get rid of the texture load stuttering (disabling GLSL).
petch Thursday 19 March 2015 at 19:47
petch
Developer