How to transfer binary data through Torque properly.
by Ritchey "Hawk" Mulhollem · in Torque Game Engine · 08/26/2004 (6:35 am) · 9 replies
UGH! All the topics I have read on the forums start to answer this question and then stop dead short of actually answering it. So I will ask it here:
"How do I transfer binary data through Torque properly?"
Example scenario:
"Bob wants to see a picture of Fred's new Parrot, but does not want to exit his game just to download a picture. Luckily, Hawk was smart enough to add a "Send File" function in his game! So how did Hawk add this to his game? Simple! He just...."
This is now becoming a personal quest for me! I will get the answer to this riddle and share it with everyone here!
Is there anyone out there who can help me?
"How do I transfer binary data through Torque properly?"
Example scenario:
"Bob wants to see a picture of Fred's new Parrot, but does not want to exit his game just to download a picture. Luckily, Hawk was smart enough to add a "Send File" function in his game! So how did Hawk add this to his game? Simple! He just...."
This is now becoming a personal quest for me! I will get the answer to this riddle and share it with everyone here!
Is there anyone out there who can help me?
#2
10/05/2004 (6:47 am)
I created the resource. Just wait till it's approved.
#3
Torque already has a facility for downloading non-existant content
Check the download code in sim/netDownload.cpp. Events are sent to the server by the "sendNextFileDownloadRequest" function, which checks the missing file list in ResourceManager.
I'm not sure how Claude's resource works yet, so i cannot comment on his solution.
10/05/2004 (7:28 am)
Ritchey,Torque already has a facility for downloading non-existant content
Check the download code in sim/netDownload.cpp. Events are sent to the server by the "sendNextFileDownloadRequest" function, which checks the missing file list in ResourceManager.
I'm not sure how Claude's resource works yet, so i cannot comment on his solution.
#4
I'll rip into that again. From what I saw before it was very slow at transfering files and I thought I read some where that it was not able to do binary?? I eagerly await to see what Claude has.
Hurry, Claude, hurry!! *Jumps up and down in excitement!*
:>>
10/05/2004 (8:45 am)
Thanks to you both! I'll rip into that again. From what I saw before it was very slow at transfering files and I thought I read some where that it was not able to do binary?? I eagerly await to see what Claude has.
Hurry, Claude, hurry!! *Jumps up and down in excitement!*
:>>
#5
10/05/2004 (9:45 am)
TGE can do binary in it's shipping state, but you need to tinker around with the maximum allowed speed.
#6
I will anyway look at James proposal, that seems interesting, I did not know about that function.
I will comment on that later.
10/05/2004 (12:26 pm)
Probably Stefan, but the trouble with Torque is that not everything is written down so sometime you re-invent the wheel. Hopefully I did not ;)I will anyway look at James proposal, that seems interesting, I did not know about that function.
I will comment on that later.
#7
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6520
10/05/2004 (9:52 pm)
The ressource is available now : www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6520
#8
My ressource work alright but it's a "twisted" way to be able to retrieve binary data. Now the netDownload.cc seems to be doing exactly that. If somebody already have a sample on how to use that class that will be wonderfull. Myself I don't have much time, I maybe able to test next week only.
10/05/2004 (10:14 pm)
@JamesMy ressource work alright but it's a "twisted" way to be able to retrieve binary data. Now the netDownload.cc seems to be doing exactly that. If somebody already have a sample on how to use that class that will be wonderfull. Myself I don't have much time, I maybe able to test next week only.
#9
I'll have a quick look to see if i can get that code working without the missing file list.
10/05/2004 (10:17 pm)
@Claude,I'll have a quick look to see if i can get that code working without the missing file list.
Torque Owner Claude-Alain Fournier
You just have to be patient, that resource will be released with a few other resources from our game. Just need to make the resources presentable, create the readme and howto and first finish my holiday. ;)