Poll

Should it be possible to create folders via soldatserver scripting?

Yes
9 (90%)
No
1 (10%)

Total Members Voted: 10

Author Topic: Scripting suggestion: Creating folders  (Read 1129 times)

0 Members and 1 Guest are viewing this topic.

DarkCrusade

  • Guest
Scripting suggestion: Creating folders
« on: July 10, 2011, 03:24:42 pm »
It is annoying to tell users of scripts to create folders at certain places, especially when you are asked why some stuff doesn't work correctly after you explained it in detail already. Maximum usability of scripting can only be reached, if the user can use them with ease and doesn't need a lot of time to implement scripts on his server. This is why I would like to have these functions:

Code: [Select]
function folder_exists(directory:string):boolean;
Code: [Select]
procedure create_folder(directory:string)
It will make scripting so much easier. It is especially useful for saving stats, because you can create one folder a day or a week to get a good overview.


Additionally, some kind of offline-database for available functions and variables would be nice. Be it a .txt or some downloadable website: I don't care ;)

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Scripting suggestion: Creating folders
« Reply #1 on: July 11, 2011, 07:04:27 am »
Fair enough, f12

Im chill like that

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Scripting suggestion: Creating folders
« Reply #2 on: July 11, 2011, 07:30:34 am »
I would like to mention a few other things:
It is possible with shell_exec
suggestion
suggestion


DarkCrusade

  • Guest
Re: Scripting suggestion: Creating folders
« Reply #3 on: July 11, 2011, 11:25:45 am »
Another thing: I don't think you can expect the normal user to understand how you can start a server with safemode turned off, so I think it would be nice if you were just able to use something like

Code: (pascal) [Select]
procedure activateServer();
begin
  SafeMode:=0;
end;

to make scripts more user-friendly.

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Scripting suggestion: Creating folders
« Reply #4 on: July 11, 2011, 12:36:39 pm »
Or just make it create folders automatically when the file is saved in folder which doesn't exists.

Offline dnmr

  • Camper
  • ***
  • Posts: 315
  • emotionally handicapped
Re: Scripting suggestion: Creating folders
« Reply #5 on: July 11, 2011, 01:08:24 pm »
Or just make it create folders automatically when the file is saved in folder which doesn't exists.
this