windows.html (2489B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 4 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 5 6 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 7 8 <head> 9 <title>dopewars and Microsoft Windows</title> 10 <meta charset="utf-8"/> 11 </head> 12 13 <body> 14 <h1>dopewars and Microsoft Windows</h1> 15 16 <p>dopewars runs natively on Win32 systems (Windows 7 or later). It runs by 17 default as a dopewars client, using the familiar Windows interface, but 18 the traditional text-mode client is also available on Windows, as well as 19 the dopewars server and AI players. 20 </p> 21 22 <p>Binaries can be obtained from the main 23 <a href="https://dopewars.sourceforge.io/download.html">download site</a>, or 24 dopewars can be 25 <a href="https://github.com/benmwebb/dopewars/blob/develop/win32/README.md">built 26 from source code</a>.</p> 27 28 <p>In virtually all respects, the Unix and Win32 versions of dopewars should be 29 identical. Both will accept the same command line parameters and configuration 30 options. However, since the standard Unix paths for the high score file and 31 configuration files do not translate well to Windows, by default the program 32 will look for the high score file <b>dopewars.sco</b> in the current 33 user's application data directory (e.g. 34 <tt>C:\Users\foo\AppData\Local\dopewars\</tt>), and will read a global 35 configuration file <b>dopewars-config.txt</b> from the directory in which the 36 dopewars binary was installed, followed by a per-user configuration file of 37 the same name in the AppData directory.</p> 38 39 <p>The dopewars server can function as a 40 <a href="https://docs.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications">Windows service</a> when run with 41 the <tt>-N</tt> flag. One way to set this up is to use the 42 <a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sc-create">sc create</a> utility from a command prompt, e.g.</p> 43 44 <p><tt>sc create dopewars binpath= "C:\Program Files\dopewars-1.6.1\dopewars.exe -N"</tt></p> 45 46 <p>Note that this will run dopewars as the Local System user, so will look for 47 high score/config files (and create a log file) in the corresponding AppData 48 directory, e.g. <tt>C:\Windows\System32\config\systemprofile\AppData\Local</tt>.</p> 49 50 <hr /> 51 <ul> 52 <li><a href="index.html">Main index</a></li> 53 </ul> 54 <p> 55 Last update: <b>05-12-2020</b><br /> 56 Valid <a href="http://validator.w3.org/check/referer">XHTML 1.1</a> 57 </p> 58 </body> 59 </html>