You are viewing a potentially older version of this package. View all versions.
VerdantsAscent-FiresGhettoNetworking-1.6.112 icon

FiresGhettoNetworking

Smoother Valheim multiplayer: compression, auto-tuned send rates, optional server-side simulation, and no lost or duplicated smelter/kiln items on servers. Works server-only or on both.

Date uploaded 5 hours ago
Version 1.6.112
Download link VerdantsAscent-FiresGhettoNetworking-1.6.112.zip
Downloads 221
Dependency string VerdantsAscent-FiresGhettoNetworking-1.6.112

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2360

README

Requires Valheim 1.0.30 or newer.

Fires Ghetto Networking

What's new in 1.6.106

  • Frozen creatures on servers are handed to the nearby player until the server has them loaded.
  • Most settings apply live; new optional sync cuts (all off).
  • Server ground snapping no longer lifts objects onto supports above them.

Updated for Valheim 1.0.

Smoother multiplayer for Valheim servers. Vanilla networking is built for a handful of friends and starts to strain around 8 players. This mod works on the bottlenecks in one drop-in plugin, and tunes itself so you don't have to.

Fires Ghetto Networking is a networking mod only. The general fixes it used to carry for single player and performance have moved to Fires Easy Bake Meshes and Fires Fixes, with the same config section and setting names. It doesn't need either of them, and neither of them needs it.

What's new in 1.6.84

Changes since 1.6.51, in plain words:

  • Networking only now. These features moved to Fires Fixes (0.1.91 or newer), because they help single player and hosts as much as servers: slower fuel saving on long-burning fires, the sleep skip, the spawn and terrain guards, spread-out terrain rebuilds, spread-out dungeon loading, faster reading of saved objects, the tame check command, the ground snap fix for players and hosts, the support skip for pieces that can't be damaged, and the cape and fall-through log checks. Fires Fixes uses the same setting names. A dedicated server keeps its own ground snap here. If you used any of these, install Fires Fixes as well.
  • Object loading around you. When Fires Easy Bake Meshes is pacing how fast objects are created around you, this mod steps aside and lets it. Without it, this mod paces them as before, now adjusting to your machine ("Adaptive Fill Budget", on): more while you stand still or load, only the spare time while you move.
  • New setting: "Creature Ownership In Fights" (see Creature ownership below).
  • Busy connections keep the important things first. When a player's connection is backed up, creatures and players run by someone else are still sent to them first, as the game intends ("Keep Other Players Creatures First When Congested", on).
  • New server settings, all for dedicated servers:
    • "Server Simulation Distance Ceiling" (-1 = vanilla): an admin limit on how far players' games may run the world around them.
    • "Resources Go To Whoever Hits Them" (off): a tree, log or rock looked after by another player's game is handed to the player chopping or mining it, so hits don't feel late.
    • "Judge Peers By Update Gaps" (off): spots a player whose game keeps stalling from gaps in what it sends, not only from ping.
    • "Creatures Go To The Player Touching Them" (off).
    • "Server Hands Ship To Helmsman For Unmodded Owners" (on): when the player who owns a ship doesn't have this mod, the server gives the ship to whoever takes the helm, so steering doesn't lag.
  • Portals and teleports. "Send Portal Destination Early" (off): while a player stands at a connected portal, the server starts sending what's at the far end in spare bandwidth. Needs the mod on the server and the player. Teleport loading also now waits until the ground at the destination is there, so you don't arrive before it.
  • Safer after game updates. If one feature can't attach, only that one is removed and named in the log, and the rest keep working.
  • Less work in the background: fewer copies of the nearby-object list on players' games, a lighter sweep over moving objects, a smaller window for distant objects, and hosts with nobody else connected skip work they don't need.

What you get

  • Less lag in busy fights and big bases: compressed traffic, higher send rates, and the closest things sent first when a connection backs up.
  • Auto-Tune: on first join it checks your PC and connection and picks the right settings. The server tunes itself too.
  • Less wasted traffic: damage numbers, health bars and effects only go to players near the action.
  • Boat fixes: no more random boat damage or sinking on calm water, and whoever takes the helm steers without delay.
  • Station fix: smelters, kilns, fires and other stations no longer lose or duplicate items, even for players without the mod.
  • Join fixes: slow PCs loading a big world aren't dropped, and big config syncs no longer stall joins.
  • Optional smoother other players ("Remote Motion", off by default): other players' movement can be drawn more smoothly when they have the mod too.
  • Optional Server-Side Simulation: the dedicated server runs the world around every player (spawns, raids, zones).

Install

  • Safe on any side: server only, players only, or both. Server-only works, and players without the mod can still join.
  • Installing on both sides adds compression and the boat fix.
  • Keep the server and every client on the same version.
  • Put VAGhettoNetworking.dll in BepInEx/plugins/. The mod detects whether it is running on a server or a client.

Requires

  • BepInExPack for Valheim. Nothing else.

Settings

Most people should not touch the config. Auto-Tune handles it. The settings you see by default:

  • [01 - General] Log Level
  • [04 - Networking] Enable Compression
  • [06 - Auto-Tune] Enable Client Auto-Tune, Enable Server Auto-Tune
  • [09 - Dedicated Server] Force Crossplay, Player Limit, Advertised Player Limit
  • [10 - Server Authority] Enable Server-Side Simulation (off by default)
  • [13 - Compatibility] Refuse Mismatched FGN Clients (off by default)
  • [03 - Player Sync] Remote Motion (experimental) (off by default)

Everything else is under Show Advanced in the config manager.

Players: the only section meant for you is Player Sync. Everything else is server-driven or auto-tuned, and server-only settings are ignored on a client.

Server-Side Simulation

Off by default. Turn on Enable Server-Side Simulation and the server loads the world around every player, decides when and where creatures and raids spawn, and handles zones. Monsters are still run by the nearby players' games.

Server ZDO Ownership goes further and moves creatures onto the server. It is off by default, and we don't recommend it: it is the least-tested option and can cause trouble with boats and carts. If you try it, use Selective. Tamed creatures always stay with the players.

Creature ownership

In vanilla, each creature is run by one player's game. All of these options are off by default, so creatures behave as in vanilla until you change them. They're under [10 - Server Authority] in Show Advanced.

  • Balance Creature Ownership (off): hands idle creatures to the nearby player with a clearly lower ping, so they rubber-band less. "Ownership Ping Margin" (40 ms) sets how much lower that ping must be.
  • Creature Ownership In Fights (Vanilla): decides what happens to a creature that is fighting. It only does anything with Balance Creature Ownership on and server ownership off.
    • Vanilla (default): a creature in a fight is never moved; it stays with whoever has it, as before.
    • LowestPing: a fight doesn't stop the hand-off; the creature may move to the nearby player with a clearly lower ping, fight or not.
    • FirstFighter: the first player to hit the creature takes it and keeps it until the fight ends.
  • Creatures Go To The Player Touching Them (off): with Balance Creature Ownership on, an idle creature a player stands right next to goes to that player when its owner is further away. Fights still keep it where it is.

Steam vs crossplay

Players on crossplay (Xbox, Game Pass, PlayStation, or anyone who joined with a crossplay code) don't get compression or the Steam send-rate tuning; those only exist on Steam connections. Everything that cuts how much is sent still works for them. A server started with -crossplay can put even Steam players on crossplay. fgn_links in the console shows who is on what.

Admin commands

  • fgn_links - each player's connection.
  • fgn_rtt - times a round trip to the server.
  • fgn_netsim - adds fake lag to your own connection for testing.
  • fgn_sss_areas N - simulates N extra busy areas to see what Server-Side Simulation would cost (0 clears it).

Compatibility

  • Works on its own. It doesn't rely on Fires Easy Bake Meshes or Fires Fixes, and they don't rely on it. Running them together is fine.
  • If you run Fires Fixes too, update both together, so the features that moved aren't missing or doubled.
  • Tested on a server with 60+ other mods. Pairs well with Better ZLog and timeout-limit mods.
  • ValheimCommunityPatch: compatible. Server-Side Simulation stays off while it is installed.
  • Valheim Performance Optimizations: not compatible on a server. Server-Side Simulation and ZDO ownership stay off with it.
  • TooManyLags - FiresGhettoNetworking Addon: a third-party add-on we have not tested. It overrides your FGN settings while it runs. If anything breaks, remove it and test with FGN alone before reporting.
  • Don't stack other networking or "optimization" mods; they patch the same parts of the game and can undo each other.

Credits

Built on the shoulders of BetterNetworking and Serverside Simulations, with ideas from Comfy Valheim's BetterZeeRouter. The auto-tuner and server self-tune are original to this mod.

Issues / questions

https://discord.gg/zQRgHbqms4

Screenshots

CHANGELOG

Requires Valheim 1.0.30 or newer.

1.6.112

Requires Valheim 1.0.30 or newer. On an older Valheim, stay on 1.6.109.

  • Updated for Valheim 1.0.30.
  • New settings files log only warnings and errors (set Log Level higher to see more). A saved setting is never changed.

1.6.109

Fixed

  • Fixed IndexOutOfRangeException in SectorChangeTracker on worlds larger than vanilla (Expand World Size); tracking now sizes to the world's sector grid. Workaround for older versions: Skip Unchanged Areas = false.
  • On those worlds the server no longer stops sending objects to players past the vanilla edge. The other sector lookups (net views, creature, ship and vehicle ownership) are bounds-checked the same way.

For mod authors

  • FgnApi 10: AddKeepAlive(id, where, pinned, exempt), an exempt keep-alive area that works without Fires Companions.

1.6.106

Fires Ghetto Networking does networking only. General fixes live in Fires Fixes and Fires Easy Bake Meshes.

Fixed

  • Frozen monsters on servers (crypts, players without the mod): a creature the server had taken but not loaded now goes to the nearby player, and returns to the server once it is loaded.
  • Turning ship simulation on or off live no longer makes moored ships flip owners.
  • No distant-object scan in single player; on servers it is spread over frames.
  • Server ground snapping ignores supports above the point (objects no longer snap up onto ledges), and a held cart no longer prints a velocity warning.

New

  • Most settings apply live (the ownership mode still needs a restart). Player Limit is read per join.
  • New options, all OFF: idle creature / resting item / floating item / static piece sync cuts; FollowTarget fight mode; retry hand-off after a swing; the server leaves fighting creatures with players; Lag-Fair Parry; Stale Owner Guard; Handshake Safety; Budget Pool / Parity.

Settings changed

  • "Send Remote Motion Timestamps" is now OFF (it only matters with Remote Motion, also off).

1.6.84

Changed

  • Single-player features moved to FiresFixes. FiresGhettoNetworking is now networking only. These are: fireplace fuel, sleep skip, spawn and terrain-compiler guards, spread-out terrain rebuilds, spread-out dungeon loading, saved-data reads, the tame check command, ground snap for clients and hosts, the invulnerable-piece support skip, and the cape and fall-through checks. FiresFixes uses the SAME config keys, so install FiresFixes 0.1.91 or newer to keep them. A dedicated server keeps its own ground snap in FiresGhettoNetworking.
  • When EasyBakeMeshes' object pacer is running, FiresGhettoNetworking steps aside and lets it pace object creation. Without EasyBakeMeshes, FiresGhettoNetworking paces as before.
  • Fill speed adapts to your machine ("Adaptive Fill Budget", on): the create budget is your target frame time minus the other work measured that frame. Standing still or loading fills faster; moving uses only spare time.

New

  • Server settings: Server Simulation Distance Ceiling (-1 = vanilla), Resources Go To Whoever Hits Them (off), Judge Peers By Update Gaps (off), Creatures Go To The Player Touching Them (off), and Server Hands Ship To Helmsman For Unmodded Owners (on).
  • Send Portal Destination Early (off): when a client walks up to a connected portal, the server sends the ground at the far end ahead of time.
  • Teleport loading only answers "ready" for objects whose own zone is loaded, so you don't arrive before the ground is there.
  • When a connection backs up, other players' creatures are sent first (on by default).
  • PvP Lag-Fair Dodge (off by default).

Fixed

  • If one feature can't attach (for example after a game update), only that one is removed and named, and the rest still work.

Performance

  • Clients: the removal scan no longer copies every nearby object into a list up to 10 times a second ("Removal Scan Without Area Set", on).
  • The kinematic sync sweep only walks objects that actually sync, a slice per frame.
  • The distant create pass walks a moving window of 4,000 entries instead of the whole list.
  • Hosts with no other players skip owner-safety work on writes. Hosts build the leave-cleanup list when the first player joins.

Also in this release (1.6.84)

  • New setting [10 - Server Authority] Creature Ownership In Fights (only used with Balance Creature Ownership on): Vanilla (default, a creature in a fight is never moved, as before), LowestPing (fights don't stop the hand-off to the lowest-ping player), or FirstFighter (the first player to hit a creature keeps it until the fight ends).

1.6.51

  • Fast Leave Cleanup finds its game method safely on every game build. Hexium's store check showed a false "expected to be broken" warning for 1.6.50; nothing was broken, and this version clears it. (fixes)

1.6.50

  • Fixed: new areas could generate with no trees, rocks or plants in single-player or when hosting from the game (FGN 1.6.9 - 1.6.27). "Spread Terrain Rebuilds" delayed the ground of a brand-new area, and the game placed its trees before the ground existed. New areas now build their ground at once. Areas that already generated bare stay bare in that world. Dedicated servers were not affected. (fixes)
  • Companion keep-alive and homestead settings move to FiresCompanions; they arrive with its next update. Until then, server keep-alive of companion trip areas is off. (network)
  • Water and terrain at portal arrivals and teleports line up again (no seams). (fixes)
  • Fermenters, cooking stations and shield generators: refunds and requests reach a headless server and name the right item. (fixes)
  • Cleaner logs: normal play shows one-time events and warnings; test lines need Log Level Debug. (logs)
  • "Remote Motion (experimental)" is off by default again, and updates no longer switch it on. If other players looked jittery when walking, this was why. (network)
  • "Fast Leave Cleanup" is on: a player leaving no longer stalls the server (about 75-95 ms saved per leave on a big world). (performance)
  • Faster object creation when arriving in an area, and smoother play while moving. (performance)
  • Fewer warnings with WackysDatabase broken item clones (handled, nothing lost). (logs)

If you can't update yet: set "Spread Terrain Rebuilds = false" under [02 - Client Performance] in BepInEx\config\com.Fire.FiresGhettoNetworkMod.cfg, with the game closed.

  • The keep-alive and homestead settings now live in FiresCompanions. Update FiresCompanions to 0.1.123 or newer with this version.

1.6.27

  • Feasts redraw correctly when the whole stack arrives from another player ("Redraw Feasts When Their Stack Arrives", on). (fixes)
  • The server takes control of wild creatures back from players so they behave the same for everyone. Tamed creatures stay with their players. (network)
  • New "Server Simulates Tamed Creatures Too" (off by default): following tames stay with their player, idle tames and NPCs move to the server. (network)
  • "Kinematic sync sweep" now lives in FGN's [Performance] section, on by default, with your old value from FiresCompanions or Core carried over. (performance)
  • Creature and ship ownership now also covers prefabs that other mods register late. (network)
  • Performance fixes for idle creatures, ships and random events. (performance)

1.6.9

  • New "Spread Dungeon Room Spawns": dungeon rooms spawn over several frames.
  • Time-Slice is now on by default (also for local hosts), with heavy objects created first and alone.
  • "Spread Terrain Rebuilds" is on by default and covers every rebuild.
  • Carts stay put on wall hangers, in buildings and on ramps.
  • Dedicated servers run smoother; quieter logs.

1.5.78

  • Bug fixes and improvements.
  • Fires companions are never taken over by the server or moved between players any more, so a wild companion no longer T-poses or floats.
  • With "Server ZDO Ownership" on, picking up items and editing terrain work again.
  • "Balance Creature Ownership" no longer moves a creature in the middle of a fight, so group fights stay in sync.
  • Players joining a big or brand-new world are no longer dropped while it downloads or builds.
  • "Refuse Mismatched FGN Clients" only kicks players on a different FGN version, never a player who is still loading.
  • Smelters, kilns, fires and other stations no longer lose or duplicate items when players don't have FGN.
  • Cleaner settings screen: the basics show first, the rest is under Show Advanced (your saved values are kept).

1.5.65

  • Lower CPU use, especially when playing alone.
  • Fewer hitches near terrain changes, and a fix for an error when joining.
  • Picking up items works in Server-Side Simulation areas.
  • With Fires Unified Core installed, FGN shows players, upload, download and ping on the hub's Stats tab.

1.5.53

  • Fixes and improvements.

1.5.51

  • Works on Game Pass and the Microsoft Store version of Valheim (no Steam needed).

1.5.49

  • Steam-only features are skipped where Steam isn't available.

1.5.41

  • Server tuning suggestions are no longer written to the log by default.
  • Fixed crossplay join codes stalling, a false version warning when rejoining, and an error with AzuAntiCheat.

1.5.36

  • Fixed shield generator error spam on Server-Side Simulation servers.
  • Fixed world data wipes with Expand World Prefabs, and players snapping back after teleporting.

1.5.28

  • Saddles and taming work on Server-Side Simulation servers.
  • Clearer setting descriptions.

1.5.19

  • Fixed broken objects when used with ValheimCommunityPatch.
  • Server-Side Simulation stays off when Valheim Performance Optimizations is installed.

1.5.17

  • Better crossplay connections; crossplay servers can be joined by IP again.
  • Fewer hitches, and joining a server is about half a second faster.
  • Smarter auto-tune that measures one player at a time and remembers each server.
  • Whoever takes the helm gets the ship, so steering answers right away.
  • Update the server and every client to the same version.

1.4.31

  • Updated for Valheim 1.0.
  • Monsters go to the player with the best connection, so they stop rubber-banding.
  • Chat, effects and damage numbers only go to players who can see them.
  • Boats no longer sink or take damage on calm water or with players aboard.
  • Tamed creatures stay in their pens, and crops and building wear work normally.
  • Sleeping and waking on a busy server is quick again.

1.3.10

  • Fixed an error flood on dedicated servers while pre-generating a world.
  • Raids and random events no longer run forever on dedicated servers.
  • Fixed crossplay servers failing to connect after installing FGN.
  • Fewer "Disconnected" drops on busy servers.