Commit Graph

28 Commits

Author SHA1 Message Date
Jordan Brown
2cf29eeb3b Adds world parameter to change the config directory (#39073) 2018-07-14 01:04:58 +01:00
Jordan Brown
e0556ac539 Trims config entries (#38973) 2018-07-08 23:52:01 +01:00
Jordan Brown
0e2ab32c30 Adds config deprecation system (#38667) 2018-06-27 15:10:29 +01:00
Jordan Brown
663f7afa28 Legacy config warning only happens if any legacy configs are present (#38421) 2018-06-13 03:19:06 +01:00
Bjorn Neergaard
853146704e Use a rust DLL for logging (#36858)
By moving our logging to a DLL we see a drop in CPU/real time of 2-3 orders of magnitude. This is due to BYOND opening and closing file handles on every write, causing incredible amounts of unneeded overhead. The logging library also handles timestamps for us, further increasing performance gains.

This library will also allow for further offloading in the future, such as completely replacing file2text() and friends.

A pre-compiled DLL is bundled, but Linux users will have to compile manually. Directions can be found at the rust-g repo.

Log output is enhanced with millisecond time stamps:

[2018-04-01 15:56:23.522] blah blah blah

This includes runtimes as well, which benefit from the same timestamp improvements and no longer have hacky splitting code to add their own timestamps.

Log shutdown is handled in a dedicated proc called as late as possible, as rust-g integration expands this will be factored out into a generic native code shutdown proc.
2018-04-11 02:55:39 +02:00
Jordan Brown
ec359dc152 Fix an error message grammer 2018-04-09 21:35:00 +02:00
Jordan Brown
9e81c92e4c Fix config loading exploit (#36286) 2018-03-10 14:51:32 -06:00
Tad Hardesty
bbe4d12d13 Support stations with multiple z-levels (#35339)
* Remove ZLEVEL_STATION_PRIMARY

* Add Up and Down traits for use by ladders and chasms

* Give map_config creation its own proc

* Combine LoadConfig and ValidateJSON and remove transition_config

* Make space linkage a z-level trait

* Remove ZLEVEL_EMPTY_SPACE

* Update uses of GetFullMapPath

* Handle multi-Z stations and load Lavaland and Reebe at runtime

* Remove unused space maps

* Fix inappropriate z-expansion in map reader, improve logging

* Update comments relating to z-level configuration

* Add Lavaland and Reebe to ALL_MAPS
2018-02-15 10:21:25 +01:00
Kyle Spier-Swenson
f94f49009a Fixes map configuration values for nonexistent maps applying to box
This caused box'es min pop to get set to 50 because all of the servers still had cere defined with that limitation.
2018-02-09 18:12:05 -06:00
Robustin
ee87af19f0 Disentangles Command Reports from Metagame (#35192)
* False report fix

* Less Accurate Command Report
2018-02-04 02:10:20 -06:00
Jordan Brown
30f3156ce2 Rename /datum/config_entry/var/value to config_entry_value (#34699)
This works around some vv-fu you can use to pass in a config_entry to a proc that reads the value var of some other datum. Byond is stupid enough to actually read it, so it must be uniquely named.
2018-01-24 16:40:28 -05:00
Jordan Brown
015258d01c Config dir again except this time it works (#34606)
* Revert "Revert "Fix config_dir usage (#34469)""

* Make config exist before world/New but not load it until then
2018-01-21 19:32:12 +01:00
oranges
48575ccf70 Revert "Fix config_dir usage (#34469)"
This reverts commit 7be3d32290.
2018-01-19 01:26:40 +00:00
Jordan Brown
7be3d32290 Fix config_dir usage (#34469)
* Makes things use GLOB.config_dir

* GLOB.config_dir => global.config.directory

* Fix /datum/configuration
2018-01-19 11:55:09 +13:00
Cyberboss
6fe468e3b4 Moves load_motd to config controller 2018-01-15 10:44:25 -05:00
Jordan Brown
b9b9495071 Fixes configuration not loading 2018-01-10 20:10:32 -05:00
Jordan Brown
dcfa5ad867 Stops the config warnings when there's no config.txt 2018-01-09 10:54:44 -05:00
Jordan Brown
059a07aac6 Fixes LoadEntries return value 2017-12-15 10:50:58 -05:00
Jordan Brown
8c537ea377 Adds config inclusion system (#33307)
* Adds config inclusion system

* Revert debug code

* Fix bad braces

* Remove unused var

* Tested, working

* Config fixes
2017-12-14 18:23:10 -05:00
Robustin
a1b2c1bf02 Simpler way to standardize reports 2017-12-05 11:16:51 -05:00
Emmett Gaines
825ab4def4 [512] The great \ref purge (#31824)
* The great \ref purge

* cleanup
2017-10-28 17:20:04 -04:00
ACCount
5c7b3d20e6 Fixes ValidateAndSet being called with non-string values 2017-10-18 06:02:55 +03:00
Jordan Brown
0d6d6efaca Makes config loading messages consistent 2017-10-08 16:17:23 -04:00
Jordan Brown
961cd07284 Fixes adding bad config entries (#31390) 2017-10-07 20:13:51 -04:00
JJRcop
f8951911b1 Hosts can lock config options from admins (#31254)
* Hosts can lock config options from admins

* Optimization of LoadEntries

a very very very small one
2017-10-05 08:58:55 +13:00
Jordan Brown
dd10fd56a2 Maplist is loaded regardless of maprotation config setting (#31172)
* Uncomments map rotation in default config

* Maplist is loaded regardless of maprotation config setting

Also logs loading of the map file
2017-10-02 09:27:23 +13:00
Cyberboss
49e2e4daac Fixes config reading exploit 2017-09-30 10:30:19 -04:00
Jordan Brown
4178c209f1 Configuration datum refactor (#30763)
* Configuration datum refactor

* More WIP

* New easier on the eyes format

* More WIP

* Finished config.txt

* Fucktons more WIP

* The end of conversion draws near...

* Add all this shit

* Done converting entries finally

* Hunting down compile errors

* More WIP

* MORE CONVERSIONS

* More WIP

* More WIP

* Oh shit only 90 errors this time!

* IT COMPILES!!!

* Fixes world start runtimes
2017-09-29 15:36:51 +13:00