From 70a69c5913e3281e6aba6ecdf8c527541f90a509 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Thu, 17 May 2018 11:59:35 -0400 Subject: [PATCH 1/3] Provides a link to statbus & round logs --- code/controllers/configuration/entries/general.dm | 4 ++++ code/controllers/subsystem/ticker.dm | 7 +++++++ config/config.txt | 9 +++++++++ 3 files changed, 20 insertions(+) diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index 258a695a25b..99644ce88fc 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -177,6 +177,10 @@ /datum/config_entry/string/githuburl config_entry_value = "https://www.github.com/tgstation/-tg-station" +/datum/config_entry/string/roundstatsurl + +/datum/config_entry/string/gamelogurl + /datum/config_entry/number/githubrepoid config_entry_value = null min_val = 0 diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 4c9920dc89c..0ac69f7f754 100755 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -612,6 +612,13 @@ SUBSYSTEM_DEF(ticker) if(end_string) end_state = end_string + var/statspage = CONFIG_GET(string/roundstatsurl) + var/gamelogloc = CONFIG_GET(string/gamelogurl) + if(statspage) + to_chat(world, "Round statistics and logs can be viewed at [statspage][GLOB.round_id]") + else if(gamelogloc) + to_chat(world, "Round logs can be located at [gamelogloc]") + log_game("Rebooting World. [reason]") world.Reboot() diff --git a/config/config.txt b/config/config.txt index 35989e500ac..313fcf854f4 100644 --- a/config/config.txt +++ b/config/config.txt @@ -219,6 +219,15 @@ CHECK_RANDOMIZER ## Github address # GITHUBURL https://www.github.com/tgstation/tgstation +## Round specific stats address +## Link to round specific logs parsed IE statbus. RoundID is filled in automatically by ticker/Reboot() +## This will take priority over the game logs address during reboot. +# ROUNDSTATSURL https://atlantaned.space/statbus/round.php?round= + +## Game Logs address +## Incase you don't have a fancy parsing system, but still want players to be able to find where you keep logs. +# GAMELOGURL https://tgstation13.org/parsed-logs/basil/data/logs/ + ## Github repo id ##This can be found by going to https://api.github.com/users//repos ##Or https://api.github.com/orgs//repos if the repo owner is an organization From 364fbeee5c55b33a870fc8d0200f6ca2639328ea Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Thu, 17 May 2018 16:18:42 -0400 Subject: [PATCH 2/3] needifull --- config/config.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config/config.txt b/config/config.txt index 313fcf854f4..da2cce93aa7 100644 --- a/config/config.txt +++ b/config/config.txt @@ -220,13 +220,15 @@ CHECK_RANDOMIZER # GITHUBURL https://www.github.com/tgstation/tgstation ## Round specific stats address -## Link to round specific logs parsed IE statbus. RoundID is filled in automatically by ticker/Reboot() +## Link to round specific parsed logs; IE statbus. It is appended with the RoundID automatically by ticker/Reboot() ## This will take priority over the game logs address during reboot. -# ROUNDSTATSURL https://atlantaned.space/statbus/round.php?round= +## Example: https://atlantaned.space/statbus/round.php?round= +# ROUNDSTATSURL ## Game Logs address -## Incase you don't have a fancy parsing system, but still want players to be able to find where you keep logs. -# GAMELOGURL https://tgstation13.org/parsed-logs/basil/data/logs/ +## Incase you don't have a fancy parsing system, but still want players to be able to find where you keep your server's logs. +## Example: https://tgstation13.org/parsed-logs/basil/data/logs/ +# GAMELOGURL ## Github repo id ##This can be found by going to https://api.github.com/users//repos From c79fb9f288a05c03c22d65c9cdc2db8dc7d19306 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Fri, 18 May 2018 10:50:59 -0400 Subject: [PATCH 3/3] href instead --- code/controllers/subsystem/ticker.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 0ac69f7f754..6a7331c55d8 100755 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -615,9 +615,9 @@ SUBSYSTEM_DEF(ticker) var/statspage = CONFIG_GET(string/roundstatsurl) var/gamelogloc = CONFIG_GET(string/gamelogurl) if(statspage) - to_chat(world, "Round statistics and logs can be viewed at [statspage][GLOB.round_id]") + to_chat(world, "Round statistics and logs can be viewed at this website!") else if(gamelogloc) - to_chat(world, "Round logs can be located at [gamelogloc]") + to_chat(world, "Round logs can be located at this website!") log_game("Rebooting World. [reason]")