Auto Deploy

Insights into the development of Project Reality.
Post Reply
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Auto Deploy

Post by 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 :p.

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 :p However, it's pretty much as best as you can expect from the BF2 engine, so deal with it :p.

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 :p).
Image
ZZEZ
Retired PR Developer
Posts: 4268
Joined: 2007-07-26 10:10

Post by ZZEZ »

Servers like Tactical Gamer limit the player count to 62/64 for supporting members, I guess it will not be compatible with the new Auto Deploy?
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Post by AncientMan »

You so didn't watch the video :p. I said a whole thing about that :p.
Image
ZZEZ
Retired PR Developer
Posts: 4268
Joined: 2007-07-26 10:10

Post by ZZEZ »

Yea I didn't, I don't have streaming ability on this shitty mobile internet :)
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Post by AncientMan »

I forgive you then :p
Image
Craz3y|Assasin
Posts: 170
Joined: 2008-06-20 14:18

Post by Craz3y|Assasin »

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 =(
-Craz3y-


(\__/) Smoke + Huey = FAIL :-|
(O.o )
(> < )This is bunny. Copy bunny into your siginature to help him on his way to world domination!
Jordanb716
Posts: 186
Joined: 2008-04-10 22:58

Post by Jordanb716 »

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?
Colonelcool: I'd gladly pony up some tax dollars to send a JDAM over there just to kill that rooster.
OkitaMakoto: Talking squad level tactics in bed is actually a little known aphrodisiac.
Jigsaw: saying "lock please" accomplishes just about the square root of fuck all
Canofwhoop
Posts: 74
Joined: 2009-01-29 03:19

Post by Canofwhoop »

Jordanb716;bt187 wrote: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?
well il anser for ancient, excuse me if im wrong but if you update it that it will refresh every 1 or half a second it might crash your game!, im not sure about this tho:???:
but thats what I expect if its faster than 5 seconds refresh:sad:
qwer
Posts: 4
Joined: 2009-08-26 15:14

Post by qwer »

sorry but how i can donwload the game please send a pm thanks
lindausa
Posts: 1
Joined: 2023-02-16 01:11

Post by lindausa »

I really like the information you share. I learned a lot of new and useful knowledge from your post. slither io
NoeliaZollo
Posts: 7
Joined: 2023-03-17 09:18

Post by NoeliaZollo »

Post Reply

Return to “Development Blogs”