Game Development Community

Client to Server File Transfer

by Ronald J Nelson · in Torque Game Engine · 09/01/2008 (1:39 am) · 3 replies

I know I have heard this a thousand times already, I already know the general consensus is that transferring a file from a client to the server for distribution to every other player is considered a bad idea.

Yet, I would like to know if anyone has done it yet. I am looking to transfer a texture as they do in Half-Life 2 and Counter-Strike Source.

Thanks in advance.

#1
09/01/2008 (3:33 am)
Ye, I did this a few years ago as part of an embedded application-sharing thing (packing up png files captured from the client desktop and sending to server for distribution to other clients). As far as I recall, I used the GameConnection class and did something similar to file downloading from server to client, except in reverse.
#2
09/01/2008 (11:17 am)
Is there even the remote chance you still have that backed up somewhere? I am very interested, even willing to pay for it.
#3
09/01/2008 (1:50 pm)
You're welcome to the code. Yes, it's backed up.. the main problem is trying to recall which files are relevant. Basically I split a file up into a linked list of 'chunks' and sent each of these over the connection, sticking them together at the other end. Can't remember why the chunking was necessary. Send me an email and I'll dig up what I can.