ID:168989
 
Can someone explain to me how the cache works with BYOND?

I currently have certain image files that aren't being used at compile time but instead at runtime, therefore they aren't being added to the resources. When I display those image files to someone other than the host, they have to download the image file AT THAT POINT. Is there any way to have them download it at another point so that when the image is displayed they won't have to download it?

I'm sure there is, I believe it is browse_rsc(). But I don't get how it works. My image files are in the format "Folder/Filename". So to display them, I refer to them as var/icon/I = icon("[folder]/[filename]"). How will I make the file "Folder/Filename" be cached using browse_rsc()?
Lummox where are you!?
In response to DaGoat787
DaGoat787 wrote:
Lummox where are you!?

Who knows? Hope you can make do with me.

A simple way to send a file to a player, but to not display it to them at that time would be through the use of browse. For example:
src << browse('myImage.png',"display=0")


Hiead
In response to Hiead
Nope, no good.