DashboardAlarms
Alarms for Dashboard charts: watch production, consumption, max production, use % of max or stock; alarm above/below a value or on a % drop, with chart flash, banner, game sounds (even with sound off) and snooze.
| Date uploaded | 11 hours ago |
| Version | 1.0.0 |
| Download link | buffy5490-DashboardAlarms-1.0.0.zip |
| Downloads | 6 |
| Dependency string | buffy5490-DashboardAlarms-1.0.0 |
This mod requires the following mods to function
CommonAPI-DSPModSave
Library that allows to store mod save data separately from vanilla saves
Preferred version: 1.2.2README
Dashboard Alarms
Alarms for the Dyson Sphere Program Dashboard. Pick a production or storage chart, set a rule, and the mod warns you when it breaks, with a flashing chart border, a banner at the top of the screen and a sound. The banner and sound work even when the Dashboard is closed.
Example: "Warn me when Space Warper demand reaches 90% of what my warper factories can make."
Features
- Watch production, consumption, net, max production or use % of max on item production charts, and total stock on item storage charts.
- Trigger when the value is above or below a number, or when it drops a set % below its recent average.
- Hold time so short dips don't set it off.
- Alerts: a flashing chart border, a banner listing every alarm, and one or more of the game's own sounds. They play even with the game's sound turned off, if you want that.
- Snooze silences an alarm for a set time. There's no permanent mute, so an alarm can't be silenced and forgotten.
- Saved with each save file.
- Styled to match the game's UI.
Install
Install with r2modman (or the Thunderstore app). BepInEx and DSPModSave are installed with it automatically.
To install by hand, copy DashboardAlarms.dll to BepInEx/plugins/DashboardAlarms/. You also need
BepInEx 5 and DSPModSave.
Using it
- Open the Dashboard and add an item production or item storage chart the normal way.
- Open the chart's menu and choose Add alarm... at the bottom.
- Pick what to watch, the trigger, the threshold, the hold time and the sounds, then press Create.
- To change or delete it later, choose Edit alarm... from the same menu.
Ctrl+Shift+A opens a list of every alarm. From the list you can turn alarms on or off, edit them or delete them.
Each alarm covers the same area as its chart. Set the chart to the whole cluster to watch every planet.
What you can watch
| Chart | Watch |
|---|---|
| Item production | Production/min, Consumption/min, Net/min (production − consumption), Max production/min, Use % of max |
| Item storage | Stock: total items in every storage category the chart shows |
- Rates use the chart's own time setting (1 minute, 10 minutes, 1 hour, ...), so the alarm sees the same number the chart shows. A chart set to "total" uses 1 minute.
- Max production is the game's reference rate: the most that every powered machine making the item can output per minute, counting proliferator. It's the "reference speed" in the game's statistics tooltips. It stays steady when output is held back by full belts or low demand.
- Use % of max is consumption ÷ max production, so it shows how close demand is to what your factories can make. For example, Space Warper, Use % of max, Above 90.
Triggers
- Below: fires when the value is under a number, for example white science production < 300k/min.
- Above: fires when the value is over a number, for example hydrogen stock > 5M.
- % drop from average: fires when the value falls a set % below its own recent average. While a drop is happening the average stays frozen, so a long drop keeps alarming. Reset average accepts the new level as normal.
Every alarm has a hold time: the rule has to stay broken for that many seconds before the alarm
fires. Number fields accept 300000, 300,000, 300k, 1.5M and 2G.
When an alarm fires
- Chart border: flashes red on the Dashboard. It's amber while the hold time is running.
- Banner: a red banner at the top of the screen lists every alarm and its current value.
- Sound: the sounds you picked play together, and repeat every N seconds if you set a repeat interval.
Each banner line has three buttons:
- Snooze: silences that alarm for its snooze length. It stays in the banner, dimmed, with a
countdown.
- If the value recovers during the snooze, the alarm clears.
- If it's still bad when the snooze ends, the alarm sounds again.
- Unsnooze ends the snooze early.
- Edit: opens the alarm's settings.
- Remove...: deletes the alarm after you confirm. The chart stays on your Dashboard.
Snooze all appears when two or more alarms are going off. List opens the alarm list.
Settings
In the game's Settings > Audio tab:
- Dashboard alarms play with sound off (on by default): alarms play even when the game's master or sound effects volume is down or off. Turn it off to have alarms follow the game's volume instead.
- Dashboard alarm volume (default 50%), with a Test button.
Other options are in BepInEx/config/buffylvr.dsp.dashboardalarms.cfg:
| Setting | Default | Meaning |
|---|---|---|
General.SampleSeconds |
2 | How often each alarm checks its chart's value. |
General.StockRefreshSeconds |
30 | How often stock and max-production alarms ask the game to recount. The game counts one planet per tick, so a lower number costs more CPU on very large saves. Minimum 5. |
Sound.AlarmVolumePercent |
50 | Alarm volume, the same as the Settings slider. |
Sound.PlayWithSoundOff |
true | The same as the Settings checkbox. |
UI.Scale |
1 | Size of the alarm windows and banner. |
UI.AlarmListHotkey |
Ctrl+Shift+A | Opens and closes the alarm list. |
Notes
- Only item production and item storage charts can have alarms for now. Power, Dyson sphere and other charts can't yet.
- Storage counts: the game only counts storage and machines when something asks, so the mod asks
for a recount every
StockRefreshSeconds. Stock and max-production alarms therefore update every 30 seconds by default. - Deleted charts: if you delete a chart's stat plan, its alarm is deleted too.
- Tested on game version 0.10.35.29151.
Report bugs and ideas at https://github.com/Buffylvr/DSPDashboardAlarms/issues.
Building from source
dotnet build -c Release
The build references DLLs from your game folder and your BepInEx profile, and none of those DLLs
are in this repo. The default paths are the Steam install location and the r2modman Default
profile. To use other paths, create a Directory.Build.user.props file (it's git-ignored):
<Project>
<PropertyGroup>
<DSPDir>D:\SteamLibrary\steamapps\common\Dyson Sphere Program</DSPDir>
<BepInExDir>$(APPDATA)\r2modmanPlus-local\DysonSphereProgram\profiles\MyProfile\BepInEx</BepInExDir>
</PropertyGroup>
</Project>
Offline logic tests (no game needed):
cd tests/LogicTests && dotnet build -c Release && bin/Release/net472/DashboardAlarms.LogicTests.exe
package.ps1 builds the Thunderstore zip into dist/.
License
MIT
CHANGELOG
Changelog
1.0.1
- README: screenshots of the alarm banner, the chart menu entry and the alarm editor, and a link to the Thunderstore page. No code changes.
1.0.0
- First public release (Thunderstore). Everything below has been tested in game on 0.10.35.29151.
- README rewritten for players; Thunderstore icon.
0.7.2
- Fix: wrapped text (the delete confirmation, long alarm lines, the editor's notes) was clipped with the game's font, because Unity under-measures wrapped text in that font. Lines are now counted word by word.
0.7.1
- Fix: with several alarms, the "Delete this alarm?" confirmation was cut off at the bottom of the banner. The banner now sizes itself from the height its content actually took, not an estimate.
0.7.0
- The alarm editor, alarm list and banner are restyled to match the game's UI: the game's own font, dark translucent navy panels with a title band and cyan rule, cyan-edged flat buttons with hover/pressed states, filled cyan for the selected choice, game-style checkboxes, dark input fields with a cyan focus edge, thin scrollbars, accent-coloured section headers and dimmed help text. The banner is a dark red-washed panel with a pulsing red accent strip.
0.6.3
- Fix: the last banner button ("Remove...") was pushed past the right edge and clipped; the line width now counts the margins around each button.
- Confirmed in game: Edit, Snooze, Unsnooze and Remove work; Settings > Audio rows show correctly.
0.6.2
- Banner lines have an Edit button that opens the alarm's settings.
- Snooze all only shows when two or more alarms are going off (with one it repeated the line's Snooze).
0.6.1
- Fix: the Settings > Audio options never appeared. The Audio tab keeps labels and controls in two separate columns ("labels" and "comps"); rows are now built by copying the label and the control into their own columns at the same height.
0.6.0
- Banner lines have a Remove... button. It asks "Delete this alarm? ..." with Delete alarm / Keep, so a stray click can't remove an alarm. The dashboard chart is not touched.
0.5.0
- Ack removed. Snooze is the only way to silence an alarm, and it is always time-limited, so an alarm can't be silenced and forgotten. Snoozed alarms stay in the banner (dimmed, with a countdown) and the chart border turns a steady dim red. A snoozed alarm clears if the value recovers, and alarms again as soon as the snooze ends if it hasn't. Unsnooze ends a snooze early.
0.4.0
- Alarm volume defaults to 50% and is adjustable in the game's Settings > Audio tab ("Dashboard alarm volume" slider with a Test button), next to the "play with sound off" checkbox. A note under them says they come from the DashboardAlarms mod. All three are copies of the game's own settings rows, so they match its style.
- Config:
Sound.AlarmVolumePercent(0-100, default 50) replacesSound.AlarmVolume.
0.3.0
- New checkbox in the game's Settings > Audio tab: "Dashboard alarms play with sound off" (on by default).
On: alarms play at
Sound.AlarmVolumeeven with the game's master or sound effects volume down or off. Off: alarms follow the game's Game Master x Sound Effects volume. Saved on Apply; alsoSound.PlayWithSoundOffin the config.
0.2.3
- Banner sized from its text: long alarm lines wrap onto extra lines and the banner grows to fit; buttons are as wide as their labels. Same for the list window's buttons ("X" is now "Delete").
- Confirmed in game: an alarm fires and shows the banner.
0.2.2
- Alarm sounds no longer use the game's Sound Effects slider, so they are heard with effects turned off. They play
through the mod's own 2D audio source at
Sound.AlarmVolume(new, default 1) x the game's Game Master Volume.
0.2.1
- Sounds play as plain 2D sounds at the listener, so the player's position can't make them inaudible.
- The Test button writes a sound report to the BepInEx log (sound found, volumes, listener, whether it is playing).
- A sound the game refuses is now logged instead of failing silently.
0.2.0
- New "Watch" choices on production charts: Max production/min (the game's reference rate: what every powered machine making the item can output, counting proliferator) and Use % of max (consumption as a % of max production), e.g. "alarm when I'm using more than 90% of what I can make".
- Production, consumption and net now use the chart's own time window (1 min, 10 min, 1 h, ...), so the alarm's value matches the number the chart shows. Charts set to "total" use 1 minute.
- Play sound: pick one or more sounds; they play together. Old saves keep their single sound.
- The selected choice in each button group is now clearly highlighted.
- Storage and max-production recounts are only trusted when they include the alarm's own planets, and are requested even while the dashboard keeps the game's counter busy.
- The editor now loads in game (v0.1.0 menu entry and window confirmed working).
0.1.0
- First version: alarms on item production (production/consumption/net per minute) and item storage (stock) dashboard charts.
- Below / above / % drop from average triggers, per-alarm hold time.
- Flashing chart border, top-of-screen banner, built-in game sound with optional repeat.
- Acknowledge and snooze, per alarm or all at once; alarm list (Ctrl+Shift+A).
- Saved per save file through DSPModSave.