Commit Graph
12 Commits
Author SHA1 Message Date
AtkanaandDavid Cernat 2c7a7bc7c9 Add configurable data path (#83)
* Update config.lua

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath

* Update to use config.dataPath
2019-09-19 14:30:56 +03:00
David Cernat 50e2841f60 [JsonInterface] Use dkjson as a decoding fallback when CJSON errors out 2019-04-15 01:02:51 +03:00
David Cernat 5f5f8e9f91 [JsonInterface] Allow both dkjson and Lua CJSON to be used 2019-04-14 22:41:01 +03:00
David Cernat cf29616f52 [JsonInterface] Print errors using LogMessage 2019-04-14 19:48:26 +03:00
David Cernat 9959f51c49 [JsonInterface] Rename json variable into dkjson
Use tes3mp.GetDataPath() instead of the deprecated tes3mp.GetModDir()
2019-04-14 19:06:09 +03:00
David Cernat c9a9894a6c [JsonInterface] Remove comments at top of JSON files before decoding 2019-04-14 16:24:13 +03:00
Koncord c43f42b7d3 [General] Use GetModDir function instead getenv 2018-12-29 12:05:47 +08:00
David Cernat a72103540b [General] Rework jsonInterface so it uses io on Linux & io2 on Windows 2018-12-17 14:01:14 +02:00
David Cernat 244b64ffcf [JsonInterface] Stop using assert in load() and check if file is nil
Additionally, remove semicolons from the ends of lines, for consistency with other scripts.
2018-12-17 12:21:27 +02:00
David Cernat c439ece04f [General] Kick players when their JSON files are not created correctly
There are various operating system quirks preventing this from working in all scenarios, but it is an improvement over the previous potential for crashes.
2018-02-14 01:44:57 +02:00
David Cernat 5cda17d38e [Player] Save root player table keys in a certain order 2017-04-26 16:10:50 +03:00
David Cernat 67eee45747 [Libraries] Add basic jsonInterface in case we later switch JSON library 2017-03-28 07:57:01 +03:00