Posted in: Graphics
Posted 2009-03-07 at 10:07 by [R-DEV]AncientMan
So, as mentioned and shown in the Dev Journal, I've managed to make an auto deploy feature. It only took 40 hours as well! (That is a pretty accurate figure, it took forever to get working right...).
To keep things clean in the Dev Journal post, I'm going to go into some more detail here.
What this feature does, is select the server, grabs the server name, filters only that server, then refreshes the list every 5 seconds. It then selects the server, grabs the player data, then feeds that into a simple check: If current players < max players, join server, else, repeat.
That's it in it's simplest form, it's much more complex really, but yeah, that's the simple explanation .
So, since it's using the server name as a filter, there's a main limit. The server name cannot contain really messed up characters (like the GibThis server), and cannot be too long (like the servers that put lots of spaces in and then say "Not this server and that server". If it does contain that sort of stuff, it will put out an error message and stop you from using the feature. So, for the server admins who want the feature to work, your going to have to fix up your server name .
Also, there are some times when it refreshes the server but someone else gets in a millisecond before the function tries to join you. There's not much I can really do about it, but you'll just have to try again I guess However, it's pretty much as best as you can expect from the BF2 engine, so deal with it .
Anyway, so I'm sure there'll be some questions about this, so post them below and I'll try to answer them (if I feel like it ).
To keep things clean in the Dev Journal post, I'm going to go into some more detail here.
What this feature does, is select the server, grabs the server name, filters only that server, then refreshes the list every 5 seconds. It then selects the server, grabs the player data, then feeds that into a simple check: If current players < max players, join server, else, repeat.
That's it in it's simplest form, it's much more complex really, but yeah, that's the simple explanation .
So, since it's using the server name as a filter, there's a main limit. The server name cannot contain really messed up characters (like the GibThis server), and cannot be too long (like the servers that put lots of spaces in and then say "Not this server and that server". If it does contain that sort of stuff, it will put out an error message and stop you from using the feature. So, for the server admins who want the feature to work, your going to have to fix up your server name .
Also, there are some times when it refreshes the server but someone else gets in a millisecond before the function tries to join you. There's not much I can really do about it, but you'll just have to try again I guess However, it's pretty much as best as you can expect from the BF2 engine, so deal with it .
Anyway, so I'm sure there'll be some questions about this, so post them below and I'll try to answer them (if I feel like it ).
-
Posted 2009-03-07 at 10:12 by ZZEZ -
Posted 2009-03-07 at 10:14 by AncientMan -
Posted 2009-03-07 at 10:36 by ZZEZ -
Posted 2009-03-07 at 10:43 by AncientMan -
does this mean we may see the list of servers updating every few seconds as well?
its quite annoying that it lists really out-of-date player numbers and maps after you leave it for a while.Posted 2009-03-07 at 14:56 by Jonny -
What would happen if more than 1 person is trying this at once? Ex: 2 players select it at the same time. Who would join and would the other crash or something the like?
EDIT: I just read the post =(Posted 2009-03-07 at 18:40 by Craz3y|Assasin -
5 seconds sounds a bit long to me. Perhaps make that the default but let players set it manually like the player limit? Are there any negative effects from having it update more frequently?
Posted 2009-03-07 at 20:10 by Jordanb716
Updated 2009-03-07 at 20:38 by Jordanb716 -
Quote:
but thats what I expect if its faster than 5 seconds refreshPosted 2009-03-08 at 19:37 by Canofwhoop -
sorry but how i can donwload the game please send a pm thanks
Posted 2009-08-26 at 17:49 by qwer