PyBZFlag

BZFlag related only please...please attach large images
Post Reply
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

PyBZFlag

Post by blast »

Well, I was really bored yesterday, so I spent a few hours mucking around with Python and the old PyBZFlag code base. I got it running enough to get a few screenshots. If I recall correctly, it was an attempt to make a BZFlag 1.7-like client in Python. I'm not sure if it was protocol compatible or not.

http://static.bzexcess.com/misc_screenshots/pybzflag/

The two that say "Widget World" at that URL are from the map thumbnail generator. It takes the map file and generates a top-down view as a PNG file.

The rest are from the 3D UI mode (Pretty much observer mode with the controls of BZEdit) of PyBZFlag, running on a randomly generated map from the python bzfs. There is some noticeable issues with the depth buffer (?) when you move further away from objects. The teleporters use multiple textures to make them look animated.

I haven't yet gotten the game mode to work, since there is some inheritance issue with the classes that make that possible.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Tanner
Private First Class
Private First Class
Posts: 575
Joined: Sat Sep 17, 2005 3:46 am
Location: Atl, GA
Contact:

Post by Tanner »

Pretty neat blast.

-Tanner
Tanner - Segway HT i180 Red Owner - Random Map Creator - BZStocks - TS Software

Image
Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony »

WOW those textures are awesome where did you get them
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

They are part of PyBZFlag.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Anthony
Private First Class
Private First Class
Posts: 222
Joined: Fri Jan 11, 2008 4:01 pm

Post by Anthony »

oh sorry i was thinking pybzedit :oops: and how do you download it I'm a bit confused :|
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

You have to 'check it out' from the bzflag SVN repository. Erm...

Code: Select all

SVN co http://bzflag.svn.sourceforge.net/svnroot/bzflag/trunk/pybzflag/
Trying not to sound derogatory, what was the point of pybzflag apart from the obvious?
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

Teppic wrote:Trying not to sound derogatory, what was the point of pybzflag apart from the obvious?
Heck if I know. It did have some cool features/applications as part of it. One of those is, again, the ability to output map thumbnails. It also had some new graphical modes instead of just the standard 3D view, at least for observing.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Post by ducktape »

What is pybzflag? Was it made to possibly replace the normal bzflag? Is it still being worked on?
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

it was an attempt at doing the 1.10 version of bzflag in python.

it is long dead.
ImageJeffM
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

blast wrote:One of those is, again, the ability to output map thumbnails.
Yeah I was looking at that, with a view to mod_python-ing it, another day maybe...
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

The sources did not run out-of-the-box. I spent a day or two hacking code (including a change or two in PyGame or PyOpenGL) to get it to partially work. I ran through 3 different versions of python (and it's dependencies) just to finally get it to work. There really isn't any point for someone with no programming experience to try to run it.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Post by dango »

blast
i noticed that the tank textures in the pybzflag data were different. Have you had success in having a tank player in pybzflag, and taken a picture of that? I am wondering what the tanks look like.
Image
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

Never got that working. I was getting some error when trying to do that IIRC. Like I said, it wasn't fully working. ;) I should try to convert the video clips I took so that people can view them.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Post Reply