ThePCGuy Posted July 17, 2013 Share Posted July 17, 2013 Is this option ''cache'' in the meta.xml file safe? Cause after searching the forums for protecting your client sided files i came across ''fileDelete'' but then a user on the forum posted that it's still possible to get the scripts after quickly disconnecting after the files have been finished downloading. Link to comment
Moderators IIYAMA Posted July 17, 2013 Moderators Share Posted July 17, 2013 It is much better then fileDelete. Only scripts are protected, other files like images/audio aren't protected this way. The only way to protect images, is changing them to textures and delete them immediately. Audio can't be protected, as simple as that. You must be a really prof. if you can get the client files from the RAM. Link to comment
ThePCGuy Posted July 17, 2013 Author Share Posted July 17, 2013 Well, i'm just talking about lua files. But it is not being downloaded to the mods folder? (At all), But in your ram? Link to comment
Moderators IIYAMA Posted July 17, 2013 Moderators Share Posted July 17, 2013 I tested it and it works fine. Warning: It doesn't support old Linux server software. Then the files won't send over, you can test it. Link to comment
arezu Posted July 17, 2013 Share Posted July 17, 2013 Yes, the file is downloaded and loaded into ram but never gets saved on the harddrive. But mind you, the scripts that has cache="false" in meta wont wait for all files to finish downloading before starting to load which means if you for example try to open a file, draw an image or replace a texture etc before onClientResourceStart has been triggered then it will fail. While if you have cache="true" (default) then it will wait for all files to finish downloading before loading the script. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now