1. [size=+2]Asheron's Call 2 in Wine on Linux tutorial[/size]
  2.  
  3. Requirements: Wine 1.5 (I use 1.5.22 to be exact) and some gumption and elbow grease :-)
  4. Please beware i wrote this after I installed it, so I might have forgotten something, so it relies on your feedback to correct errors in this howto
  5.  
  6. Xubuntu 12.10 was used as OS so you might have to do stuff a little different
  7.  
  8. [size=+1]Installation[/size]
  9.  
  10. The installation process is fairly simple
  11.  
  12. Download AC2 installer
  13. [code]
  14. kimse@kimse-laptop:~$ wget -O ~/Downloads/ac2installer.zip http://content.turbine.com/sites/clientdl/ac2/ac2installer.zip
  15. [/code]
  16.  
  17. Create target directory
  18. [code]
  19. kimse@kimse-laptop:~$ mkdir -p ~/src/ac2
  20. [/code]
  21.  
  22. Extract AC2 installer archive
  23. [code]
  24. kimse@kimse-laptop:~$ unzip ~/Downloads/ac2installer.zip -d ~/src/ac2
  25. [/code]
  26.  
  27. Run AC2 installer
  28. [code]
  29. kimse@kimse-laptop:~$ msiexec /i ~/src/AsheronsCall2.msi
  30. [/code]
  31.  
  32. ac2launcher.exe uses ieframe to show latest news etc from Turbine, but it doesn't work, so we have to disable it
  33.  
  34. Start wine configuration tool
  35. [code]
  36. kimse@kimse-laptop:~$ winecfg
  37. [/code]
  38.  
  39. Add overrides
  40. [list=1]
  41. [*]Add ac2launcher.exe under Applications tabs
  42. [*]Select ac2launcher.exe application (or make sure it's selected)
  43. [*]Click on the libraries tab
  44. [*]Find ieframe in the "New override for library" dropdown menu
  45. [*]Select ieframe in "Existing_overrides" and click edit
  46. [*]Select Disable
  47. [*]Click OK and close winecfg
  48. [/list]
  49.  
  50. DirectSound implementation in Wine is broken, so you have to disable sound using the AC2Config.exe (It wasn't necessary for me to add any sound specific overrides in Wine)
  51. [code]
  52. kimse@kimse-laptop:~$ wine .wine/drive_c/Games/Turbine/Asheron\'s\ Call\ 2/AC2Config.exe
  53. [/code]
  54.  
  55. Start ac2launcher.exe
  56. [code]
  57. kimse@kimse-laptop:~$ wine .wine/drive_c/Games/Turbine/Asheron\'s\ Call\ 2/ac2launcher.exe
  58. [/code]
  59.  
  60. [size=+1]Known issues[/size]
  61.  
  62. [b]Sound[/b]
  63. Does not work and has to be disabled using AC2Config.exe
  64.  
  65. [b]Brightness[/b]
  66. The whole screen turned very bright (including other Windows, menu bars etc...)
  67. - fix:
  68. [indent]Adjust brightness in game[/indent]
  69.  
  70. [b]Window resize[/b]
  71. if running in Windowed mode, the client launches in 1024x768 by default, and then resize it self when you enter a world. But this does not always turns out successfully, specialy if the client tries to go outside your screen borders. The Window then fallbacks to 1024x768, but the game it self it still running in selected resolution, resulinng in you cannot see most of GUI elements
  72. - fix:
  73. [indent]Make sure the client does not overflow screen borders when Window resizing occurs (I'm running 1920x1200 and AC2 in 1440x900, so I have to move the Window a bit to the left before reszing occours). Trigger resize: When inside the game world, press ESC to get Options window, select client tab, open Rendering Options, select af new resolution (eg: 800x600), close Options window and answer Yes to "Save all changes" dialog, and no to "Confirm Rendering Options" (or wait for timeout). Then the client should fallback to orginal resolution[/indent]
  74.  
  75. Launcher and desktop shortcut examples
  76.  
  77. Make a local bin folder
  78. [code]
  79. mkdir ~/bin
  80. [/code]
  81.  
  82. Create ac2 bash script
  83. [code]
  84. nano ~/bin/ac2
  85. [/code]
  86.  
  87. [code]
  88. #!/bin/bash
  89. AC2LAUNCHER="$HOME/.wine/drive_c/Games/Turbine/Asheron's Call 2/ac2launcher.exe"
  90. wine "$AC2LAUNCHER" "$@"
  91. [/code]
  92.  
  93. Make executable
  94. [code]
  95. kimse@kimse-laptop:~$ chmod +x ~/bin/ac2
  96. [/code]
  97.  
  98. Start AC2
  99. [code]
  100. kimse@kimse-laptop:~$ ~/bin/ac2
  101. [/code]
  102.  
  103. or if you have added your bin folder to your $PATH (http://askubuntu.com/questions/60218/how-to-add-a-directory-to-my-path)
  104. [code]
  105. kimse@kimse-laptop:~$ ac2
  106. [/code]
  107.  
  108. Arguments passed to ac2 will be passthru to ac2launcher.exe, so you can create shorcuts thats signs you in, select server etc
  109.  
  110. Example:
  111. [code]
  112. kimse@kimse-laptop:~$ ac2 -u USERNAME 1 -p PASSWORD -x 0 -z 0 -w Dawnsong -1 -2 -3
  113. [/code]
  114.  
  115. Switches:
  116. [code]
  117. -!, --AcceptEULA : Accept the EULA by Default
  118. -c, --character : The Character to Play
  119. -x, --DataCenter : The datacenter server to use
  120. -z, --FauxDataCenter: The faux datacenter server to use (on the real datacenter)
  121. -h, --host : Which Game Server We Use
  122. -p, --password : Default Password
  123. -1, --SkipEULA : Automatically Advance Past the EULA
  124. -2, --SkipLogin : Automatically Advance Past Authentication
  125. -3, --SkipSelect : Automatically Advance Past Selection
  126. -t, --ticket : Authentication Ticket
  127. -u, --username : Default Username
  128. -w, --world : The World to Play In
  129. [/code]
  130.  
  131. Application menu example (you can also create it using GUI tools for your desktop enviorment)
  132. The icon 79B1_ac2launcher.0 (it might be named something else on your system) was added by AsheronsCall2.msi installer and Wine
  133. So i created the shortcut without icon, and used [i]XFCE Settings manager -> Main Menu[/i] tool to add icon from the list
  134. [code]
  135. kimse@kimse-laptop:~$ cat ~/.local/share/applications/ac2launcher.desktop
  136. [Desktop Entry]
  137. Name=Asheron's Call 2
  138. Version=1.3.1a
  139. Exec=/home/kimse/bin/ac2
  140. Comment=Asheron's Call 2 (Dawnsong Auto login)
  141. Icon=79B1_ac2launcher.0
  142. Type=Application
  143. Terminal=false
  144. StartupNotify=true
  145. Encoding=UTF-8
  146. Categories=Game;MMORPG;
  147. Path=
  148. GenericName=
  149. [/code]
  150.  
  151. Wine 1.5 install Ubuntu:
  152. [code]
  153. sudo add-apt-repository ppa:ubuntu-wine/ppa
  154. sudo apt-get update
  155. sudo apt-get install wine1.5 wine-gecko1.9
  156. [/code]