Repository navigation
Releases
Releases · MistrCech/valheim-serverside
1.36.0 - Deathsquitos flee the Anti-Sting Concoction again
Fixed
- Deathsquitos stung players who drank the Anti-Sting Concoction (#6). The game that runs a creature looks for the drink in the player's
status effects, which exist only in the player's own game; with the server running the creatures it never found it. The server now
sees the drink's glow, a networked effect the player's game keeps on the player while the drink lasts and that names the player, and
answers that check from it: the creature flees as in single player, and stings again when the drink runs out, the player dies or logs
out. Vanilla clients, no mod on them. Which drinks make which creature flee is read from the game's items.[Fixes] AntiSting, on by
default.
SHA-256 of SarkasticGG_Dedicated_Simulation.dll: 2f7ce459571f807918ad63a9c386beaa5c11ac87f01916d57450176483d7758a
1.35.0 - Activity log: what players do, kept for a week, for anti-cheat review
Added
[ActivityLog] Enabled(off by default): what the server can see of players' play, one JSON line at a time, one file per UTC day in<world>.activitynext to the world save (Dayskept, 7 by default): sessions, positions with speed, health and stamina, equipment, jumps, deaths, hits sent through the server, damage taken, the health creatures lose in the game that owns them (mobhp, andmobendwhen the creature is gone), building, unbuilding, pickups, and every line of the guard log. A size cap per day keeps only sessions, deaths, kills and guard lines once reached. Rules and format: docs/ACTIVITYLOG.md.
Install: drop SarkasticGG_Dedicated_Simulation.dll into BepInEx/plugins on the dedicated server.
sha256 5f7340b07870849b6c1a55ce65f24055a3cfdd6d63d24423bff429460145029a
1.34.0 - Death log: one line per player death, with the cause, for a bot
Added
[DeathLog] Enabled(off by default): one JSON line per player death in<world>.deaths.lognext to the world save, with the cause the server can infer (a player's or a creature's hit, a hit of the server's own objects, a fall, drowning, the edge of the world, burning or poison after a creature's hit, cold, lava), for a bot to post. Rules and format:docs/DEATHLOG.md.
1.33.0 - Ward guard against griefing tools, and combat anti-cheat
Added
All off by default; the rules of the ward guard ([WardGuard] Enabled) it extends are unchanged.
[WardGuard] DestroyLog: a line in<world>.guard.logwhen a player's build is destroyed by someone other than its builder:
who (a player; a creature and the player it was after; the kind of hit and the game that sent it; "took it down";
"collapsed or removed by the server"), whose piece, where. One line per destroyer and builder a minute, with a count and up to eight
prefab names. A request to destroy what another game or the server owns is logged too, whateverDestroyRequestssays. Nothing is stopped.[WardGuard] Claims(Off, LogOnly, On): a game taking over a player's build it may not act on by the ward guard's rules (the first
step of destroying it, since a destroy request has no owner check, or of rewriting it). On leaves the owner where it was and drops the
data in the packet; LogOnly writes the line and lets it through. An object nobody owns, a new object and a player's own are left alone.[WardGuard] IndirectHits(Off, LogOnly, On): a hit with no attacker (catapult, fire, falling object) or by a creature the sender's
game owns, which the guard let through as not a player's own, counted as the sender's own hit. LogOnly names the kind of hit in the line.[WardGuard] TamedAnimals(Off, LogOnly, On): hitting, commanding, naming, saddling and riding a tamed animal inside an enabled ward
by a player who is not on its list.[WardGuard] Vehicles(Off, LogOnly, On): ships and carts a player built, anywhere: the helm, steering, owning a cart and a ship's
chest are for the builder, the players on the list of one of the builder's wards and admins. The server also does not hand such a ship
or cart to a game that may not use it. A catapult's loading, firing and legs are dropped as well, and a shot sent to a catapult the
server owns (it would be fired by the server itself, and its hits are never seen by the guard) is dropped for anyone but an admin
wheneverVehiclesorIndirectHitsis not Off (the stricter of the two decides; LogOnly only writes the line).[WardGuard] Terrain(Off, LogOnly, On) andTerrainMargin(2 m): terrain operations (hoe, pickaxe, cultivator, paving) that reach
into an enabled ward the player is not on the list of (Structures), or come withinTerrainMarginof a build of a player whose side
the player is not on (OutsideWards), are dropped. The server keeps the terrain compilers: a compiler a player's game creates (the first
dig in a zone nobody dug before, which that game would own and run on its own) is judged on the last operation in its data and on every place where its
data changes the height of the ground (in cells of 2 m), whoever the packet names as its owner, and destroyed (On) if that would be refused or if the zone already has a compiler (a forged duplicate with many operations replaces the ground in every
game); one that is kept is taken over by the server at once, so the player's next operation goes through the check; a game that says it
owns an existing compiler, or sends the data of one it does not own, is refused like aClaimsclaim, whateverClaimsis set to.
An admin's game is exempt.[AntiCheat]combat rulesUnhurt,Stamina,Damage,Skills(all Off by default; they log or kick, nothing in the world is taken
away, admins are exempt) for cheats of the player's own game that the server sees only by what the game sends:Unhurt(+UnhurtHits8, warns first): a lethal hit from a creature of the server that leaves the character at exactly 1.0 health
twice in ten minutes (the game's god mode), orUnhurtHitshits in a row that no armour or shield the game can give could have taken
and that did not lower the health, judged on the data the player's game sends after the hit.Stamina(+StaminaAttacks12, warns first): melee attacks with a weapon that costs 4 or more in 20 seconds while the stamina stays put
at the hits and in the half-second samples the server takes between them (a character whose stamina is back at the top at every swing is
no finding: the game shows the price for a second after each).Damage(+MaxDamage0 = automatic): a hit above the strongest a weapon of the game can make (every multiplier at its largest, the world
level, the status effects on damage: their multiplier and their percentage per damage type, times 1.5: 2067 on game 1.0.20, logged at start); the butcher knife, which works only on tamed
animals, has a bound of its own (5625) against a tamed animal. A positiveMaxDamageis used as it is. On drops the hit on its way to the target.Skills(+SkillGainFactor3, +SkillAllowance80): a weapon skill level that costs more experience than the server has seen the
character earn since the first level it saw (zero for a new, fresh character, as the item ledger counts it; for any other character the
first level seen is not judged, only the growth). Kept per character in<world>.skills.txt, saved with the world.- Each finding is followed by an
evidence:line in the guard log with the last eight hits taken or dealt. Itemsalso flags a melee hit that carries a weapon quality higher than that of the weapon in the character's hand.
1.32.0 - Item ledger: a fresh cheater is kicked in their first minutes
Added
[ItemLedger] KickMinutes(0, off, by default): a character with an exact account that, within this many minutes after its
account was opened here, wears or drops a tracked item it never got here is kicked, as the anti-cheat kicks ([AntiCheat] Enabled
is needed; itsMessageis shown, admins are exempt). A new, fresh character starts at zero, so in its first minutes such an item
can only have come from another world or a cheat. Works withModeLogOnly and On. Nothing else the ledger finds (what goes into
a station or a container, what is built with), nothing of an unverified account and nothing later is kicked for: over a long game
the ledger can miss a source an honest player used. The guard log line says so:; kicked (N min after its account was opened).
1.31.0 - Builds, what is in them and tombstones stay their owners' outside wards too
Added
[WardGuard] OutsideWards(Off by default) andOutsideWardsMessage: builds are protected where no ward is, too. Where no
enabled ward covers the place, hitting a player's build, taking it down with the hammer and the usesInteractionscovers
(opening a chest or a door, a stand, taking from a smelter, kiln or cooking station, switching a fire off, claiming a bed, picking
a crop) are refused to anyone but its builder, the players on the list of one of the builder's wards (switched on or not: the
people the builder lets into their base) and admins. A ward the builder may not act in gives no rights over their build either:
a ward put up beside someone's base does not let its owner take it apart, nor take a non-member's pieces down inside their own
ward (the builder or an admin can). Repairing and putting things in stay open to everyone; a hit with no attacker (fire, a falling object) or by a creature the sender's game
owns is let through, as underStructures; a piece with no creator (placed by the world itself) stays open. Where the
builder's own ward is, its list decides as before. A refusal is written to the guard log with the builder's name and player id, at most one line a
minute per player and builder.- A grown crop carries its planter (that of the sapling it grew from), so
OutsideWardskeeps it for them; crops planted before
this version have none and stay open. [WardGuard] OwnPieces(false by default): a player may always hit, take down, repair and use what they built, also inside a
ward they are not on.[WardGuard] Tombstones(Off by default) andTombstonesMessage: a tombstone opens, and gives up what is in it, only to the dead
player, the players on the list of one of their wards and admins.
Changed
- The ward guard's README section moved to docs/WARDGUARD.md; the README keeps a summary (Thunderstore's
README limit).
SHA-256 of SarkasticGG_Dedicated_Simulation.dll: aec69e16c35153122b3e50a33f0b3199297b5d347fda4c231fb41c1bdcff7e80
1.30.0 - More players, and a public server with no password
Added
- More players (
[Server] MaxPlayers, 10 by default, the game's number): how many players may be in the game at once, 1 to
64. The game turns away whoever comes when 10 are in ("server is full", ZNet.RPC_PeerInfo) and tells Steam's server list
10; both become the configured number, so a vanilla client's server list shows players / that number. A transpiler puts
the setting in place of the 10 of that one check, and the feature is switched off, not half applied, should the game have
more or fewer such checks. Crossplay (PlayFab) lobbies keep the game's limit of 10. - A public server with no password (
[Server] PublicWithoutPassword, off by default): the game will not start a public
server (-public 1) without a password of at least 5 characters that is not part of the world's name or seed, and a
server that is not public is not listed. With this on, a public server starts with an empty password (-password "")
and is listed with no lock. A password that is given still has to meet the game's rules. On Windows the game's player
leaves an empty argument out of the list it hands the game, so-password ""took the next argument for the password
(-public, the way AMP writes the line, which was then not read for itself) and the server came up locked with it. With
this on, the server reads its command line as Windows split it (CommandLineToArgvW), with its empty arguments, and only
when that differs from the game's list in nothing else; the log says after which flag an empty argument was kept. Both
are their own features, so
that a game update that breaks one does not take the other with it: a public server without a password that lost this
one would not start.
Tests: docs/TESTS.md, Server access.
SarkasticGG_Dedicated_Simulation.dll sha256 4b669dda83997fc6ef3e73eac173cf9aebad83df78823070cc4d487413d0bb78
1.29.1 - Decay: two claims under one ward, the pass in slices
Fixed
- Decay: under one ward there can be two claims, the builder's own pieces (an exempt builder is never away) and the pieces
of others (held only as long as the keepers really play). The pass gave every piece under a ward the claim of the first
piece it came to, so whether the base of the strangers' pieces began at all depended on the order of the pieces in the
world: with the ward's piece first nothing of theirs began, with a stranger's first the exempt builder's own pieces were
marked as well (and unmarked again in the next pass). A base is now the pieces that share a claim (its key and the time it
lapses): two bases, and the same result in any order. Nothing changes where no builder is exempt: the live world with
the live configuration gives the same 521 lines of report as 1.29.0.
Changed
- Decay: the pass over the world no longer runs in one go. The tick works through a copy of the list of objects in slices of
some 4 ms and gives the frame back in between (before: 20 ms a pass, 80 ms the first one after a start, on a world of
891,000 objects). Who is in the game is read again after the slices, before anything is judged or started. The console's
decay scan, a login that finds the status old, and the tests still run the whole pass at once. The log line of a pass
now says how many slices it took and how long the longest was.
1.29.0 - Web map: the world, the players and the explored maps as files
Added
- Web map (
[WebMap] Enabled, off by default): the server writes the files a map of the world can be made from, for a
program of yours to serve. Nothing is sent anywhere, and no map or web page comes with it: anyone can build one on the
files.live.json, every 30 s and the one file for the public: the players online with their positions (by default only
those who show their position on the game's map,OnlyPublicPositions), withPortalPrefixthe portals whose tag begins
with it, withBasesthe player-built pieces counted per 512 m square -- no builder, no exact place -- and an id of the
world, not its seed.places.json, private, every 5 minutes: the seed, every location of the world, placed or not, and the
bosses beaten.explored/<account>.bin, private: the part of the map each account has been through. That lives only in the
player's game and never reaches the server, so the server makes it again from where the character is, every 2 s, with the
disc the game itself marks (9 cells of 12 m); it starts when the feature does, and what a cartography table gives is not
counted. By default the public file lists only players who show their position, no portals and no bases, and goes to the
folderpublicinside the private one. Files are written by a background thread through a temporary file; a map is held in
memory only while its player is online. On a copy of a world of 85,788 index entries the count of the pieces took 8 ms in
all, 3 ms the worst frame. Formats, how to draw the files and limits: docs/WEBMAP.md. Needs a restart.
Changed
- The default greeting of
[CharacterGuard] Welcome(off by default) names no server and describes no one's mechanics: the
title isWelcomeand there are no lines. It used to say "Welcome to Sarkastic.gg" and to explain how zones grow back
and how fire spreads on that server. A config that already holds a text keeps it: only a config without the keys gets
the new defaults.
SHA-256 of SarkasticGG_Dedicated_Simulation.dll: e9e7d1784853eef473c4e61eaefa8633bae7d389d4db1feadc6cda0e50fffae9
1.28.0 - RPC census: which mods players' games talk with
Added
- RPC census (
[RpcCensus] Enabled, off by default): every RPC a player's game sends that the game itself does not have --
the mark a mod on their client leaves on the wire -- is noted: the first time in a run with a line in the log, at the
end of a visit with a summary of it, and all of it in<world>.rpcs.txtnext to the world (player, call, to whom, on
what object, how many times, bytes, first and last seen, a few readable words out of it). Calls are named from a table
of the game's own 183 and 468 of mods, read out of the code of the 300 most downloaded mods on Thunderstore; one without
a name is written as its hash. Nothing is blocked or changed. Needs a restart.