Game Development Community

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

#1
09/03/2002 (10:39 am)
Well if the user already has that file and if the version the server has is different in anyway, the client is suppose to download that file and use that for that mission as a temp file. The one the user already has shouldn't be deleted since it could easily be something the user created for some other purpose and if it were to be deleted most likely a user's mission file won't work, therefore making the user very mad at the game developer. ;)
#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
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
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
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