ID:260153
 
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.
BYOND already has a send file process built-in: ftp()
In response to TheLunarWolf
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.
In response to Papoose
my bad about ftp, then. I feature like this would be quite useful though.
In response to TheLunarWolf
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.
In response to Android Data
Sounds useful for pictures in html and title screens for other games.
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.
In response to Loduwijk
client.Downloaded() is ment for resource files. It will check the BYOND cache.
In response to Android Data
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.
In response to Loduwijk
if(!Downloaded()) //they haven't downloaded the resources
src<<"Please wait while you are downloading the resources..."
while(Downloaded())sleep(5)
src<<"You have downloaded the resources. Enjoy playing in [world.name]!
else src<<"You already have downloaded the resources. Welcome back!"
In response to Android Data
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.
In response to Android Data
More likely:

if(!Downloaded()) del(src)


And tell them to download the resources from the website. :P