mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13.git
synced 2026-08-21 16:36:43 +01:00
* sync (#3) * shuttle auto call * Merge /vore into /master (#39) * progress * Compile errors fixed No idea if it's test worthy tho as conflicts with race overhaul and narky removal. * Update admins.txt * efforts continue Fuck grab code, seriously * grab code is cancer * Execute the Narkism Do not hesitate. Show no mercy. * holy shit grab code is awful * have I bitched about grab code My bitching, let me show you it * código de agarre es una mierda No really it is * yeah I don't even know anymore. * Lolnope. Fuck grab code * I'm not even sure what to fix anymore * Self eating is not an acceptable fate * Taste the void, son. * My code doesn't pass it's own sanity check. Maybe it's a sign of things to come. * uncommented and notes * It Works and I Don't Know Why (#38) * shuttle auto call * it works and I don't know why * Subsystem 12/21 Most Recent TG subsystem folder * globalvars 12/21 Tossed out the flavor_misc and parallax files * Onclick 12/21 as well as .dme updates * _defines 12/21 ommited old _MC.dm * _HELPERS 12/21 Preserved snowflake placement of furry sprites * _defeines/genetics reapplied narkism holdover for snowflake races. * Oops forgot mutant colors * modules porting 12/21 + Sounds/icons Admin, Client and most of mob life files ommitted * enviroment file * Admin optimizations ahelp log system kept * Mob ports 12/21 Flavor text preserved * datums ported 12/21 * Game ported 12/21 * batch of duplicate fixes/dogborg work Dogborgs need to be modernized to refractored borg standards. * moar fixes * Maps and futher compile fixes
53 lines
2.0 KiB
Plaintext
53 lines
2.0 KiB
Plaintext
//By Carnwennan
|
|
|
|
//This system was made as an alternative to all the in-game lists and variables used to log stuff in-game.
|
|
//lists and variables are great. However, they have several major flaws:
|
|
//Firstly, they use memory. TGstation has one of the highest memory usage of all the ss13 branches.
|
|
//Secondly, they are usually stored in an object. This means that they aren't centralised. It also means that
|
|
//the data is lost when the object is deleted! This is especially annoying for things like the singulo engine!
|
|
#define INVESTIGATE_DIR "data/investigate/"
|
|
|
|
//SYSTEM
|
|
/proc/investigate_subject2file(subject)
|
|
return file("[INVESTIGATE_DIR][subject].html")
|
|
|
|
/proc/investigate_reset()
|
|
if(fdel(INVESTIGATE_DIR))
|
|
return 1
|
|
return 0
|
|
|
|
/atom/proc/investigate_log(message, subject)
|
|
if(!message)
|
|
return
|
|
var/F = investigate_subject2file(subject)
|
|
if(!F)
|
|
return
|
|
F << "<small>[time_stamp()] \ref[src] ([x],[y],[z])</small> || [src] [message]<br>"
|
|
|
|
//ADMINVERBS
|
|
/client/proc/investigate_show( subject in list("hrefs","notes","watchlist","singulo","wires","telesci", "gravity", "records", "cargo", "supermatter", "atmos", "experimentor", "kudzu") )
|
|
set name = "Investigate"
|
|
set category = "Admin"
|
|
if(!holder)
|
|
return
|
|
switch(subject)
|
|
if("singulo", "wires", "telesci", "gravity", "records", "cargo", "supermatter", "atmos", "kudzu") //general one-round-only stuff
|
|
var/F = investigate_subject2file(subject)
|
|
if(!F)
|
|
src << "<font color='red'>Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.</font>"
|
|
return
|
|
src << browse(F,"window=investigate[subject];size=800x300")
|
|
if("hrefs") //persistent logs and stuff
|
|
if(href_logfile)
|
|
src << browse(href_logfile,"window=investigate[subject];size=800x300")
|
|
else if(!config.log_hrefs)
|
|
src << "<span class='danger'>Href logging is off and no logfile was found.</span>"
|
|
return
|
|
else
|
|
src << "<span class='danger'>No href logfile was found.</span>"
|
|
return
|
|
if("notes")
|
|
show_note()
|
|
if("watchlist")
|
|
watchlist_show()
|