Point this to file / rsc file and it will return 1 if the client reports to have downloaded this file and 0 if the client reports not having this file.
client.Download() could perhaps be used to send files.
ID:260153
![]() May 25 2006, 11:07 pm
|
|
![]() May 27 2006, 1:31 am
|
|
BYOND already has a send file process built-in: ftp()
|
Point this to file / rsc file and it will return 1 if the client reports to have downloaded this file and 0 if the client reports not having this file. And I'm, quite certain he knows about ftp() seeing as he brought it up in [link]... I like the idea, could be useful. |
TheLunarWolf wrote:
BYOND already has a send file process built-in: ftp()This method asks the player. I was referring to a way to send files to the player, like with browse_rsc() but which also accepts icons, sounds, etc. client.Downloaded() could accept an argument to see if a certain file has already been downloaded. |
Game resources automatically do not redownload if you already have them, and with ftp I don't see how a function could possibly know if the client has the file unless it searches their computer for it. This just doesn't sound feasible to me.
|
What situation would you ever need that in since it already checks resources and doesn't send what you already have anyway? I can't think of any way this could be used; care to share an idea you might have?
Well, maybe for delaying actions that rely on graphics that are currently being downloaded so that you can hold off a special effect until the client has the resource and therefor won't miss it. I suppose that could be useful. |
if(!Downloaded()) //they haven't downloaded the resources |
Thinking about this more reminds me of times when this could have been very useful to me. Nightmares they were.
On several occasions when I spent a lot of time working on special effects I would invite someone in to see them, and they would just say "Alright, what am I supposed to see?" because it didn't show anything since it "displayed" the objects and removed them again all before the resources were available. That really sucks when you just worked long and hard to make something nice. I agree, if there is a way to implement such a feature then we really need it. |