[Bug 30814] Age of Empires II scrolling gets stuck after Alt-Tab away and back

WineHQ Bugzilla wine-bugs at winehq.org
Sun Jan 9 02:01:06 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=30814

David Gow <david at davidgow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidgow.net

--- Comment #65 from David Gow <david at davidgow.net> ---
(In reply to Lucas Tanure from comment #63)
> I still see this issue running Age of Empires 2 Definitive Edition from
> Steam using Arch.
> By just pressing Alt + Up the maps scroll until the corner without stoping.

The "regression" you're seeing is Proton Experimental specific: it shouldn't
occur in upstream Wine, nor in Proton 6.3.

There's a more full description of it in the Proton bugtracker for the 2013 Age
of Empires II HD version:
https://github.com/ValveSoftware/Proton/issues/72#issuecomment-1007899929

Basically, the workaround for the bug (which really is a game bug), is no
longer used in the fast "shared memory" path Proton Experimental has added in
this commit:
https://github.com/ValveSoftware/wine/commit/d2cbafab08fc0d6de0faed9451309908287068eb

Adding the "for (i = 0; i < 256; i++) state[i] &= 0x81;" to the new path
should, in theory, fix it (there's a patch in the linked Proton issue, but I
wasn't able to get the Proton experimental wine tree to build, so haven't
tested it.)

Otherwise, there are a number of patches and tools for different Age of Empires
versions to work around the issue here:
https://davidgow.net/hacks/aoescroll.html

(Though note that the 'Definitive Edition' has enough code obfuscation that I
haven't been able to make a patched executable, and it may have
anti-cheat/anti-tamper features which could cause problems with DLL injection,
so good luck!)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list