You are viewing a potentially older version of this package. View all versions.
ryuka_labs-DynamicPressure-2.1.0 icon

DynamicPressure

Adds extra enemies based on how your fights are going. They keep coming while you're winning and ease off once you're hurt. Light, Heavy and Nightmare styles.

Date uploaded a week ago
Version 2.1.0
Download link ryuka_labs-DynamicPressure-2.1.0.zip
Downloads 92
Dependency string ryuka_labs-DynamicPressure-2.1.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Dynamic Pressure

You started an arms race.
Now the enemies are joining it too.

Dynamic Pressure adds a director that paces extra enemies around how your fights are going. It only ever adds enemies. Vanilla spawns aren't reduced or replaced.

How It Plays

While you're on top of things, it keeps sending more enemies. Once you've been hurt badly enough, it stops and gives you a moment to recover. Push two rooms ahead and that break ends early.

Every so often you'll get a surge, a bigger group from one faction, with a short warning first.

If nothing's really hurting you, the breaks get shorter and surges come sooner. A fight that does hurt resets that, and so does the next level.

Extra enemies only come while you're fighting, so a cleared room stays clear until the next fight.

The number of extra enemies depends on how many the level already has, so later areas get more.

Settings

Three settings control the game and one helps with balance. They're all in the General section.

Enable Mod

EnableMod = true

Turns the mod on or off.

Pressure Style

PressureStyle = Light

Higher styles send extra enemies more often and bring tougher ones earlier.

  • Light: long breaks, rare surges, no mutated or heavy enemies.
  • Heavy: shorter breaks, regular surges, mutated and heavy enemies from Act 2 on.
  • Nightmare: short breaks, frequent surges, mutated and heavy enemies from the start.

Spawn Position

SpawnPosition = Balanced

Balanced puts them mostly ahead of you and to the sides, and rarely behind. Ahead never puts them behind you. Anywhere can use any direction, and they can appear in plain sight.

Record Combat Data

RecordCombatData = false

Off by default. See Helping With Balance below.

Fine Tuning

Turn on the Advanced filter in SULFUR Config to get four multipliers. They work with any style and all default to 1.

[Tuning]
ReinforcementMultiplier = 1
RestMultiplier = 1
EliteMultiplier = 1
BossHealthMultiplier = 1
  • Reinforcement Multiplier: how many extra enemies a level can get, from 0.5 to 2.
  • Rest Multiplier: how long the breaks last, from 0.5 to 2.
  • Elite Multiplier: the chance of mutated enemies, from 0 to 2. At 0 you won't get heavy enemies either. It does nothing on Light, since Light doesn't use them.
  • Boss Health Multiplier: boss health, from 1 to 3. It applies to every part of a boss, the Emperor's worm segments too. Changes kick in on the next level. Endless and Crypt bosses aren't affected.

Where Enemies Appear

Unless you pick Anywhere, they spawn where you can't see them and at least 15 meters away. If they spawn behind you, it's at least 25 meters back. They come from the enemies that belong in the area, one faction at a time, so they go after you instead of each other.

No extra enemies appear in safe zones, during boss fights, in the final room, in Endless or Crypt modes, or while you're nearly dead.

Helping With Balance

I can't test every build myself, so if you'd like to help, the mod can record your fights.

  1. Turn on Record Combat Data.
  2. Play normally.
  3. Pause the game or go to the hub, then press F10.
  4. Your file manager opens with the file selected. Send it to me on GitHub or Nexus Mods.

The file stays on your computer unless you send it. It has your gear, how your fights went and your mod list. It doesn't have your name, your Steam account or your save.

Upgrading From 0.1.x

Your Pressure Style carries over. The old tuning values (target pressure, cooldowns and so on) are gone, so any changes you made to them won't apply. Your old settings are backed up next to the config as ryuka.sulfur.dynamicpressure.cfg.pre-2.0.bak.

If you had Enable Auto Spawn off, the mod is now off through Enable Mod instead. Turn that back on to use it.

Debug Overlay

Press F9 to see what the director is doing: its phase, intensity, threat and budget. The overlay settings are under the Advanced filter in SULFUR Config.

Co-op

Works with SULFUR Together. Only the host's game adds enemies, and everyone sees the same ones, mutations included.

The host's settings are the ones that count, including boss health. Breaks and surges follow how the host's fights are going, and enemies spawn out of the host's sight, not necessarily yours.

Everyone should have the same version of the mod.

Progression

Extra enemies never count toward encounters, so they can't keep a gate locked once the required enemies are dead.

Known Limitations

Balance is still being worked on, so let me know how it feels.

Enemies that spawn far ahead can take a while to reach you.

In very open areas there may be no hidden spot nearby. On Ahead, the director waits instead of spawning anything behind you.

Localization

Settings and the overlay follow the game's language. Most of the newer text is machine translated, so corrections are welcome.

Source Code

The source is on my GitHub if you want to read it or use it as a reference for your own mod. It's only my own code and packaging text, with no SULFUR game files, Unity assemblies, BepInEx binaries, paid assets or decompiled game source.

Dynamic-Pressure

CHANGELOG

Changelog

2.1.0

  • Added a Boss Health Multiplier, from 1 to 3, under the Advanced filter in SULFUR Config. Changes kick in on the next level.
  • Added SULFUR Together support. Only the host's game adds enemies, and everyone sees the same ones, mutations included.

2.0.0

The mod has been rebuilt around a pacing director.

  • Extra enemies now come and go in a cycle based on the damage you actually take. If nothing's really hurting you, the breaks get shorter and surges come sooner.
  • Added surges, bigger groups from one faction with a short warning first.
  • Fixed the mod stopping as soon as a couple of enemies noticed you. Every enemy counted the same no matter how dangerous it was, so busy fights and later levels got almost no extra enemies.
  • The number of extra enemies now depends on how many the level already has, so later areas get more.
  • Extra enemies now spawn out of sight and further away, and more often ahead of you than behind. The new Spawn Position setting can stop them spawning behind you at all.
  • Extra enemies now come from a hand-picked list, so you won't get ghosts, immortal hunters, vehicles or turrets.
  • Light no longer adds mutated or heavy enemies. Heavy adds them from Act 2, Nightmare from the start.
  • No more extra enemies in boss fights, Endless or Crypt modes, or while you're nearly dead.
  • Settings have been reduced to Enable Mod, Pressure Style and Spawn Position. Your Pressure Style carries over. Other old values no longer apply, and there's a backup next to the config.
  • Added multipliers for extra enemies, break length and elites, under the Advanced filter in SULFUR Config.
  • Added Record Combat Data, off by default. Press F10 while paused or in the hub to get a file you can send me to help with balance.
  • Added Traditional Chinese.

0.1.9

  • Fixed the mod doing nothing at all on SULFUR 0.19.7. That version removed a property the mod read every frame to tell how long ago the player was last hurt, which threw on the first frame of every session: the overlay stayed empty, no enemies were ever detected, and a manual spawn reported a spawn exception. The mod now keeps that timer itself, so it no longer depends on that property.
  • The overlay reports it when a game update breaks something the mod reads, and the failure is logged once instead of once per frame. Previously a single missing member could write tens of thousands of identical errors into a run's log.
  • Removed a startup warning about a level transition method that has never existed. Level transitions were already detected through the methods the game does have.

0.1.8

  • The debug overlay now follows the game language, with translations for every language the game ships.
  • The debug overlay is now colour coded, so values that are holding spawning back stand out from normal ones.
  • The debug overlay now sizes itself to the window and scrolls, so nothing is cut off at the bottom.
  • Language files are now also read from beside the plugin DLL, for mod managers that flatten a package into one folder.
  • Added an optional Log Spawn Decisions setting that writes a periodic spawn wave summary to the BepInEx log. Off by default.

0.1.7

  • Fixed a large frame rate drop that could persist while standing in one area. Once a room had taken its full share of extra enemies, the mod retried a spawn that could never succeed on every single frame.
  • Extra enemies now spill over into neighbouring rooms once a room is full, instead of the wave giving up.
  • Updated the spawn point search for SULFUR 0.19.

0.1.6

  • Fixed scripted encounter gates remaining locked when Dynamic Pressure enemies were still alive.
  • Fixed player-activated gates and fight triggers sometimes failing after additional enemies were spawned.
  • Removed the unnecessary player GameObject lookup used during enemy aggro initialization.
  • Dynamic Pressure enemies no longer count as required enemies for vanilla AllDeadTrigger progression.
  • Removed temporary diagnostics and compatibility workarounds used while investigating these issues.

0.1.0 - 0.1.1

Released before this changelog was kept; see the Thunderstore version history.