xiti Posted June 11, 2013 Share Posted June 11, 2013 Hello! I have a one problem what i cant fix, is there any way to create a new directory in client script cache directory (i mean MTA San Andreas 1.3/mods/deathmatch/resource/), i tried fileCreate(:"..folderName.."/testFile") but this didnt worked and also os.execute("mkdir testfolder") but any way didnt worked... If it is possible please help me! Thanks! Regards, Xiti. Link to comment
Castillo Posted June 11, 2013 Share Posted June 11, 2013 It'll create the folder inside the resource you specified on fileCreate, if not specified, then it'll create it on the same one you executed the function. But you can't create a folder outside any resource. Link to comment
xiti Posted June 11, 2013 Author Share Posted June 11, 2013 So there is any way to create a folder for "new" resource? Link to comment
DakiLLa Posted June 11, 2013 Share Posted June 11, 2013 What's the purpose of creating a folder in a client's cache? Link to comment
Spajk Posted June 12, 2013 Share Posted June 12, 2013 What's the purpose of creating a folder in a client's cache? Probably wants to download porn to clients! Link to comment
Moderators IIYAMA Posted June 12, 2013 Moderators Share Posted June 12, 2013 simple, to save client side settings. (that aren't really important and don't need to be secure) Like if the client enables shaders/ special effects etc. You don't want to fill up your data base with that crap. Link to comment
DakiLLa Posted June 12, 2013 Share Posted June 12, 2013 simple, to save client side settings. (that aren't really important and don't need to be secure)Like if the client enables shaders/ special effects etc. You don't want to fill up your data base with that crap. This can be fully done with a simple XML file. There is even a community resource called 'cookies' or something like that, that provides a good example of storing data in XML files on the clients side. Link to comment
Moderators IIYAMA Posted June 12, 2013 Moderators Share Posted June 12, 2013 yes xml file is handy. But I like to have a full "decoded" version, build with a special structure, that isn't very easy to change. my structure will looks like this: gdsayfvsu*sbadfsdgia*safgsyvgdk*iusghidhad*!dsgfsid In combination with sha256 you won't be able to trace it back. When I put that in xml structure, I make it easier for exchange and maybe add able.(outside the game) Next to that you can send client scripts to reduce downloads. Like a special admin script that only will be downloaded by an admin. Link to comment
denny199 Posted June 12, 2013 Share Posted June 12, 2013 He just want to make a multi gamemode I think.. He want to cache the scripts in the file's memory in a another file, and then stop the resource so he can unload the scripts via that way so he won't use wrappers. I think, say if I'm right. 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