Jump to content

Creating a client-side directory.


xiti

Recommended Posts

Posted

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.

Posted

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.

  • Moderators
Posted

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.

Posted
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.

  • Moderators
Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...