Running America's Army 3 in Wine

Tested with America's Army 3.0.5 on Ubuntu 9.04, 64 bit.

NOTE: this version is very buggy, not just in Wine apparently. There are newer versions which may work better, though in any case I do not recommend trying the game in Wine for entertainment value at this point.

Installing the game

To install via Steam, or launch the game, run:

WINEDEBUG=fixme-all wine C:/Program\ Files/Valve/Steam/Steam.exe -applaunch 13140

For more on installing the game, also see Wine AppDB.

Running the game

In Wine 1.1.28 (1.1.29 is having some problems with Steam at this point) the mouse cursor does not work during gameplay. To fix this and get access to in-game menus, try this patch: (download)

--- mouse.c.orig        2009-09-06 11:53:11.000000000 +0200
+++ mouse.c     2009-09-06 11:55:14.000000000 +0200
@@ -338,6 +338,7 @@
         case WM_MOUSEWHEEL:
             This->m_state.lZ += wdata = (short)HIWORD(hook->mouseData);
+/*FIXME*/   This->warp_override = (This->warp_override == WARP_FORCE_ON ? WARP_DISABLE : WARP_FORCE_ON);
         case WM_LBUTTONDOWN:

To apply:

  • Download Wine 1.1.28 sources.
  • cd dlls/dinput
  • Apply the patch above.
  • make
  • Copy to /usr/local/lib/wine or wherever it resides on the system. Backup the original file first!

In-game, "warp" mode can be toggled using the mouse-wheel button (turn one step in either direction).

Yes, this is ugly… Perhaps it's easy to make a more suitable solution (e.g. using the keyboard to toggle), but I'm not going to spend much time on that for now.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License