0.0.3 • Published 11 years ago
extdb-wasteland v0.0.3
extdb-wasteland
- This is a set of Node.js scripts that can be used for managing Arma 3 Wasteland servers that use extDB (MySQL) for persistence.
Changelog
- 0.0.3 - Fix defect with class names and textures
- 0.0.2 - Initial release
Installation
- From the head of the master branch
npm install -g git+https://github.com/micovery/extdb-wasteland.git - From the npmjs.org repository
npm install -g extdb-wasteland
##inidb-2-extdb## This script is used for migrating an existing iniDB database to the extDB(MySQL) system.
It simply navigates through all the ini files on a user-specified directory, and converts them to SQL scripts:
* serverobjects.sql
* servervehicles.sql
* playerinfo.sql
* playersave.sql
* playerstats.sqlThe rules for parsing variable values are as follows (in order of evaluation):
- If the variable name is in the
--ignoredlist, then ignore it - If the variable name is in the
--stringslist, then coerce it into a String - If the variable name is in the
--numberslist, then coerce it into a Number, or set the value to 0 - If the variable name is in the
--booleanslist, then coerce it into a Boolean (false values are:"false","0","","null","nil") - If it matches
"-1.#IND","-1.#INF", orNaNis treated as Number 0 - If it matches
"nil", value is set to null - If the value cab be parsed using JSON.parse, then use the parsed value
- Otherwise, coerce the value into a String
Options:
--path path to the directory that contains the database ini files [required]
--map-id ID for the map. (1 for Stratis, 2 for Altis) [default: 2]
--server-id ID for server (if you ahve more than one) [default: 1]
--prefix prefix value for filtering the list of ini files (e.g. "A3W_") [default: ""]
--strings list of variable names that should be coerced into String type [default: "ownerUID,UID"]
--numbers list of variable names that should be coerced into Number type [default: ""]
--booleans list of variable names that should be coerced into Boolean type [default: ""]
--ignored list of variable names that should be ignored [default: ""]
--trace trace the JSON content of the parsed ini files [default: false]
--help, -h Show help