Page 1 of 1

Web based client

Posted: Wed Apr 01, 2020 10:35 pm
by Zehra
I've begun writing a web based client for BZFlag with some limited success.
Some of the issues are due to limited knowledge and documentation of the protocol itself, but with sufficient time, it shall be possible to do some limited web based interactions within a web interface.

While it is highly unlikely that a full web based client will be operational, a limited "bzadmin" type of client is not far fetched and may soon be available, if fully operational, but may be limited to "local" use only to follow list server usage.
(As logins may not be forwarded.)

Based on the results, I'll either provide a summary or release of code, perhaps both, but this is yet to be determined.

-Zehra

Re: Web based client

Posted: Sat Jun 20, 2020 1:40 pm
by WorldOfTanks23
Are you using WebAssembly?

Re: Web based client

Posted: Sat Jun 20, 2020 2:57 pm
by Zehra
Nope.

Re: Web based client

Posted: Tue Jun 08, 2021 7:08 am
by jessicat
hiiii ❤️ so I know this is an old thread, but depending on what your goals are and how low your standards are, you could just use bzadmin over php instead of making a unique web frontend. I **just** did something like this for Minecraft and then happened to see this thread so:

https://github.com/jessicarobo/bzfa-php

This isn't really webdev so much as linux shenanigans. Basically, you take advantage of bzadmin's "stdboth" ui option, read its input from a fifo, and send its output to a file. Then PHP reads the output file and echoes the commands you type into the input file. This is an extremely simple setup but sadly not very portable (I don't think Windows can do fifos?). I hope someone finds it useful anyway~

You probably want some kind of authentication in front of this but I think even basic http auth over SSL should be okay.

Re: Web based client

Posted: Wed Jun 09, 2021 8:10 pm
by Zehra
I like what you did with bzfa-php, as it does provide a nice and innovative way of using bzadmin. (It's not too complex and it works with pretty much any browser.)

Originally I started this thread more as an April fools joke and later I seriously considered to actually make a fully working client. (I did some research and it was possible to make it *working*, but perhaps not really playable to an extent.)

Most of what was I thought of at the time was sort of wrapping the game protocol via some server-side system and building a front-end for interfacing with it, but it didn't progress much past the drawing board. Much of the communications would have been implemented via the WebSocket protocol. Although, I did begin work in reading the BZFlag protocol for attempting to write a specification, it remains an uncompleted work in progress.

Looking back, I probably should have looked more into wrapping bzadmin. I'll probably revisit this idea sometime and integrate the work made here. :)

-Zehra