Windows

Hi,

I was unable to package a windows version of my game, but I was able to get it to work under windows today. There were a few of steps (sorry) ...

You'll need:
Steps:
  • Install python extensions (I was using python 2.7, i haven't tested with anything else)
  • Copy allegro dlls (all of bin directory in zip file) into the game folder (next to run_game.py)
  • For some reason I ended up with allegro.py included in my submission, this file is actually part of the allegro distribution. It needs to be patched to load the correct dlls on windows, so it needs to be replaced with this file - https://dl.dropboxusercontent.com/u/6231892/pyweek/16/allegro.py
  • My game requires python to be on the path. You can either set this yourself (if you know how) or copy this bat file into the project directory https://dl.dropboxusercontent.com/u/6231892/pyweek/16/run_game.bat
  • Run the game - either double click on run_game.bat,  ... or ... open a cmd shell in the game folder and type python run_game.py

I hope that is not too much effort. I will definitely make an effort to try everyone elses' games later in the week.

I also made the stupid mistake of starting the player in a basically featureless hexagon. So please don't be put off by the fact that you can't see anything change when you move _until_ you hit a wall, 

--Scott

(log in to comment)

Comments

On my Windows system, I needed to install dateutil as well.  Get it here: https://pypi.python.org/pypi/python-dateutil

Use something like 7zip to open the tar file on Windows.  Dump all of the files into a temporary directory then go to that directory in a command shell (cmd.exe or your favorite mingw bash thing) and run 'python setup.py install'.

Works like a charm.  I suck at the game, but it looks good.
Good to hear it works. 

I had a closer look at the pycollada dependencies, and actually it looks like lxml and numpy are required in addition to dateutil. I think because I installed pycollada using setuptools it automatically downloaded and installed the dependencies? Perhaps instead of installing my version of pycollada, its better to get the official one (https://github.com/pycollada/pycollada/archive/master.zip) and install it using setuptools.

And I completely forgot about the extraction step, I used 7zip too, without even thinking about it. Ugh. Next time I'll have to make more effort to package properly.