Custom Raids
Customize raid events, override existing, extend with your own raids.
模組介紹 作者原文
Custom Raids
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:
- Ragnarok
- Deathsquitoseason
Enable those raids at own risk!
Documentation
Documentation can be found on the Custom Raids Wiki.
Features
- Can change frequency of raids
- Add new raid events, with full configuration options, including spawns
- Override existing raid (eg. disable trolls)
- Supplemental raid configurations. Add your own raid in its own file, and Custom Raids will scan and apply it.
- Potential for hours of frustration/fun as you figure out how to best configure these damn things to work as expected.
- Server-side configurations
FAQ
- Is it server side only?
- No. Both client and server needs the mod for most features. It can be server-only in very limited scenarios, like disabling raids, but generally it will need to be on both sides.
- The way events work is that the host / dedicated server will run the logic for when to apply raids, and then send a message with the name of the raid to be assigned to all clients. The client in charge of zone (valheim multiplayer is weird) will then manage the actual spawning for the raid.
- Can I just have no raids?
- Yes. Raid activation happens server-side, making this even simpler, you should only need this mod serverside if you just want no raids. (You can also use Event Enhancer for this)
- Set configuration "EventTriggerChance=0" or
- Set configuration "RemoveAllExistingRaids=true", as long you don't have something custom, this will remove the options, thereby removing raids.
Client / Server
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 or later, their mod will use the servers configs.
Example
[Example_Raid]
Enabled = true
Name = Example1
Random = true
NearBaseOnly = false
RaidFrequency = 0.1
RaidChance = 100
[Example_Raid.0]
PrefabName = Skeleton
HuntPlayer = true
MaxSpawned = 10
SpawnInterval = 2
SpawnChancePerInterval = 100
Support
If you are already getting a server from Survival Servers, going through the link below sends a bit my way. No extra cost for you, but a beer for me!
If you feel like it
Changelog
- v1.8.2:
- Compatibility: Valheim v1.0.7.
- v1.8.1:
- Fixed: ConditionPlayersNearbyMin and ConditionPlayersNearbyMax did not count correctly and would stop raid from running.
- Documentation: Wiki had incorrect names for conditions for players nearby and players online.
- v1.8.0:
- Compatibility: World Advancement Progression. This should fix issue with private key lookups caused by changes in id used for storing player keys.
- Added: Support for vanilla spawn conditions 'InsidePlayerBase', 'InLava' and 'OutsideLava'. Note, these are conditions on the individual spawns, not the raid itself.
- v1.7.14:
- Fixed: Issue with overriding raids when multiple shared same name. This caused only one of the two raids to get modified and the other left as is. From now on, a raid configuration will replace all raids with same name with a single configured one. This was detected due to the two vanilla raids "army_theelder" and "army_moder" having duplicates.
- Fixed: custom_raids.raids.location_events_before_changes.txt printing to disk even though debug option was disabled.
- v1.7.13:
- Compatibility: Valheim v0.219.10.
- Added: Support for new vanilla player-based raid condition - C
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: