Maybe you should have a look at Adv. Duplicator. It seems to do that pretty well.
I'm kind of lost on the gmod lua wikipedia. How would I set up a client script so that they could write files to a specific directory on my server?
For example: A player opens a derma menu on my server, I want them to be able to read and write text files pertaining to one specific directory such as "data/myfiles/" on the server
Maybe you should have a look at Adv. Duplicator. It seems to do that pretty well.
[E2] Extended Timers
Bulls pro-tip of the day:
When you honestly think that Led3=1,0,1,0,1,0,1 can make a light blink, stop trying to make an OS and do something easier.
Can anyone more clearly define an answer?
I'm confused, I understand that the concommand.Add works on both client and server, but what should I use it on for this specific task. A friend suggested using a datastream. Well I guess the best way to learn is to test it out, so I guess I'll do that.
I would agree that datastream is the way to go. The way I would have the system set up is:
1. client requests the list from the server
2. server goes to data/drunkie'smod/<clients steam id> (May not be allowed to use _: in folder names so they might need replaced)
3. server loads a file list using one of the file commands and then uses datastream to give the list to the client
4. client gets the list and shows it to the user so they can pick what file they want then they request the file
5. (repeat 2-3 with the file)
6. client does whatever to the file (have it save localy if you want)
7. sends to the server with uploads to the directory under there steamID
To request the list and files I would just use concommand.Add on the server then have the client call it, the server can use it to get the players steamID then.
To get the list and files just a datastream hook on the client
Just the way I'd do it anyway hope it helpsAlso if you look at MoonGate code it should be alot smaller than adv dupe and have the info you want.
Last edited by Riddler; 02-20-2010 at 06:59 AM.
Drunkie I told you to use datastream yesterday. >.< Look at my file functions code, its < 200 lines (I think) and its a good example, except that it doesn't write on the server, but that is self explanatory.
Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
Drunkie - Logically, Jat Goodwin must be a fist pumping guido.
Bookmarks