pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Borgwar

Borgwar - 0.8.2

Pierre Labatut (pedro)

Tags:

Description

=-= This is still a prototype =-=

  • contains its own map editor
  • contains a fight simulator, with IA resolution at 10 ms
  • contains its own sprite engine with nice performances
  • contains its own map editor
  • is able to save and load maps from the disk (windows only)
  • proposes 4 weapons, more are coming
  • proposes 3 goodies, more are coming
  • should be compatible with unix systems (let me know if there is any problem)

Changes

  • Unix compatibility fix
  • Resources loading progress bar implement
  • Potential visible set pre-calculation progress bar implement
  • Ray tracing optimization with tuples (definitely faster)
  • Primitive IA sample that carry on path finding in a unknown map

Links

Home Page: http://pierre.labatut.googlepages.com/borgwar
Source: http://pierre.labatut.googlepages.com/borgwar-src-0.8.2-py2.5.zip
Windows: http://pierre.labatut.googlepages.com/borgwar-bin-0.8.2-py2.5.zip

Screenshot


click to view original size

Releases

Borgwar - 0.8.2 - Sep 11, 2007
Borgwar - .81 - Sep 3, 2007
Borgwar - .8 - Aug 31, 2007

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

September 24, 2007 6:11am - Pierre Labatut - nickname: (pedro)
Thanks, i will do that!
I'm currently working on a IA, and I'm correcting a lot of bugs.
For now my computer is dead, the motherboard is down. The cool news is I bought a new one.
In brief, i will not deliver a new version until october.
September 21, 2007 1:30am - DR0ID - nickname: (dr0id)
Hi
you should add a readme.txt with instructions so people do know what they can do and how (I have not found out how to add a second IAs on the map). And I wonder why you need pywin32 (get rid of it).
September 12, 2007 3:06am - Pierre Labatut - nickname: (pedro)
Hi, new update !
September 4, 2007 6:00pm - Peter Enzerink - nickname: (garglebutt)
Sorry I missed the last line. The tilde actually points just after the last bracket on the last line. Here is the complete output:
===== Start application =====
application.AgentManager start
application.ActivateAgent start
application.TimerEventObservable start
===== Load IA modules =====
IA module found 'iatemplate' []
IA module found 'team1' [<class team1.WalkerIA at 0x82cd41c>, <class team1.WalkerIA at 0x82cd41c>]
IA module found 'team2' []
===== Load all resources =====
WARNING: The prototype 'control_toolpalette' has not resources key.
WARNING: The prototype 'edition_toolpalette' has not resources key.
===== Load default map =====
Traceback (most recent call last):
File "src/borgwar.py", line 1104, in <module>
app.Run(GetGame())
File "src/borgwar.py", line 690, in GetGame
gameinstance.LoadResources()
File "src/borgwar.py", line 653, in LoadResources
self.controler.LoadMap("./maps/default.map")
File "src/borgwar.py", line 518, in LoadMap
eval(line)
File "<string>", line 1
self.model.map.map[0][0].controler.SetPrototype(self.model.prototypes['default'])
^
SyntaxError: invalid syntax

September 4, 2007 5:20am - Pierre Labatut - nickname: (pedro) - 3/5
Hi,
I didn't find how to fix it with the provided stack trace. Any clue ? I'm going to test is with a ubuntu live... may be this week

Regarding eval, it is a temporary solution that helped me to write a saving / loading protocol in 5 minutes. Well, I agree to you, it is a security hole issue, but the security is not the goal of this game prototype.
September 3, 2007 11:08pm - Peter Enzerink - nickname: (garglebutt)
Progresses further than before on Ubuntu but now I get:

File "src/borgwar.py", line 518, in LoadMap
eval(line)
File "<string>", line 1
self.model.map.map[0][0].controler.SetPrototype(self.model.prototypes['default'])
^


Is it really necessary to use eval() to build a map? This seems to be a large potential security hole. It shouldn't be much work to read/write c.coord[0],c.coord[1],c.prototype.id and parse appropriately.
September 2, 2007 5:03am - Pierre Labatut - nickname: (pedro)
Thanks a lot for all teases comments. I will enhance unix compatibility soon.
September 1, 2007 1:51am - Lamonte Harris - nickname: (lamonte)
Ok I downloaded wingui from here: http://sourceforge.net/project/showfiles.php?group_id=78018 for python 2.5 deleted the dist folder then ran the build release file again and boom it worked :). Looks good. You should make it re sizable or autofix for different resolutions. Pretty cool.
September 1, 2007 1:37am - Lamonte Harris - nickname: (lamonte)
I got this when trying to install:

Traceback (most recent call last):
File "borgwar.py", line 3, in <module>
File "commands.pyo", line 5, in <module>
ImportError: No module named win32gui
September 1, 2007 12:21am - Peter Enzerink - nickname: (garglebutt)
A quick look at borgwar.bat shows that game is run using:

$ python src/borgwar.py

More seriously though, the game used Windows specific modules so can't be played on Linux:

Traceback (most recent call last):
File "borgwar.py", line 3, in <module>
from commands import *
File "/media/backup/source/Python/borgwar-src/borgwar/src/commands.py", line 5, in <module>
import win32gui, win32con, os
ImportError: No module named win32gui

Removing win32gui and win32con from src/commands.py fixed that error, then we get:

Traceback (most recent call last):
File "src/borgwar.py", line 1103, in <module>
app.Run(GetGame())
File "src/borgwar.py", line 691, in GetGame
gameinstance = GameM()
File "src/borgwar.py", line 625, in __init__
config=GetApplication().resourcemanager.Load("prototypes.cfg")
File "/media/backup/source/Python/borgwar-src/borgwar/src/resource.py", line 96, in Load
r=self.available[resId]=f.Build(path)
File "/media/backup/source/Python/borgwar-src/borgwar/src/resource.py", line 75, in Build
config.readfp(open(path))
IOError: [Errno 2] No such file or directory: '.\\res\\/prototypes.cfg'

Replacing ".\\res\\" with "./res/" on line 89 in src/resource.py fixed that (that should also work on Windows).

Next problem is that although Windows is only case aware, Linux is case sensitive and a lot of the filenames in res/ are *.BMP rather than *.bmp, at which point I lost interest.
August 31, 2007 12:19pm - Shiroku - nickname: (shiroku)
I tried to run it on linux, but this is the output:

fra@casa:~/Desktop/borgwar-src/borgwar-src/borgwar$ python build-release.py
===== Clean outputs directories =====
===== Search for data files =====
Traceback (most recent call last):
File "build-release.py", line 46, in ?
data_files=getDataFromPrototypes("res\\prototypes.cfg")+getDataFromFileSystem("maps")+getDataFromFileSystem("ia")
File "build-release.py", line 10, in getDataFromPrototypes
config.readfp(open(proto_file))
IOError: [Errno 2] No such file or directory: 'res\\prototypes.cfg'
fra@casa:~/Desktop/borgwar-src/borgwar-src/borgwar$
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 19, 2014

Apr 16, 2014


Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

Mar 11, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)