mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Allow to hide Initialized mesages (#88681)
## About The Pull Request Adds `Debug` group to initialization messages ## Why It's Good For The Game You can finally hide those annoying messages, and leave it on special Logs/Debug tabs <details><summary>Video</summary> https://github.com/user-attachments/assets/0b0d5219-d420-4d49-aa90-069961dcdaeb </details> ## Changelog 🆑 qol: Now you can hide `Initialized some shit within 0s` messages, by unchecking `Debug Log` checkbox into the chat tabs settings /🆑
This commit is contained in:
@@ -327,7 +327,7 @@ ADMIN_VERB(cmd_controller_view_ui, R_SERVER|R_DEBUG, "Controller Overview", "Vie
|
||||
init_stage_completed = 0
|
||||
var/mc_started = FALSE
|
||||
|
||||
to_chat(world, span_boldannounce("Initializing subsystems..."))
|
||||
to_chat(world, span_boldannounce("Initializing subsystems..."), MESSAGE_TYPE_DEBUG)
|
||||
|
||||
var/list/stage_sorted_subsystems = new(INITSTAGE_MAX)
|
||||
for (var/i in 1 to INITSTAGE_MAX)
|
||||
@@ -367,7 +367,7 @@ ADMIN_VERB(cmd_controller_view_ui, R_SERVER|R_DEBUG, "Controller Overview", "Vie
|
||||
|
||||
|
||||
var/msg = "Initializations complete within [time] second[time == 1 ? "" : "s"]!"
|
||||
to_chat(world, span_boldannounce("[msg]"))
|
||||
to_chat(world, span_boldannounce("[msg]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(msg)
|
||||
|
||||
|
||||
@@ -461,7 +461,7 @@ ADMIN_VERB(cmd_controller_view_ui, R_SERVER|R_DEBUG, "Controller Overview", "Vie
|
||||
var/chat_message = chat_warning ? span_boldwarning(message) : span_boldannounce(message)
|
||||
|
||||
if(result != SS_INIT_NO_MESSAGE)
|
||||
to_chat(world, chat_message)
|
||||
to_chat(world, chat_message, MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
|
||||
/datum/controller/master/proc/SetRunLevel(new_runlevel)
|
||||
|
||||
@@ -363,7 +363,7 @@ Used by the AI doomsday and the self-destruct nuke.
|
||||
multiz_levels = SSmapping.multiz_levels
|
||||
loaded_lazy_templates = SSmapping.loaded_lazy_templates
|
||||
|
||||
#define INIT_ANNOUNCE(X) to_chat(world, span_boldannounce("[X]")); log_world(X)
|
||||
#define INIT_ANNOUNCE(X) to_chat(world, span_boldannounce("[X]"), MESSAGE_TYPE_DEBUG); log_world(X)
|
||||
/datum/controller/subsystem/mapping/proc/LoadGroup(list/errorList, name, path, files, list/traits, list/default_traits, silent = FALSE, height_autosetup = TRUE)
|
||||
. = list()
|
||||
var/start_time = REALTIMEOFDAY
|
||||
@@ -581,13 +581,13 @@ ADMIN_VERB(load_away_mission, R_FUN, "Load Away Mission", "Load a specific away
|
||||
if(!mapfile)
|
||||
return
|
||||
away_name = "[mapfile] custom"
|
||||
to_chat(user,span_notice("Loading [away_name]..."))
|
||||
to_chat(user, span_notice("Loading [away_name]..."), MESSAGE_TYPE_DEBUG)
|
||||
var/datum/map_template/template = new(mapfile, "Away Mission")
|
||||
away_level = template.load_new_z(secret)
|
||||
else
|
||||
if(answer in GLOB.potentialRandomZlevels)
|
||||
away_name = answer
|
||||
to_chat(user,span_notice("Loading [away_name]..."))
|
||||
to_chat(user, span_notice("Loading [away_name]..."), MESSAGE_TYPE_DEBUG)
|
||||
var/datum/map_template/template = new(away_name, "Away Mission")
|
||||
away_level = template.load_new_z(secret)
|
||||
else
|
||||
@@ -899,7 +899,7 @@ ADMIN_VERB(load_away_mission, R_FUN, "Load Away Mission", "Load a specific away
|
||||
else
|
||||
start_time = REALTIMEOFDAY
|
||||
var/beginning_message = "Loading all away missions..."
|
||||
to_chat(world, span_boldannounce(beginning_message))
|
||||
to_chat(world, span_boldannounce(beginning_message), MESSAGE_TYPE_DEBUG)
|
||||
log_world(beginning_message)
|
||||
log_mapping(beginning_message)
|
||||
|
||||
@@ -917,7 +917,7 @@ ADMIN_VERB(load_away_mission, R_FUN, "Load Away Mission", "Load a specific away
|
||||
if(!isnull(start_time))
|
||||
var/tracked_time = (REALTIMEOFDAY - start_time) / 10
|
||||
var/finished_message = "Loaded [number_of_away_missions] away missions in [tracked_time] second[tracked_time == 1 ? "" : "s"]!"
|
||||
to_chat(world, span_boldannounce(finished_message))
|
||||
to_chat(world, span_boldannounce(finished_message), MESSAGE_TYPE_DEBUG)
|
||||
log_world(finished_message)
|
||||
log_mapping(finished_message)
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
new_turf.turf_flags |= NO_RUINS
|
||||
|
||||
var/message = "[name] terrain generation finished in [(REALTIMEOFDAY - start_time)/10]s!"
|
||||
to_chat(world, span_boldannounce("[message]"))
|
||||
to_chat(world, span_boldannounce("[message]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@
|
||||
generated_turfs_per_biome[biome] = generated_turfs
|
||||
|
||||
var/message = "[name] terrain generation finished in [(REALTIMEOFDAY - start_time)/10]s!"
|
||||
to_chat(world, span_boldannounce("[message]"))
|
||||
to_chat(world, span_boldannounce("[message]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@
|
||||
CHECK_TICK
|
||||
|
||||
var/message = "[name] terrain population finished in [(REALTIMEOFDAY - start_time)/10]s!"
|
||||
to_chat(world, span_boldannounce("[message]"))
|
||||
to_chat(world, span_boldannounce("[message]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@
|
||||
// No sense in doing anything here if nothing is allowed anyway.
|
||||
if(!flora_allowed && !features_allowed && !fauna_allowed)
|
||||
var/message = "[name] terrain population finished in [(REALTIMEOFDAY - start_time)/10]s!"
|
||||
to_chat(world, span_boldannounce("[message]"))
|
||||
to_chat(world, span_boldannounce("[message]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
return
|
||||
|
||||
@@ -330,7 +330,7 @@
|
||||
CHECK_TICK
|
||||
|
||||
var/message = "[name] terrain population finished in [(REALTIMEOFDAY - start_time)/10]s!"
|
||||
to_chat(world, span_boldannounce("[message]"))
|
||||
to_chat(world, span_boldannounce("[message]"), MESSAGE_TYPE_DEBUG)
|
||||
log_world(message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user