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:
- Allegro5 (I tested with this http://cdn.allegro.cc/file/library/allegro/5.0.8/allegro-5.0.8-mingw-4.7.0.zip)
- PyOpenGL (hopefully everyone already has this, but the version I used is this one https://pypi.python.org/pypi/PyOpenGL/3.0.2
- Setuptools (I'm not sure if this is required... and most people should already have it ttps://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20)
- PyCollada (this is only available from git, but I provided a win32 version here - https://dl.dropboxusercontent.com/u/6231892/pyweek/16/pycollada-0.4.win32.exe)
Steps:
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
- 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
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.
flyingfox on 2013/04/23 05:33:
On my Windows system, I needed to install dateutil as well. Get it here: https://pypi.python.org/pypi/python-dateutilUse 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.