123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|550|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Need a suggestion on networking with blitz...

Sat, 12 Apr 2008, 21:00
Orion Pax
Ok I have my server side program setup to load all the data for my games universe. Now the question is, how to send it to each player with out disrupting the actual game. Its a good bit of info and I'm affraid if I just send it all at one time that it will prevent the other connections from getting updates to players and weapon fire and all that.

I know I can send each instance of a type at one time, and it will send it in brackets, comma delimited. I was thinking of doing that to speed it up. And do each type individually, like let it to planets. then run a couple of loops on the main code. Then do players, couple loops, so on and so forth until we are done. Maybe set the client into a loop until it gets a FINISHED command sent from the server. But how should I do the server? Just need some rough ideas. Maybe set a flag in the players type as PLAYER\DOWNLOADINGDATA, and if its set we iterate through each type?

|edit| Oh and I forgot to mention, I am using BlitzPlay Pro. I had bought it a year ago or so before surreal disappeared. So trying to figure out how to give out game data and not interfere with the actual gaming for everyone else is a bit tricky. |edit|
Sun, 13 Apr 2008, 16:33
Orion Pax
Well, I decided to give something a try. I decided to just send all the info in at one time...well not everything at once...but each instance of my types at one time.....

Player.playerinfo

send str(player) for EACH playerinfo

makes sense? Done that for each type and setting blitzplay pro to BP_ORDERED (meaning each packet is sent in order and reliable) and it gets lost while sending my port info. My guess is its sending too fast....lol. didnt think I would have that problem! Might have to put a wait till reply message there.....

|edit| Nevermind. I figured it out I think. I was sending 200 messages of port info at one time. Basically flooding my clients connection. |edit|
Sun, 13 Apr 2008, 21:12
Orion Pax
Never mind....I figured it out...its fine. I gots it sorted out...

I should be putting out a demo here soon...next week or two. Now that I got this part finished and sorted out. Hope ya'll are ready to do some bashing on my game. I am ready for all the criticism you guys can give me!
Wed, 16 Apr 2008, 09:30
Paul
haha, Didn't know about str$(type), but heres a test of it