ID:268117
Mar 17 2004, 3:44 pm
|
|
I know raekwons dragonball zeta has it.. to where you can upload a DM to the server without you having to complile and run (since I have a server on a diffrent computer but I dont wana goto that computer and compile and crap there, anyway) how would I beable to upload a DM (and have it work) on a online server?
|
Mar 18 2004, 6:31 am
|
|
Look up shell()
|
In response to Loduwijk
|
|
Ok I got an example of the code:
mob/GM/verb/Upload(Path as text) shell("dir [Path] > dir.out") usr << file2text("dir.out") how would I make that DM UPLOAD to the server and run whats inside it? |
In response to Kasumi Tomonari
|
|
First what you need to do is get your file(s) onto the server. This is done the same as any other file upload. A verb with an "as file" argument.
Secondly you'll need to compile the code. On windows, this cannot(or could not) be done automatically. On one of the unix-like versions of BYOND, Dream Maker can compile code from the command line - that's where shell() comes in. Finally you'll need to reboot the world so that it loads the newly created .dmb. If you didn't update the current world's dmb, then instead you'll need to startup() the one created. |