We recommend using the Thunderstore Mod Manager or an alternative for installing mods
This mod allows for customizing raids to your liking.
Want to have armies besieging your fortress? A bit of extra environmental effects along your way? Or just disable trolls?
This mod can help you do all of that!
Comes preconfigured with two additional end-game raids (disabled by default), to show how and what can be done:
Enable those raids at own risk!
Custom Raids needs to be installed on all clients (and server) to work.
From v1.2.0 clients will request the configurations currently loaded by the server, and use those without affecting the clients config files.
This means you should be able to have server-specific configurations, and the client can have its own setup for singleplayer.
For this to work, the mod needs to be installed on the server, and have configs set up properly there. When players join with Custom Raids v1.2.0, their mod will use the servers configs.
All configurations are placed in the default BepInEx configuration folder, and generated upon starting the game.
General configuration includes general mod controls, overall event system changes, and debugging options.
[General] ## Loads raid configurations from supplemental files. ## Eg. custom_raid.supplemental.my_raid.cfg will be included on load. LoadSupplementalRaids = true ## Generates pre-defined supplemental raids. The generated raids are disabled by default. GeneratePresetRaids = true [EventSystem] ## If enabled, removes all existing raids and only allows configured. RemoveAllExistingRaids = false ## Enable/disable override of existing events when event names match. OverrideExisting = true ## Frequency between checks for new raids. Value is in mintues. EventCheckInterval = 46 ## Chance of raid, per check interval. 100 is 100%. EventTriggerChance = 20 [IndividualRaids] ## If enabled, Custom Raids will overhaul the games way of checking for raids. ## This allows for setting individual frequences and chances for each raid. UseIndividualRaidChecks = false ## If overhaul is enhabled, ensures a minimum amount of minutes between each raid. MinimumTimeBetweenRaids = 46 [Debug] ## If enabled, scans existing raid event data, and dumps to a file in the plugin folder. WriteDefaultEventDataToDisk = false ## If enabled, dumps raid event data after applying configuration to a file in the plugin folder. WritePostChangeEventDataToDisk = false ## If enabled, scans existing environment data, and dumps to a file in the plugin folder. WriteEnvironmentDataToDisk = false ## If enabled, scans existing global keys, and dumps to a file in the plugin folder. WriteGlobalKeyDataToDisk = false
Main file for adding raid configuration.
To add a raid you must:
[YourRaidName] Enabled=true Name=MyRaid ... additional configuration
[YourRaidName.Index] Enabled=true Name=Draugr Party Time PrefabName=Draugr MaxSpawned=500 ... additional configuration
Repeat step 2, for additional spawns in the same raid event. Just make sure to increase the index every time.
For multiple raids, repeat from step 1.
Exactly as for the main raid file (custom_raids.raids.cfg). This is simply to allow for easy splitting into multiple files, and for others to easily add new raids to Custom Raids.
Just add the below to "custom_raids.raids.cfg". OverrideExisting is on by default.
[foresttrolls] Name=foresttrolls Enabled=false
Raid events are generally a bit "janky" to configure, so I suggest making use of the "RemoveAllExistingRaids" and console while testing.
Enable only your own change, and use console commands "randomevent" and "stopevent" to test things out.
Spawning during also seems to be very inconsistent, meaning with the same interval setting, you will sometimes have a bunch of wave triggers inside a short span, and sometimes it takes ages.
It is also important to understand how raids are started and run.
A pretty comprehensive guide for prefabs can be found here
See the Valheim Wiki - Event System for further details on raid configuration and how they work.
Basically, the host/server will make a check every once in a while. When the check happens, it then rolls a die to check if it should start an event.
A list of what it believes are "possible" raids is calculated, and a random one is picked.
These raids are based off the host/server instances configurations, meaning it needs to know about a raid to even to any checks.
Any clients are then notified that the raid should be started.
When a client receives a start event message, and is in charge of the area, its world spawners (see Spawning) will then start attempting to spawn in mobs.
It does this by finding the raid event it has loaded itself, based on the name received from the host.
If the event is found, the world spawners will try to spawn in the mobs in the event. For each mob they will check if spawn conditions are right.
THIS is what usually makes most raids stumble. If the raid starts, but nothing spawns in, it is usually because the spawners can't get the conditions right.
|Name||String||DeerArmy||Name of event. Can be used to override existing configurations with same name (I am looking at you, foresttrolls...)|
|Enabled||bool||true||Enable/disable raid configuration from being used|
|Duration||float||90||Duration of raid in seconds|
|StartMessage||String||Raid started||Message shown on raid start|
|EndMessage||String||Raid ended||Message shown on raid end|
|NearBaseOnly||bool||true||Spawn raid near base only|
|RequiredGlobalKeys||string||defeated_bonemass, defeated_dragon||Array (separate by ",") of required global keys. Leave empty for no requirement.|
|NotRequiredGlobalKeys||string||defeated_bonemass, defeated_dragon||Array (separate by ",") of required global keys. Leave empty for no requirement. Not sure what it is used for.|
|RequireOneOfGlobalKeys||string||defeated_bonemass, defeated_gdking||Array (separate by ",") of global keys of which one is required. Leave empty for no requirement.|
|ForceEnvironment||string||Misty||Name of environment to set for raid|
|ForceMusic||string||CombatEventL1||Name of music to set for raid|
|Random||bool||true||Include raid in random raid spawning.|
|Biomes||string||Array (separate by ",") of biomes. Leave empty for all allowed.|
|ConditionWorldAgeDaysMin||float||10||Minimum number of in-game days of the world, for this raid to be possible.|
|ConditionWorldAgeDaysMax||float||100||Maximum number of in-game days of the world, for this raid to be possible. 0 means no limit|
|ConditionDistanceToCenterMin||float||1000||Minimum distance to center for this raid to activate.|
|ConditionDistanceToCenterMax||float||2000||Maximum distance to center for this raid to activate. 0 means limitless.|
|CanStartDuringDay||bool||true||Enable/toggle this raid activating during day.|
|CanStartDuringNight||bool||true||Enable/toggle this raid activating during night|
|Faction||string||Boss||Assign a faction to all entities in raid.|
|RaidFrequency||float||46||Minutes between checks for this raid to run. 0 uses game default (46 minutes). This is only used if UseIndividualRaidChecks is set in general config.|
|RaidChance||float||20||Chance at each check for this raid to run. 0 uses game default (20%). This is only used if UseIndividualRaidChecks is set in general config.|
|Name||string||Draugr Party Time||Spawn configuration name|
|PrefabName||string||Draugr||Prefab name of entity to spawn. This can be any prefab|
|MaxSpawned||int||5||Maximum entities of type spawned in area|
|SpawnInterval||float||1||Interval (seconds) between wave checks|
|SpawnChancePerInterval||100||Chance (0 to 100) to spawn new wave per interval|
|SpawnDistance||float||0||Minimum distance to another entity. Highly volatile setting|
|SpawnRadiusMin||float||0||Minimum spawn radius. Highly volatile setting|
|SpawnRadiusMax||float||1||Maximum spawn radius. Highly volatile setting|
|GroupSizeMin||int||5||Minimum number of spawns per wave|
|GroupSizeMax||int||5||Maxium number of spawns per wave|
|SpawnAtNight||bool||true||Can spawn at night|
|SpawnAtDay||bool||true||Can spawn at day|
|HuntPlayer||bool||true||Does what it says. Will not work for all mobs, Deer will ignore it|
|GroundOffset||float||0.5||Offset above ground at which entity will be spawned|
|MinLevel||int||1||Min level of spawn. (2 is one star)|
|MaxLevel||int||3||Max level of spawn. (2 is one star)|
|RequiredGlobalKey||string||defeated_bonemass||Global key required for spawning. Leave empty for no requirement.|
|RequiredEnvironments||string||Array (separate by "," of required environments. Leave empty for no requirement.|
|GroupRadius||float||1||Size of circle to spawn group inside.|
|AltitudeMin||float||-1000||Minimum required altitude (distance to water surface) to spawn in|
|AltitudeMax||float||1000||Maximum required altitude (distance to water surface) to spawn in|
|TerrainTiltMin||float||0||Minium required tilt of terrain to spawn in|
|TerrainTiltMax||float||35||Maximum required tilt of terrain to spawn in|
|InForest||bool||true||Toggles spawning in forest|
|OutsideForest||bool||true||Toggles spawning outside of forest|
|OceanDepthMin||float||0||Minimum required ocean depth to spawn in. Ignored if min == max|
|OceanDepthMax||float||0||Maximum required ocean depth to spawn in. Ignored if min == max|
|Faction||string||ForestMonsters||Set custom faction for mob. This overrules the raids faction setting if set.|
Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.
|Upload date||Version number||Downloads||Download link|