Space Station 13 - Modules - TypesVar Details - Proc Details

blackbox

Vars

feedbackList of all recorded feedback
research_levelsList of highest tech levels attained that isn't lost lost by destruction of RD computers
sealedIs it time to stop tracking stats?
versionsAssociative list of any feedback variables that have had their format changed since creation and their current version, remember to update this

Procs

ReportDeathDeath reporting proc
SealBlackbox Sealer
ShutdownShutdown Helper
find_feedback_datumHelper to find and return a feeedback datum
log_researchResearch level broadcast logging helper
record_feedbackMain feedback recording proc
record_feedback_recurse_listRecursive list recorder

Var Details

feedback

List of all recorded feedback

research_levels

List of highest tech levels attained that isn't lost lost by destruction of RD computers

sealed

Is it time to stop tracking stats?

versions

Associative list of any feedback variables that have had their format changed since creation and their current version, remember to update this

Proc Details

ReportDeath

Death reporting proc

Called when humans and cyborgs die, and logs death info to the death table

Arguments:

Seal

Blackbox Sealer

Seals the blackbox, preventing new data from being stored. This is to avoid data being bloated during end round grief

Shutdown

Shutdown Helper

Dumps all feedback stats to the DB. Doesnt get much simpler than that.

find_feedback_datum

Helper to find and return a feeedback datum

Pass in a feedback datum key and key_type to do a lookup. It will create the feedback datum if it doesnt exist

Arguments:

log_research

Research level broadcast logging helper

This is called on R&D updates for a safe way of logging tech levels if an R&D console is destroyed

Arguments:

record_feedback

Main feedback recording proc

This is the bulk of this subsystem and is in charge of creating and using the variables. See .github/USING_FEEDBACK_DATA.md for instructions Note that feedback is not recorded to the DB during this function. That happens at round end.

Arguments:

record_feedback_recurse_list

Recursive list recorder

Used by the above proc for nested tallies

Arguments: