Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cs-470:bzrflag-on-windows [2015/01/06 21:45] (current)
ryancha created
Line 1: Line 1:
 +[https://​facwiki.cs.byu.edu/​cs470sp10/​index.php/​BZRFlag_on_Windows Tutorial comes from this site] and is provided without guarantees.
  
 +I was successful in getting BZRFlag to run on Windows. ​ In getting this thing to work I was reminded why I avoid developing on Windows, but it does work.
 +
 +I used Python 2.6 from the official site.  I also downloaded the Pygame Windows installer for Python 2.6, the NumPy Windows installer for Python 2.6, and pyparsing.zip. ​ Run the Python installer. ​ Then, to install the needed extensions, run the installers for NumPy and PyGame. ​ Finally, run <​code>​\Python26\python.exe setup.py install</​code>​ in the PyParsing folder (I couldn'​t get the Windows installer for this one to work, you may have better luck.)
 +
 +If you want to skip all the installers, here's a ZIP file of the Python install that resulted from all these installs on my computer. ​ It should work if you extract it to the root of the drive you plan to run the game from (i.e. C:\): [http://​jmnet.us/​python26_win_bzrflag.zip python26_win_bzrflag.zip (25MB)]
 +
 +Then you will need to clone the git repository. ​ I leave this step to you... ​ (Matt - If you really can't get git to work, you could always scp the ~cs470s/​bzrflag directory, but you will have to be sure to check for updates yourself)
 +
 +Finally, you will need batch files to replace the shell scripts to start the game up.  Here are my direct ports of the shell scripts to batch files, including some terrible terrible hacks (like using '​ping'​ to simulate '​sleep'​. ​ Eugh...): [http://​jmnet.us/​bzrflag_startup.zip bzrflag_startup.zip (4KB)]
 +
 +Known issues:
 +*The players in runme.bat seem to crash occasionally. ​ I don't know why and haven'​t taken the time to debug it (Matt - it's probably a bug in the occgrid for the TA agents - you should definitely not be able to debug it, because you shouldn'​t have access to the code.  If you do, let me (the TA) know, so I can fix that.  Just change runme.sh to use agents that don't crash (like agent0.py) ).  The players in goodrich.bat work just fine.  [Update: This happens in Linux too]
 +*Some of the batch files open up a ton of terminal windows. ​ Nothing I can do about this, it's the only way to run multiple instances of python on Windows...
 +
 +
 +If anyone has suggestions for improvements,​ by all means edit this page!  --[[User:​Nielsenj|Nielsenj]] 04:57, 3 May 2010 (UTC)
 +
 +
 +== ActiveState Python ==
 +
 +I got it working with ActiveState Python. ​ The following items are needed:
 +
 +* [http://​www.activestate.com/​activepython/​downloads ActiveState Python] - Download the 32-bit as the 64-bit won't let you install any modules without paying
 +* [http://​www.pygame.org/​download.shtml PyGame] - If you want 2.7 or 3.x try [http://​www.lfd.uci.edu/​~gohlke/​pythonlibs/#​pygame this site]
 +
 +Steps to get working:
 +# Install ActiveState Python
 +# Install PyGame
 +# Open powershell or cmd and run ''​pypm install numpy pyparsing''​
 +
 +As for git, I use [http://​code.google.com/​p/​msysgit/​ msgit] with [http://​code.google.com/​p/​tortoisegit/​ TortoiseGit].
 +
 +After the repository is cloned, run the command ''​python bin\bzrflag''​. ​ For telnet, I just used the built in one (this might need to be installed via the control panel if on Windows 7).  ​
 +
 +I did this with Python 2.7 and I was able to do the first assignment, at least... we'll see if it works as things progress.
cs-470/bzrflag-on-windows.txt ยท Last modified: 2015/01/06 21:45 by ryancha
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0