Official Soldat Forums

Official Content => Soldat Developer Log => Topic started by: FliesLikeABrick on January 29, 2011, 09:35:08 pm

Title: New lobby server
Post by: FliesLikeABrick on January 29, 2011, 09:35:08 pm
Please join me in thanking jrgp for his hard work over the past few days.  We now have a new lobby server which appears much more stable, efficient, and bug-free compared to the ones that have been running since 1.4.0 was released.

In order to address other issues with MM's server, I wanted to upgrade the version of Ubuntu on it.  In order to do that, I need to stop using vmware server 1.0.x, but the current lobby server ran inside a virtual machine on that.  jrgp offered to rewrite the lobby server and he has done it in a few days.  It uses the same protocol enesce and I came up with for 1.4.0, and he based it off of my existing code for the lobby, but with some improvements I've been meaning to incorporate.

Great job jrgp, this will be a big help.

In other news, these people need to fix their servers:
Ignoring server with invalid port: server [!PKS CSSC Tournament #1] (88.198.25.26:83001)
Ignoring server with invalid port: server [HOME OF THE RAGE] (204.80.93.33:75000)
Ignoring server with invalid port: server [(WM)Wracko's Sniper Box] (85.214.158.14:85214)
Ignoring server with invalid port: server [(WM)CW server ::] (204.80.93.33:99999)
Ignoring server with invalid port: server [#Soldat.Fr Gather] (88.198.25.26:76567)
Ignoring server with invalid port: server [!PKS CSSC Tournament #2] (88.198.25.26:93001)


You can't have a port over 65535.  The soldat server should be updated to refuse to stat when a too-high port is specified.
Title: Re: New lobby server
Post by: Boblekonvolutt on January 29, 2011, 09:39:29 pm
[03:38] <Boblekonvolutt> Hey, you fixed the ports
[03:39] <Boblekonvolutt> after I whined at that
[03:39] <Boblekonvolutt> the system works :D
Title: Re: New lobby server
Post by: DorkeyDear on January 29, 2011, 09:39:49 pm
Thanks jrgp, many of us very much appreciate your hard work.

Relating to the port issue. Maybe the Soldat server shouldn't be able to start up with invalid ports (as it does with already 'binded' ports, for lack of a better word).
Title: Re: New lobby server
Post by: jrgp on January 29, 2011, 09:42:42 pm
Thanks jrgp, many of us very much appreciate your hard work.

You're welcome, guys. I really, really enjoy the Soldat work I do.

If anyone notices anything unusual with the new lobby, please tell us in this thread.
Title: Re: New lobby server
Post by: FliesLikeABrick on January 29, 2011, 09:46:31 pm
Thanks jrgp, many of us very much appreciate your hard work.

Relating to the port issue. Maybe the Soldat server shouldn't be able to start up with invalid ports (as it does with already 'binded' ports, for lack of a better word).

.... someone didn't read my post before responding.  well played [ass]
Title: Re: New lobby server
Post by: xmRipper on January 29, 2011, 09:51:30 pm
What about iptocountry database? I think it was a very old db and updating it was very hard as you said.
Title: Re: New lobby server
Post by: FliesLikeABrick on January 29, 2011, 09:54:03 pm
same one but it was updated recently
Title: Re: New lobby server
Post by: xmRipper on January 29, 2011, 09:57:28 pm
uhm ok. I haven't checked for a long time ^^
Title: Re: New lobby server
Post by: Prodigyx on January 29, 2011, 11:30:24 pm
http://rr.soldat.pl/ is offline.

Title: Re: New lobby server
Post by: Blacksheepboy on January 29, 2011, 11:56:09 pm
A virtual machine inside a virtual machine? I dun even know... Whatever you meant sounds pissy.
Title: Re: New lobby server
Post by: jrgp on January 30, 2011, 12:22:53 am
A virtual machine inside a virtual machine? I dun even know... Whatever you meant sounds pissy.

The vmware he mentioned is the program vmware running under ubuntu which hosts the virtual machine the lobby used. It isn't a vm inside of a vm.....dawg.
Title: Re: New lobby server
Post by: Monsteri on January 30, 2011, 03:50:37 am
Quote
Please join me in thanking jrgp
Thank you.
Title: Re: New lobby server
Post by: TheV on January 30, 2011, 06:44:16 am
Is it online now? Cause I just loaded up soldat and... I can't seem to connect to the lobby ;\
Title: Re: New lobby server
Post by: Furai on January 30, 2011, 07:55:34 am
Dunno if I spotted the bug or it should be like this but it displays mapnames of some servers with some random numbers in end. (Look like addresses)
Title: Re: New lobby server
Post by: SyavX on January 30, 2011, 08:14:26 am
Ok, what we have:
Quote
[12:41]   SyavX: "If anyone notices anything unusual with the new lobby, please tell us in this thread."
[12:41]   SyavX: jrgp_ there is smth wrong, look at map names on some servers. like:
[12:41]   SyavX: ctf_Nuubiaa84a3, ctf_Laosa4b0e, ctf_Guardianaf36f
[12:41]   SyavX: etc.
[12:42]   Gizd: random chars are added to mapname to make lobby less boring
[12:49]   dnmr`: sweet, new maps!
[14:48]   SyavX: does any1 have problems with servers atm?
[14:50]   Beo: lobby not responding
[14:53]   CurryWurst: yeah several ppl on sf complain about the lobby being down
[14:56]   SyavX: no, i mean server hosting
[14:56]   SyavX: i know that lobby is down now
[14:57]   CurryWurst: no, my soldat server just runs fine
[15:05]   SyavX: looks like ive found the reason - LOBBY
[15:05]   SyavX: ta-da
[15:05]   minus: servers running fine
[15:05]   SyavX: my servers were crashing right after restarting
[15:06]   SyavX: but after disabling lobby registration looks like it’s gone
[15:07]   SyavX: “Thread creation error: Resource temporarily unavailable”
[15:08]   dnmr`: great stuff
[15:08]   SyavX: and it looks like lobby server error
[15:08]   SyavX: not local

FreeBSD 8.2-PRERELEASE
Title: Re: New lobby server
Post by: jrgp on January 30, 2011, 08:55:48 am
Dunno if I spotted the bug or it should be like this but it displays mapnames of some servers with some random numbers in end. (Look like addresses)

That isn't going to happen again.

Is it online now? Cause I just loaded up soldat and... I can't seem to connect to the lobby ;\

I think it may have frozen somehow. I just restarted it and it seems fine. I'm going to obviously be investigating things.

FreeBSD 8.2-PRERELEASE

What?
Title: Re: New lobby server
Post by: DorkeyDear on January 30, 2011, 10:16:13 am
.... someone didn't read my post before responding.  well played [ass]
I do apologize for missing the small piece of text when reading (common simple mistake), but the name calling was uncalled for.


I figured I would let everybody know that the weapon mod filtering bug is already known of:
Quote from: jrgp
<jrgp> for those who remember the lobby discussion earlier, the WM filtering thing is a bug in the soldatserver and acts exactly the same way in the previous lobby
Title: Re: New lobby server
Post by: SyavX on January 30, 2011, 11:04:45 am
FreeBSD 8.2-PRERELEASE
What?
Did you read the quoted part of my previous message?.. That one where I was talking about server crashing caused by lobby errors.

FreeBSD 8.2-PRERELEASE - is the OS version used on the server where those soldat servers are hosting.
Title: Re: New lobby server
Post by: jrgp on January 30, 2011, 11:14:44 am
You're running the linux version of the soldatserver under freebsd? I tried that two years ago and it didn't work well.

The lobby should be fine now.
Title: Re: New lobby server
Post by: jrgp on January 31, 2011, 09:37:26 am
Just added some minor new functionality (that will essentially only have effect on third party apps which request the server list) to the lobby server: in the request string (http://devs.soldat.pl/wiki/index.php?title=Client-Lobby_Protocol#101_Request_List), if you specify 0 for the version, instead of, say, 50, you'll get servers of any version instead of just 1.5.0.
Title: Re: New lobby server
Post by: KYnetiK on January 31, 2011, 09:55:25 am
I cannot find any local (Australian) servers using the in-game lobby, but can find them perfectly well @ soldat.thd.vg/en/lobby.

Has been like this for almost a week now.
Title: Re: New lobby server
Post by: Monsteri on January 31, 2011, 09:57:27 am
I just realized that I haven't loaded lobby for weeks.
Title: Re: New lobby server
Post by: jrgp on January 31, 2011, 10:00:49 am
I cannot find any local (Australian) servers using the in-game lobby, but can find them perfectly well @ soldat.thd.vg/en/lobby.

Has been like this for almost a week now.

See attached screenshot. I've verified that the server list at http://soldat.thd.vg/en/lobby is identical to the one the client receives.
Title: Re: New lobby server
Post by: KYnetiK on January 31, 2011, 10:20:13 am
Not in Australia, mate.

Check the attached shot - Gamearena wont even show up. No Australian servers do. Anything <200ping does not appear. I have modified absolutely nothing in regard to my network. Net speeds are unchanged. My ISP also owns GA.

Title: Re: New lobby server
Post by: Bonecrusher on January 31, 2011, 10:28:17 am
Well just checking it myself and it seems to work(I'm not in au)
Title: Re: New lobby server
Post by: KYnetiK on January 31, 2011, 10:32:38 am
Exactly... and so I repeat the sentiment of my first post :

W T F


EDIT: I thought, maybe somethings weird with my filters (which I had NOT altered) so I checked em. I had BE secure filter on. I flicked it off, and GA servers appear - with Japanese flags. Go figure.

Im guessing the lobby system itself was having parameter changes in regard to BE, and/or so were the GA admins, thus requiring me to readjust my filter settings.
Title: Re: New lobby server
Post by: jrgp on January 31, 2011, 11:02:30 am
Does anyone else have that problem? Maybe it's your isp's fault.

I'm going to be releasing a standalone lobby requester soon. That should yield interesting results for you.
Title: Re: New lobby server
Post by: Beowulf Agate on January 31, 2011, 11:34:45 am
I can see australian servers, sure, but with japanese flags  :)
Title: Re: New lobby server
Post by: jrgp on January 31, 2011, 11:53:08 am
Ok, download/extract this somewhere: http://jrgp.us/misc/lobbyClient.zip

It requires java, so make sure you have that installed. Open cmd.exe, cd to where you extracted it, run windows.bat

Same works for linux/bsd/mac; run unix.sh instead.

Show me a screenshot of it and tell me if it shows your game arena aus servers.

(it kinda looks like this (http://jrgp.us/screenshots/lc_w.jpg) on windows)


New native windows lobby tester: (compiled under linux with gcc-mingw32) http://jrgp.us:89/misc/serverLister.exe
Cross platform source: http://jrgp.us:89/misc/client.cpp.txt
Title: Re: New lobby server
Post by: xmRipper on February 19, 2011, 07:29:06 am
(...)
New native windows lobby tester: (compiled under linux with gcc-mingw32) http://jrgp.us:89/misc/serverLister.exe
Cross platform source: http://jrgp.us:89/misc/client.cpp.txt
Gives 404 Not Found error for me.
Title: Re: New lobby server
Post by: jrgp on February 22, 2011, 08:35:22 am
(...)
New native windows lobby tester: (compiled under linux with gcc-mingw32) http://jrgp.us:89/misc/serverLister.exe
Cross platform source: http://jrgp.us:89/misc/client.cpp.txt
Gives 404 Not Found error for me.

Unfortunately I had a few hard drive crashes and never thought of backing up the web root of that machine. :-/
Title: Re: New lobby server
Post by: Monsteri on February 22, 2011, 08:53:48 am
Hmm, thought to say, that I have noticed that homepage is updated. It's a lot better now, may I know, who did it?
Title: Re: New lobby server
Post by: jrgp on February 22, 2011, 09:02:35 am
Hmm, thought to say, that I have noticed that homepage is updated. It's a lot better now, may I know, who did it?
me/MM, as usual.
Title: Re: New lobby server
Post by: Monsteri on February 22, 2011, 09:06:44 am
Thanks. It's a bit boasty though, but I like it more now.
Title: Re: New lobby server
Post by: jrgp on February 22, 2011, 05:52:49 pm
(...)
New native windows lobby tester: (compiled under linux with gcc-mingw32) http://jrgp.us:89/misc/serverLister.exe
Cross platform source: http://jrgp.us:89/misc/client.cpp.txt
Gives 404 Not Found error for me.

Unfortunately I had a few hard drive crashes and never thought of backing up the web root of that machine. :-/

hmm scratch that, I actually did: http://jrgp.us/misc/lclient/
Title: Re: New lobby server
Post by: Prodigyx on February 26, 2011, 11:20:40 pm
SoldatX.com Advanced Lobby:

http://www.soldatx.com/lobby/

You can see details of the players inside servers. Just move mouse over the players/playerlimit info.

:)
Title: Re: New lobby server
Post by: jrgp on February 27, 2011, 02:13:15 am
SoldatX.com Advanced Lobby:

http://www.soldatx.com/lobby/

You can see details of the players inside servers. Just move mouse over the players/playerlimit info.

:)

hmm. interesting. You're using the lobby client socket protocol to get a list of servers and then querying each one for gamestat.txt (hence why the page takes forever to generate), correct?
Title: Re: New lobby server
Post by: Prodigyx on February 27, 2011, 09:06:07 am
SoldatX.com Advanced Lobby:

http://www.soldatx.com/lobby/

You can see details of the players inside servers. Just move mouse over the players/playerlimit info.

:)

hmm. interesting. You're using the lobby client socket protocol to get a list of servers and then querying each one for gamestat.txt (hence why the page takes forever to generate), correct?

Correct, but if gamestat.txt download is not possible I try to get info using ASE protocol.

Also my system uses cache(if lot of people are using the page at same time) and uses latest list of servers from cache if official Soldat lobby is offline. So this lobby is perfect =P
Title: Re: New lobby server
Post by: jrgp on February 27, 2011, 12:20:27 pm
SoldatX.com Advanced Lobby:

http://www.soldatx.com/lobby/

You can see details of the players inside servers. Just move mouse over the players/playerlimit info.

:)

hmm. interesting. You're using the lobby client socket protocol to get a list of servers and then querying each one for gamestat.txt (hence why the page takes forever to generate), correct?

Correct, but if gamestat.txt download is not possible I try to get info using ASE protocol.

Also my system uses cache(if lot of people are using the page at same time) and uses latest list of servers from cache if official Soldat lobby is offline. So this lobby is perfect =P

Protips:
 - Make specifying the country be in GET, not POST, so you can share the url with friends and refresh without having to deal with "are you sure you want to resubmit this form?" stuff
 - Make an english version
 - Add column sorting
 - Get a new padlock icon
 - I see that with each join link you have /open at the end of the Soldat url. What's with that?
 - Make getting player info optional since the majority of people will not wait for the page to load Use ajax such that player information for each server is only fetched when you hover over it
 - It's 2011, not 2000; tags such as <font> and <center> are way out of style, in favor of CSS
Title: Re: New lobby server
Post by: jrgp on March 11, 2011, 09:41:06 am
Updated lobby request protocol slightly: http://devs.soldat.pl/wiki/index.php?title=Client-Lobby_Protocol#101_Request_List

I've added support for the ! (exclamation point) character, in place of 1 and 0 for several of the fields, which essentially does the reverse of 1.

This will add support for future versions of Soldat (as well as fan apps) to, for example, choose to request realistic servers or not realistic servers.
Title: Re: New lobby server
Post by: demoniac93 on March 11, 2011, 02:45:15 pm
I'm no longer seeing the server list getting stuck half-way through server search/pinging.
Way to go, jrgp.
Title: Re: New lobby server
Post by: jrgp on March 11, 2011, 02:47:20 pm
I'm no longer seeing the server list getting stuck half-way through server search/pinging.
Way to go, jrgp.

Ii still don't know what caused/is causing that.
Title: Re: New lobby server
Post by: Clawbug on March 11, 2011, 02:56:33 pm
I'm no longer seeing the server list getting stuck half-way through server search/pinging.
Way to go, jrgp.

...as far as I know it's client-side bug because it's fixed in 1.5.1 and mentioned in the changelog.
Title: Re: New lobby server
Post by: demoniac93 on March 11, 2011, 03:54:20 pm
I'm no longer seeing the server list getting stuck half-way through server search/pinging.
Way to go, jrgp.

...as far as I know it's client-side bug because it's fixed in 1.5.1 and mentioned in the changelog.

I didn't stop getting it until jrgp tweaked the lobby  ???