ID:1732343
 
(See the best response by DarkCampainger.)
I want to update a single icon file in the .rsc without completely reuploading the host files. How can one achieve this?

    Test(var/F as file)
fcopy_rsc(F)


Would this be the way to do it? What if I have the icon file defined as 'icons/projectiles.dmi' and I upload projetiles.dmi would it replace 'icons/projectiles.dmi'?
Darker Emerald wrote:
I want to update a single icon file in the .rsc without completely reuploading the host files. How can one achieve this?

>   Test(var/F as file)
> fcopy_rsc(F)
>

Would this be the way to do it?

Yes thats the way

What if I have the icon file defined as 'icons/projectiles.dmi' and I upload projetiles.dmi would it replace 'icons/projectiles.dmi'?

Not quite sure.. but it could replace it.

Best response
fcopy_rsc() will put it in the dynamic rsc, not the game's rsc file. It won't over-ride any of the existing icons, unless you build a system into your game to swap the icons at runtime.

It's been a while since I've looked at the RSC format, but if only a small portion of it changes when you compile, you could use something like an rsync command or Remote Differential Compression to transfer it over to your server quickly.
Yeah I figured as much, was just a thought, be a nice little feature to add in the future. Sometimes changing the rsc files can be a pain for me cause of my crap internet and have to choose wisely when to do it haha.