Daedalus Dock - Modules - TypesVar Details - Proc Details

media

Vars

byond_sound_formatsStores all sound formats byond understands.
errored_filesIt's more consistently functional to just store these in a list and tell admins to go digging than log it.
invalid_jsons_existOnly notify admins once per init about invalid jsons
tracks_by_tagMedia definitions grouped by their media_tags, All tracks share the implicit tag all

Procs

decode_or_nullA two-entry list containing the erroring tag, and a reason for the error. Quarantine proc for json decoding, Has handling code for most reasonable issues with file structure, and can safely die. Returns -1/MEDIA_LOAD_FAILED on error, a list on success, and null on suicide.
log_load_failLog a failure to load a specific media track, and notify admins.
validate_mediaRun media validation checks. Returns null on success, or a log_load_failure compatible tuple-list on failure.

Var Details

byond_sound_formats

Stores all sound formats byond understands.

errored_files

It's more consistently functional to just store these in a list and tell admins to go digging than log it.

invalid_jsons_exist

Only notify admins once per init about invalid jsons

tracks_by_tag

Media definitions grouped by their media_tags, All tracks share the implicit tag all

Proc Details

decode_or_null

A two-entry list containing the erroring tag, and a reason for the error. Quarantine proc for json decoding, Has handling code for most reasonable issues with file structure, and can safely die. Returns -1/MEDIA_LOAD_FAILED on error, a list on success, and null on suicide.

log_load_fail

Log a failure to load a specific media track, and notify admins.

validate_media

Run media validation checks. Returns null on success, or a log_load_failure compatible tuple-list on failure.