mrnotsoevil / CSLMusicMod

Add custom music and radio stations to Cities: Skylines
GNU Lesser General Public License v2.1
26 stars 9 forks source link

Suggestion: Emergency broadcast system #19

Open originalfoo opened 6 years ago

originalfoo commented 6 years ago

An extension to the contexts system; the ability to interrupt current track during emergencies, based on event triggers. I assume CSL triggers events at start of or on early-detection of disasters, or use detouring?

For implementation, maybe easiest way would be to just scan for specifically named audio files in in a disasters folder?

I'm only just starting out with the disasters DLC and your mod so apologies if this functionality is already implemented.

rumangerst commented 6 years ago

I think I don't quite understand what you want. The context system has a filter for disasters that triggers when any disaster is happening. If you put a disaster context on top priority, it will switch to different content if a disaster is happening.

originalfoo commented 6 years ago

I've been pondering this some more and I think there's actually several issues at play - but I'm struggling to clarify them succinctly - partly because I don't yet fully comprehend the specifics of the radio system, so I'll start by asking a few questions...

What effect does the #broadcast tag actually have on a track?

In a context filter or schedule, how do I differentiate between a disaster prediction and the actual disaster, or even the end of a disaster?

What do the from and to settings relate to in a "type" : "disaster" context? The docs describe them as "intervals" but I'm not sure what that actually means.

rumangerst commented 6 years ago

I don't understand the broadcast system myself and #broadcast should not have any effects I am aware of. I only know that it is somehow independent from the actual radio system, but yet was not able to figure out how exactly it works.

The from & to values describe the number of disasters currently (? don't know) happening. I only bought Natural Disasters pretty recently, so I was not able to investigate it more.