diff options
author | Haru <haru@dotalux.com> | 2016-02-12 12:43:14 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:23 +0200 |
commit | aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57 (patch) | |
tree | 764ef66928897fa988ca6ac9138a0d7852056080 /conf | |
parent | 3f85b17f494a465daaf0cc8acb151d5d4ebbaa5d (diff) | |
download | hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.gz hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.bz2 hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.xz hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.zip |
Ported script.conf to libconfig
Ported to modern Hercules and cleaned up from Panikon's commits: a0e4da63ef3afcd896603398e2468876681ac54a, b5f487c2676833492a6d4044b5d1f1bb1e552b04
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/import-tmpl/script.conf | 32 | ||||
-rw-r--r-- | conf/import-tmpl/script_conf.txt | 0 | ||||
-rw-r--r-- | conf/map/script.conf | 64 | ||||
-rw-r--r-- | conf/script.conf | 28 |
4 files changed, 96 insertions, 28 deletions
diff --git a/conf/import-tmpl/script.conf b/conf/import-tmpl/script.conf new file mode 100644 index 000000000..b354b2bf6 --- /dev/null +++ b/conf/import-tmpl/script.conf @@ -0,0 +1,32 @@ +//================= Hercules Configuration ================================ +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2014-2016 Hercules Dev Team +//= +//= Hercules is free software: you can redistribute it and/or modify +//= it under the terms of the GNU General Public License as published by +//= the Free Software Foundation, either version 3 of the License, or +//= (at your option) any later version. +//= +//= This program is distributed in the hope that it will be useful, +//= but WITHOUT ANY WARRANTY; without even the implied warranty of +//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//= GNU General Public License for more details. +//= +//= You should have received a copy of the GNU General Public License +//= along with this program. If not, see <http://www.gnu.org/licenses/>. +//========================================================================= +//= Hercules Script local configuration file. +//========================================================================= + +script_configuration: { + // See conf/map/script.conf for details +} diff --git a/conf/import-tmpl/script_conf.txt b/conf/import-tmpl/script_conf.txt deleted file mode 100644 index e69de29bb..000000000 --- a/conf/import-tmpl/script_conf.txt +++ /dev/null diff --git a/conf/map/script.conf b/conf/map/script.conf new file mode 100644 index 000000000..78514e637 --- /dev/null +++ b/conf/map/script.conf @@ -0,0 +1,64 @@ +//================= Hercules Configuration ================================ +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2014-2016 Hercules Dev Team +//= +//= Hercules is free software: you can redistribute it and/or modify +//= it under the terms of the GNU General Public License as published by +//= the Free Software Foundation, either version 3 of the License, or +//= (at your option) any later version. +//= +//= This program is distributed in the hope that it will be useful, +//= but WITHOUT ANY WARRANTY; without even the implied warranty of +//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//= GNU General Public License for more details. +//= +//= You should have received a copy of the GNU General Public License +//= along with this program. If not, see <http://www.gnu.org/licenses/>. +//========================================================================= +//= Hercules Script Configuration File. +//========================================================================= + +script_configuration: { + // Specifies whether or not an error should be outputed when there's a + // mismatch between the number of provided arguments and of expected + // arguments + // Default: true + warn_func_mismatch_paramnum: true + + // Specifies whether or not each built-in function's arguments are + // checked for correct type. When a function is given an argument + // different from what it expects, a warning is thrown before the + // function is ran anyway. + // Default: true + warn_func_mismatch_argtypes: true + + // Maximum number of operations before considering a set of operations too intensive + // Defaults to 655360 + check_cmdcount: 655360 + + // Maximum number of iterations before considering a loop infinite + // Defaults to 2048 + check_gotocount: 2048 + + // Default value of the 'min' argument of the script command 'input'. + // When the 'min' argument isn't provided, this value is used instead. + // Defaults to 0. + //input_min_value: 0 + + // Default value of the 'max' argument of the script command 'input'. + // When the 'max' argument isn't provided, this value is used instead. + // Defaults to INT_MAX. + //input_max_value: 2147483647 + input_max_value: 10000000 +} + +import: "conf/import/script.conf" diff --git a/conf/script.conf b/conf/script.conf deleted file mode 100644 index 1512aa15a..000000000 --- a/conf/script.conf +++ /dev/null @@ -1,28 +0,0 @@ -//-------------------------------------------------------- -// Hercules Script Configuration File -//-------------------------------------------------------- - -warn_func_mismatch_paramnum: yes - -check_cmdcount: 655360 - -check_gotocount: 2048 - -// Default value of the 'min' argument of the script command 'input'. -// When the 'min' argument isn't provided, this value is used instead. -// Defaults to 0. -//input_min_value: 0 - -// Default value of the 'max' argument of the script command 'input'. -// When the 'max' argument isn't provided, this value is used instead. -// Defaults to INT_MAX. -//input_max_value: 2147483647 -input_max_value: 10000000 - -// Specifies whether or not each built-in function's arguments are checked for -// correct type. When a function is given an argument different from what it -// expects, a warning is thrown before the function is ran anyway. -// Default: yes -warn_func_mismatch_argtypes: yes - -import: conf/import/script_conf.txt |