Server->Client Resource downloading is in (redux)
by Alan "Nefilim" Schwertel · in Torque Game Engine · 09/03/2002 (9:42 am) · 5 replies
I have been going over the code for Client Downloading from Server, and am wanting to make some modifications to the calls that set up the download.
Basicially when an item is found and doesnt match ctc, it normally errors, I would like to delete that file and proceed to download the server's file.
I havent been successful in getting it to register properly and download.
any help would be appreciated.
thanks
Basicially when an item is found and doesnt match ctc, it normally errors, I would like to delete that file and proceed to download the server's file.
I havent been successful in getting it to register properly and download.
any help would be appreciated.
thanks
#2
09/03/2002 (4:14 pm)
True.. But as of now, it doesnnt download anything if it exists, and I think it would be feasible to change that
#3
Or you could ask the user on what to do, like give these options:
1. Download and replace existing file
2. Download and use it reclosively(use it without replacing existing file)
3. Force use of existing file(put a warning stating this could cause the game to crash if clicked)
4. Cancel join
So, something claver like that :)
09/03/2002 (7:45 pm)
Yeah I think so too, just do something like you said a CRC check and if it doesn't match download that file and like dump it off into a temp directory or something to be used for that mission session. Just an idea...Or you could ask the user on what to do, like give these options:
1. Download and replace existing file
2. Download and use it reclosively(use it without replacing existing file)
3. Force use of existing file(put a warning stating this could cause the game to crash if clicked)
4. Cancel join
So, something claver like that :)
#4
I played around with the routines, but my knowledge is very very limited... Noobish pretty much...
09/03/2002 (8:27 pm)
Most of it is done in source, as it checks for existance, if it doesnt, it attempts to download.. If it is, then it checks if its a Clientobject, then checks crc...I played around with the routines, but my knowledge is very very limited... Noobish pretty much...
#5
So don't worry about being a newbie, just play around with it and you'll learn! :D
09/03/2002 (8:56 pm)
Same here man when it comes to C/C++ code with in the engine. I use to be a complete newbie to the whole torque thing until I started playing around with the GUI editor and scripts then I learned how to do a lot such as create a very useful news system. :)So don't worry about being a newbie, just play around with it and you'll learn! :D
Torque Owner Nathan Martin
TRON 2001 Network