News:

Come Chat with us live! Learn how HERE!

Main Menu

Developing a Server Browser for Tremulous

Started by nyarla, October 30, 2006, 05:18:16 PM

nyarla

Since i really HATE the in-game server browser i was trying to write my own browser.
I'm using the java language, beacuse i know that language very well,it is one of the best net-oriented languages out there and , last but not least, the program can be ran on Windows or linux, no matter what OS ppl use.
Acutally i just concentrated on everything else but the UserInterface. So my program connects to the master server, gets the server list, and gets every information i need (all the vars,the players list, the country where the server is located  etc. ) from every server.
What i need now is just to write the GUI (i think using Swing is the best choice) and i was wondering if  anyone wanted to help me with that, or maybe just suggest me what could be nice to be found in such a game browser...
:D

kevlarman

Quote from: nyarlaSince i really HATE the in-game server browser i was trying to write my own browser.
I'm using the java language, beacuse i know that language very well,it is one of the best net-oriented languages out there and , last but not least, the program can be ran on Windows or linux, no matter what OS ppl use.
Acutally i just concentrated on everything else but the UserInterface. So my program connects to the master server, gets the server list, and gets every information i need (all the vars,the players list, the country where the server is located  etc. ) from every server.
What i need now is just to write the GUI (i think using Swing is the best choice) and i was wondering if  anyone wanted to help me with that, or maybe just suggest me what could be nice to be found in such a game browser...
:D
swing, aside from being a bit too big for something like a server browser, is really hard to get to look good, i would suggest sticking to the awt (unless you feel like doing it in C, and using gtk+)
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Odin

Why not just develop the in-game server browser, so that everyone will have it in the next version of Tremulous?

rasz_pl

the ONLY thing lacking in in-game trem browser is the GUI, its utter CRAP, it uses Quake3 GUI subsystem with CRAP fonts. Thats what needs to be worked on, the rest is fine and can be polished further easily.

With better fonts we could fit more info on the screen in a much more intuitive way.

gareth

hey!

im doing much the same thing, mainly for fun/interest than because i think the in game one is really that crap. also im using java :O Im using swt for my gui. Should be finished sometime. :)


nyarla

Quote from: garethhey!

im doing much the same thing, mainly for fun/interest than because i think the in game one is really that crap. also im using java :O Im using swt for my gui. Should be finished sometime. :)


Cool !
I really dont know SWT components, mainly beacuse i always worked with Oracle Jdeveloper and Borland JBuilder insted of Eclipse... do u think they are better than swing?
I never appreciated using "third party" libraries for anything i can do with JDK packeges, but maybe i'm wrong  :P

Anyway , i got a stupid question for you: how do ping a server ? Do u just check how much time passes between the moment u send the info request to server and the moment u receive the response UDP packet or what else?

Puma

ou have no life?
http://www.uncommonforum.com/
Here you can find some help.

vcxzet

#CAPS ON
OK WHY DONT YOU IMPROVE THE INGAME ONE
AND SEND A PATCH SO PEOPLE CAN USE IT
#CAPS OFF

stalefries

vcxzet has a point, all you're doing is writing excess code, and if anyone wants to use it they have to download it in addition to downloading tremulous. It's a great idea, but it'd be better if you just helped fix the tremulous server browser.
color=green]:[/color]nac:stalefries
My boring website that you hate | GRAAAAGHH!


Puma

-_-
Quote#CAPS ON
OK WHY DONT YOU IMPROVE THE INGAME ONE
AND SEND A PATCH SO PEOPLE CAN USE IT
#CAPS OFF


Quotevcxzet has a point, all you're doing is writing excess code, and if anyone wants to use it they have to download it in addition to downloading tremulous. It's a great idea, but it'd be better if you just helped fix the tremulous server browser.

In game ,  fav servers is enough, i think.
Nobody said, u must use it...
ou have no life?
http://www.uncommonforum.com/
Here you can find some help.

Odin

Quote from: MaltagearionWhat I want is a lobby.
Hahah, yea, then it can be all like, Battle.net and shit. Then we'd have bots and channels. Then someone would make a loader bot and screw everything up.

rasz_pl

Quote from: Odin
Quote from: MaltagearionWhat I want is a lobby.
Hahah, yea, then it can be all like, Battle.net and shit. Then we'd have bots and channels. Then someone would make a loader bot and screw everything up.

well, there was this game called UT once, it had build in IRC and HTML browser, and it worked

Lava Croft

Nice work on the server browser gareth, please do stick to it's core business of browsing servers, and do not waste time with adding features like a lobby and what not. Looking forward to it.

Lakitu7

Both KQuery and QTracker have Trem support. The main things missing from them however are the same things that can't be done here either because the servers don't return the information:

Friendly Fire
Build Points
Mods (TremX?)

These things are the most important pieces of information you'd need to know about a server, yet you can't sort servers by them, because they're not included in the list of "Rules" sent by the server.

Any way around THAT?

gareth

Quote from: nyarla

Cool !
I really dont know SWT components, mainly beacuse i always worked with Oracle Jdeveloper and Borland JBuilder insted of Eclipse... do u think they are better than swing?
I never appreciated using "third party" libraries for anything i can do with JDK packeges, but maybe i'm wrong  :P


"better" ? yes imo. should you use it? thats up to you.

Quote from: nyarla
Anyway , i got a stupid question for you: how do ping a server ? Do u just check how much time passes between the moment u send the info request to server and the moment u receive the response UDP packet or what else?


yes:
http://en.wikipedia.org/wiki/Ping

PwNz!

patch would be nice..so it would work for more than 1 operating system...plz think of the others..like me..who uses mac and linux :cry:
r either hacking or asian! ~V//Arch_Enemy

Why do we kill people who are killing people to show that killing people is wrong?  ~Holly Near

To kill a man is not to defend a doctrine, but to kill a man.  ~Michael Servetus

Kaleo

Quote from: rasz_plwell, there was this game called UT once, it had build in IRC and HTML browser, and it worked

I remember that, it was GOOD because it had INBUILT irc.

Seriously, somone needs to do that for Trem
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...