BZFLAG in html

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
Benji
Private First Class
Private First Class
Posts: 17
Joined: Fri Nov 03, 2006 2:03 am
Location: USA

BZFLAG in html

Post by Benji »

I think it would be cool if the bzflag client could also be written in an html code so people could post the game onto their website. Is this possible?
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Um, no.

But patches are welcome.

EDIT: In case you weren't aware, this is not even technically feasible. HTML is a mark-up language for presentation. That's it. BZFlag is such a complex game, it couldn't even be programmed in JavaScript (well, you could, but no one would want to, and it'd be thousands of times as slow as the real compiled C++ client). The only feasible port would be Java for inside a browser, but even then it would not be a particularly fun to program (or play) port. Of course, if you really want it, patches are always welcome. :)
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

HTML is, as A Meteorite said, is only code for presenting something... there is no logic involved.

This is an example of basic HTML

Code: Select all

    <div>
      <ul>Catagories
      <li>Photoshop Tutorials</li>
      <li>Tech News</li>
      <li>Wordpress Templates</li>
      <li>Misc.</li>
      </ul>
   </div>  
Note how there is no "logic", nothing saying "If A is equal to B, then Run C", or something like that, anyways...

Now, here is an example of a language with Logic (In this case, PHP)

[ Darn... PHPBB won't let me insert PHP... find it here: http://home.kyleve.net/phpexample.txt ]

Although they may appear similar (in the basic structure, anyways), they do two very different things.
User avatar
Benji
Private First Class
Private First Class
Posts: 17
Joined: Fri Nov 03, 2006 2:03 am
Location: USA

Post by Benji »

Thanks guys. I was wondering this because you see some Miniclip and other websites games written in html for the public to post that game to their website. I know BZflag is more complex then these games so it would be harder to do. I also know it would never be as great as playing in the real client but for people who just want to try BZflag with out downloading anything this might be helpful. Thanks again for your help.
User avatar
macsforme
General
General
Posts: 2069
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme »

A JavaScript client wouldn't be too bad for a 2D client, I think... but again, what's the point? It would be an awful lot of work.
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

Benji
That is _not_ written in HTML....

You simply imbed the game into the webpage with HTML. Once again, as Met said, the game itself is written in either Flash, or Javascript.
Last edited by Winny on Sun Oct 14, 2007 10:08 pm, edited 1 time in total.
User avatar
Benji
Private First Class
Private First Class
Posts: 17
Joined: Fri Nov 03, 2006 2:03 am
Location: USA

Post by Benji »

O I see.
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r »

A cheesy pseudo-3D Flash client could be fun... still not worth the effort though. :p
Optimism is just a milder alternative to denial.
F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s »

Better yet, you could make a web client that sends exactly would you type in to the server, and you receive what it says. Think of it as BZAssembly.

Of course, we all know that this is never going to happen. I'm fine with the client, and I am anti-Flash (in today's world, we call it pro-Desktop). I've endured a ton of flash crap, so I wouldn't really expect much from the game.

Unless it was written in Perl. Then it would be a different matter.
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 »

F687/s wrote:Better yet, you could make a web client that sends exactly would you type in to the server, and you receive what it says. Think of it as BZAssembly.

Of course, we all know that this is never going to happen. I'm fine with the client, and I am anti-Flash (in today's world, we call it pro-Desktop). I've endured a ton of flash crap, so I wouldn't really expect much from the game.

Unless it was written in Perl. Then it would be a different matter.
If you're speaking of a web BZAdmin, AAA has already created something like that in his server management software using his BZFlag_Info and AJAX.

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

Image
User avatar
Joe-Schmoe
Private First Class
Private First Class
Posts: 192
Joined: Mon Jul 24, 2006 1:10 am
Location: This field unintentionally left blank.

Post by Joe-Schmoe »

I guess the point would be that you don't have to download anything to run the game.

That's useful for people like me who are paranoid about security/safety issues, or if you're using the game on a public computer such as in a library.

Also, since it's embedded into a webpage, you could have stats, buddylists, and all sorts of other stuff around the edges, though this can probably be done anyway by opening a browser and playing the game windowed. Or maybe certain servers only serve to clients in a browser on their site. That way they can sell ad space.
Join MI6!
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast »

As far as I know, Flash does not have TCP/IP socket support... and, what is the point? Copy a recent (ex: 2.0.10RC3) BZFlag onto a USB stick and use a portable launcher application to pass it the proper -confdir location. BAM! Portable BZFlag...
"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
F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s »

> If you're speaking of a web BZAdmin, AAA has already created something like
> that in his server management software using his BZFlag_Info and AJAX.


That was kind of a joke. I meant something along the lines of netcat.

The one thing that perplexes me is...why are we even talking about this if we all know it's not going to happen?
Post Reply