Off Topic > Off Topic
Programming Megathread
portify:
--- Quote from: Metario on April 18, 2017, 02:41:23 AM ---ok so im asking for everybodys opinion on this
(theoretically)
we have a client, cl, two servers, point a and point b, and a cdn. the two servers have been patched to not post to master server, but instead authenticate only. point c (or cdn) is the actual place we want clients to connect to, so we'll have it authenticate that way. lets assume cl tries to connect. he'll first connect to the cdn, who can understand the packets hes sending. we will send an PING request to point a and point b. depending on which servers are up, it'll route the connection to the most favorable. and if one server goes down, it'll play a prerecorded event that will tell all clients to disconnect and reconnect. in that split second, the server modifys the routes, changing the packet routing dest from point a to point b. vice versa.
whats your ideas on this because i want to make a seamless transition between servers and maybe have a sort of hub server where you can connect to other servers via it
--- End quote ---
--- Quote from: Metario on April 18, 2017, 02:47:20 AM ---I mean I know this is basically what a router does but I'm thinking more of on a larger scale, and since we'd be doing this in tork I could steal the netcode and use it to listen on our ports. Especially for servers like (((Jew Years))) where server crashes are often, I'd like to know if it's actually possible
also I have a headache so if you don't understand it now I'll try and explain it more in the morning
--- End quote ---
Well that already sounds fair enough. I'd say it would be as simple as tunneling UDP packets but the connect request chain does do a few things with source IP, so you may want to modify that a bit if it turns out to be a problem. You're going to have trouble with just using a prerecorded event however, given the amount of state in each packet that will just cause the client to ignore it if it's not appropriate.
I've looked into seamless transitions before and you'd think you could just connect the client to another server without sending a new manifest or datablocks if they're identical, but it seems like you can't just manage that from TorqueScript (the game crashes if any ghost objects are left over after your local client is deleted), and of course making everyone inject a DLL is not viable.
Metario:
--- Quote from: portify on April 18, 2017, 04:51:07 AM ---Well that already sounds fair enough. I'd say it would be as simple as tunneling UDP packets but the connect request chain does do a few things with source IP, so you may want to modify that a bit if it turns out to be a problem. You're going to have trouble with just using a prerecorded event however, given the amount of state in each packet that will just cause the client to ignore it if it's not appropriate.
I've looked into seamless transitions before and you'd think you could just connect the client to another server without sending a new manifest or datablocks if they're identical, but it seems like you can't just manage that from TorqueScript (the game crashes if any ghost objects are left over after your local client is deleted), and of course making everyone inject a DLL is not viable.
--- End quote ---
well so like it'd call clientCmdGameModeChange to first disconnect and delete all of the bullstuff, then reconnect to the CDN which has its routes modified because of point A being down
also modifying the source IP would be a pain in the ass but I could understand if we wanted to keep it secure
Tudoreleu:
every once in a while i like to peek into this thread and pretend i understand even a fraction of what the forget you guys are talking about
Pecon:
--- Quote from: Ipquarx on April 17, 2017, 05:41:32 PM ---That sounds more like Malbolge to me
Just for reference, here's Hello World in Malbolge:
--- Code: --- (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
--- End code ---
Yes, there's a space at the start. Yes, it's on purpose. No, you can't get rid of it.
--- End quote ---
Malbolge would be the second chaos mastermind found in season 2 that was located in a second underground secret cryo prison directly underneath the first one, and takes at least three seasons to defeat.
Becquerel:
What would the Piet language be?