mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
Unit Test rework & Master/Ticker update (#17912)
* Unit Test rework & Master/Ticker update * Fixes and working unit testing * Fixes * Test fixes and FA update * Fixed runtimes * Radio subsystem * move that glob wherever later * ident * CIBUILDING compile option * Fixed runtimes * Some changes to the workflow * CI Split * More split * Pathing * Linters and Annotators * ci dir fix * Missing undef fixed * Enable grep checks * More test conversions * More split * Correct file * Removes unneeded inputs * oop * More dependency changes * More conversions * Conversion fixes * Fixes * Some assert fixes * Corrects start gate * Converted some README.dms to README.mds * Removes duplicate proc * Removes unused defines * Example configs * fix dll access viol by double calling * Post-rebase fixes * Cleans up names global list * Undef restart counter * More code/game/ cleanup * Statpanel update * Skybox * add * Fix ticker * Roundend fix * Persistence dependency update * Reordering * Reordering * Reordering * Initstage fix * . * . * Reorder * Reorder * Circle * Mobs * Air * Test fix * CI Script Fix * Configs * More ticker stuff * This is now in 'reboot world' * Restart world announcements * no glob in PreInit * to define * Update * Removed old include * Make this file normal again * moved * test * shared unit testing objects * Updates batched_spritesheets and universal_icon * . * job data debug * rm that * init order * show us * . * i wonder * . * . * urg * do we not have a job ID? * . * rm sleep for now * updated rust-g linux binaries * binaries update 2 * binaries update 3 * testing something * change that * test something * . * . * . * locavar * test * move that * . * debug * don't run this test * strack trace it * cleaner * . * . * cras again * also comment this out * return to official rust g * Update robot_icons.dm * monitor the generation * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
/// If the configuration is loaded
|
||||
var/loaded = FALSE
|
||||
|
||||
/// If a reload is in progress
|
||||
var/reload_in_progress = FALSE
|
||||
|
||||
/// A regex that matches words blocked IC
|
||||
var/static/regex/ic_filter_regex
|
||||
|
||||
@@ -64,13 +67,23 @@
|
||||
var/static/list/configuration_errors
|
||||
|
||||
/datum/controller/configuration/proc/admin_reload()
|
||||
if(IsAdminAdvancedProcCall())
|
||||
if(IsAdminAdvancedProcCall() || !PreConfigReload())
|
||||
return
|
||||
log_admin("[key_name_admin(usr)] has forcefully reloaded the configuration from disk.")
|
||||
message_admins("[key_name_admin(usr)] has forcefully reloaded the configuration from disk.")
|
||||
full_wipe()
|
||||
Load(world.params[OVERRIDE_CONFIG_DIRECTORY_PARAMETER])
|
||||
|
||||
/datum/controller/configuration/proc/PreConfigReload()
|
||||
if(reload_in_progress)
|
||||
to_chat(usr, span_warning("Another user is already reloading the config!"))
|
||||
return FALSE
|
||||
|
||||
reload_in_progress = TRUE
|
||||
world.TgsTriggerEvent("tg-PreConfigReload", wait_for_completion = TRUE)
|
||||
reload_in_progress = FALSE
|
||||
return TRUE
|
||||
|
||||
/datum/controller/configuration/proc/Load(_directory)
|
||||
if(IsAdminAdvancedProcCall()) //If admin proccall is detected down the line it will horribly break everything.
|
||||
return
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
/datum/config_entry/number/walk_speed
|
||||
default = 0
|
||||
|
||||
/datum/config_entry/flag/force_random_names
|
||||
|
||||
///Mob specific modifiers. NOTE: These will affect different mob types in different ways
|
||||
/datum/config_entry/number/human_delay
|
||||
default = 0
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
/// server name (the name of the game window)
|
||||
/datum/config_entry/string/servername
|
||||
|
||||
/// Countdown between lobby and the round starting.
|
||||
/datum/config_entry/number/lobby_countdown
|
||||
default = 120
|
||||
integer = FALSE
|
||||
min_val = 0
|
||||
|
||||
/// Post round murder death kill countdown.
|
||||
/datum/config_entry/number/round_end_countdown
|
||||
default = 25
|
||||
integer = FALSE
|
||||
min_val = 0
|
||||
|
||||
/// generate numeric suffix based on server port
|
||||
/datum/config_entry/flag/server_suffix
|
||||
|
||||
@@ -222,9 +234,6 @@
|
||||
|
||||
// var/static/Tickcomp = 0 // FIXME: Unused
|
||||
|
||||
/// use socket_talk to communicate with other processes
|
||||
/datum/config_entry/flag/socket_talk
|
||||
|
||||
// var/static/list/resource_urls = null // FIXME: Unused
|
||||
|
||||
/// Ghosts can turn on Antagovision to see a HUD of who is the bad guys this round.
|
||||
@@ -787,6 +796,60 @@
|
||||
/datum/config_entry/flag/discord_ahelps_all
|
||||
default = FALSE
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate/base_mc_tick_rate
|
||||
integer = FALSE
|
||||
default = 1
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate/high_pop_mc_tick_rate
|
||||
integer = FALSE
|
||||
default = 1.1
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate/high_pop_mc_mode_amount
|
||||
default = 65
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate/disable_high_pop_mc_mode_amount
|
||||
default = 60
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate
|
||||
abstract_type = /datum/config_entry/number/mc_tick_rate
|
||||
|
||||
/datum/config_entry/number/mc_tick_rate/ValidateAndSet(str_val)
|
||||
. = ..()
|
||||
if (.)
|
||||
Master.UpdateTickRate()
|
||||
|
||||
/datum/config_entry/flag/resume_after_initializations
|
||||
|
||||
/datum/config_entry/flag/resume_after_initializations/ValidateAndSet(str_val)
|
||||
. = ..()
|
||||
if(. && MC_RUNNING())
|
||||
world.sleep_offline = !config_entry_value
|
||||
|
||||
/datum/config_entry/number/rounds_until_hard_restart
|
||||
default = -1
|
||||
min_val = 0
|
||||
|
||||
/datum/config_entry/flag/auto_profile
|
||||
|
||||
/datum/config_entry/number/profiler_interval
|
||||
default = 300 SECONDS
|
||||
|
||||
/datum/config_entry/number/drift_dump_threshold
|
||||
default = 4 SECONDS
|
||||
|
||||
/datum/config_entry/number/drift_profile_delay
|
||||
default = 15 SECONDS
|
||||
|
||||
/datum/config_entry/flag/forbid_all_profiling
|
||||
|
||||
/datum/config_entry/flag/forbid_admin_profiling
|
||||
|
||||
/datum/config_entry/flag/toast_notification_on_init
|
||||
|
||||
/// If admins with +DEBUG can initialize byond-tracy midround.
|
||||
/datum/config_entry/flag/allow_tracy_start
|
||||
protection = CONFIG_ENTRY_LOCKED
|
||||
|
||||
/// If admins with +DEBUG can queue byond-tracy to run the next round.
|
||||
/datum/config_entry/flag/allow_tracy_queue
|
||||
protection = CONFIG_ENTRY_LOCKED
|
||||
|
||||
Reference in New Issue
Block a user