V Rising
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
1.6K
Size
177KB

PVESieges (V Rising) — v1.0.263

Hostile factions besiege your castle in waves: they march on your castle heart, blow your doors with a sapper's bomb, and fight anyone who gets in their way. Beat the raid for the spoils of war.

Install

  • Requires BepInEx 6 (IL2CPP, build 733 or newer).
  • Dedicated server: copy PVESieges.dll into the server's BepInEx/plugins. That's all.
  • Private / hosted game: V Rising runs these on its own built-in server (VRising_Server inside the game folder), which doesn't load BepInEx by itself, and the mod doesn't set it up for you. Install BepInEx there the same way as for a dedicated server: copy BepInEx/ (without BepInEx/interop and BepInEx/cache, which are made fresh for the server), dotnet/, winhttp.dll, doorstop_config.ini and .doorstop_version from the V Rising folder into VRising_Server, and put PVESieges.dll in VRising_Server/BepInEx/plugins. The first host after that (and after each game update) can take 1–2 minutes while BepInEx prepares the server; if the game gives up, host again.
  • In the game client itself the mod does nothing: sieges run on the server, so your game doesn't need BepInEx or the mod for this. (If your game client runs BepInEx for other mods, its Doorstop settings are passed on to the built-in server it starts, which can stop BepInEx loading there.)
  • Only the host or server needs the mod; players who join need nothing.

What it keeps and changes on your PC

  • No internet access, no personal data: nothing about players is saved.
  • Walked ground near castles (map positions only, per castle) in %LOCALAPPDATA%/CastleSieges/castles. Files of castles not on this save are kept (another save on the same PC may use them) and removed after 30 days unused.
  • Its config, BepInEx/config/PVESieges.cfg.
  • It never deletes, moves or copies any DLL. Several versions in the plugins folder are fine: BepInEx loads the newest. Upgrading from 1.0.242 or older (the plugin id changed from melty.castlesieges to pvesieges): remove the old DLL yourself; while it's still loaded, the new one stays off and the log names the file.

How sieges start

  • At random: at sunrise (8%, DayChance) and nightfall (10%, NightChance), for every castle whose owner or a clan-mate is online. If someone is home (inside the castle's territory or within 60 m of the heart), it starts right away; if they're all away, it waits and marches as soon as the owner or a clan-mate gets home (one waiting raid per castle; online clan members get a message).
  • After slaying a V Blood (70%, VBloodRaidChance): that boss's own faction comes for your castle when you're back home. Beasts and bosses without a raiding faction don't.
  • Raids are called off if the owner and the whole clan go offline.
  • Admins (logged in with adminauth) can call and stop sieges in chat (see Commands).

Factions

Which factions can come depends on your castle heart level:

Heart level Sunrise Nightfall
1-2 Bandits, Restless Dead (Farbane) Restless Dead
3 Militia, Dunley Dead Dunley Dead
4 the Transcendum, Dracula's Vanguard (the Legion's lesser troops), Restless Spirits (ghosts) Restless Spirits
5 the Church of Light's army, the Blackfang's Venom Blades, Dracula's Legion any of these

Slaying a faction's V Blood sends that faction whatever your heart level.

Rarely, the forest itself comes: at every nightfall and sunrise there's a 3% chance (TreantRaidChance) of a Treant raid instead, whatever your heart level, with waves of 2 Treants each (TreantWaveSize). Treants never sleep during a raid and plant no bombs: they line up before your door and break it with one volley of entangling projectiles.

A siege

  • A warning, then 30 seconds later (WarningSeconds) the first wave. Three waves by default (Waves, 1–10) of 5, 8 and 10 raiders with one defender (Wave1Size–Wave3Size, the Raid Captain included; with more waves the middle ones repeat, e.g. 5 waves of 5, 8, 8, 10, 10). Each mixes fodder and tougher units (all fodder, then 80/20, then 60/40) in a random line-up. A wave has 20 seconds (WaveSeconds) before the next one arrives; beat it sooner and the next comes right away. A Raid Captain with the Blackfang Sentinels' level aura leads the last wave.
  • Each extra defender adds 3 raiders to every wave (ExtraRaidersPerDefender). Every player within 90 m of the heart defends it, clan or not: guests count for the waves, the defeat, the raid messages and the spoils. Only the owner or a clan-mate at home can bring a raid on.
  • Raiders never come above the strongest defender's level (weaker units, or the faction's fodder, take their place).
  • Each wave gathers outside your territory on ground players or creatures have stood on, level (never a cliff edge or ledge), at least 10 m from any castle wall and with a walked way in to the heart; if there's none outside, inside the territory at least 6 m from the walls, else just outside your main door.
  • They go for the heart along the ways you walk, through your doors. Flying in bat form isn't counted as a way in, and any part of a walk that passes through a wall (a jump, say) is left out. Your walks are kept across restarts.
  • Within 25 m of the door they're breaking, raiders head straight for the spot in front of it, unless a wall stands in between. Open doors and empty doorways are simply walked through.
  • At each closed door, wide door or garden gate on their way, a sapper (always a fodder unit) carries a bomb to the door while the army waits 12 m back (BombStandBack): 6 seconds to set it (SapperSetSeconds), then it goes off 5 seconds after it's lit (BombFuseSeconds), hurting anyone next to it. A wide door takes two bombs; a single door or garden gate, one. With no fodder left to carry a bomb, they batter the door instead.
  • Raiders only ever break doors, wide doors and garden gates: walls, door frames, pillars, railings, windows, furniture, chests, floors and stairs are never damaged. If the heart is shut in, they blow the nearest closed door that leads to it.
  • Walling your heart in is a soft opt-out: a heart enclosed on its floor by walls, windows, pillars or railings, with no door, doorway or staircase leading to it, isn't rolled for raids, raids waiting for it (rolled while you were away, or your V Blood raids) turn back when you get home, and !siege / !siege all skip it. A single door or doorway in any direction makes it raidable again, from the next nightfall or sunrise.
  • They fight you, your servants and summons within 15 m (RaiderAggroRange) with no wall or closed door in between, chase up to 25 m (ChaseRange), and fight back against creatures that attack them. Someone they can only reach through a wall isn't chased: they keep making for the door.
  • Win: kill the Raid Captain and it drops the spoils where it falls, one share per defender: jewels (tier 1–4 by how hard the raid was, for every faction), recipe books, Stygian shards, passive ability scrolls and shattered ancestral weapons, depending on the faction.
  • Raiders who reach the heart (within about 6 m of it) with nobody to fight face it and hack at it with their own attacks about once a second (HeartAttackAnimations); the heart isn't harmed, but don't stand in the swing.
  • Lose: they hold your heart for 30 seconds (HeartHoldSeconds; within 5 m of it, on its side of your walls and doors: raiders outside a wall next to it don't count; the heart isn't harmed, but a burst of blood erupts at it, HeartLostEffect), every defender and servant at the castle falls, or a wave lasts 15 minutes (WaveTimeLimitSeconds) with nobody fighting it. No spoils.

Commands

Type !siegehelp in chat for the commands you can use.

  • !siegemsg, !siegemsg on, !siegemsg off: show or hide raid messages for yourself (everyone).
  • Admins only by default (ChatCommandAdminOnly), logged in with adminauth:
    • !siege or !siege <faction>: a siege on your castle (stand near your heart).
    • !siege all or !siege all <faction>: a siege on every player's castle where the owner or a clan-mate is home.
    • Add a number to any of these (!siege 25, !siege legion 25, !siege all 25) for exactly that many raiders in every wave (up to 200, the Raid Captain included).
    • !siege vfx: plays the effect shown when raiders take a heart: on your heart when you're at your castle, else where you stand. !siege vfx <name> plays another to try it: crimsonnova (-346299479), bloodsoul (250152500), feeddracula (1340086775), ringofblood (1035629642), fountain (-1830781170), or any effect id; put the id in HeartLostEffect to use it. Some effects show nothing when played this way (their visuals belong to their original caster).
    • !siegestop: ends the siege on your castle (or the one nearest you) at once; its raiders vanish and nothing drops. !siegestop all ends every siege.
  • Factions by id or part of the name: bandits, skeletons, militia, dunley, transcendum, lesserlegion (Dracula's Vanguard), ghosts, army, venom, legion, treants.

Raid messages

Raids are quiet by default, like the vanilla game: no chat messages. Type !siegemsg to show or hide them for yourself; your choice lasts until the server restarts. Server owners can change the default with ShowRaidMessages.

Settings

BepInEx/config/PVESieges.cfg (created on first run; settings from very old versions' melty.castlesieges.cfg move there by themselves): chances, number and size of waves, the fodder mix, aggro and chase range, sapper and bomb timings, rewards, level cap and more. Restart the server after changing it.

In a private / hosted game, the settings that count are the built-in server's: VRising_Server/BepInEx/config/PVESieges.cfg.

Log

The server log (BepInEx/LogOutput.log and the server window) only notes what matters: sieges starting and ending, each wave, the Raid Captain and its spoils, and any problems. To report a bug, set DebugLog = true in the config and restart: the log then also shows the detailed notes (raiders marching, wave line-ups, form-up spots, doors, bombs, the clock, a short check of each raider type, a map of any castle found walled in, and how long each castle scan took). Turn it back off afterwards.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.