Lethal Company
Install with App

Details

Latest version
0.1.9
Last Updated
First Uploaded
Downloads
1.6K
Likes
0
Size
134KB
Dependants

Changelog

0.1.9

Host-side security update. Vanilla players need nothing new. Regular modded traffic still passes.

  • Connect-time refuse for permanently banned players. Peers on the built-in permanent ban list are refused as soon as Steam identifies them, before their packets are parsed. ConnectionApproval remains a second gate.
  • Malformed proxy messages dropped. Proxy messages whose structure cannot be safe to read are dropped and the sender is disconnected on the host (clients drop a bad proxy instead of crashing). Well-formed traffic is unchanged.
  • 0.1.8 PacketGuard preserved. Batch structural checks, pre-join caps, and Warn defaults for non-malformed traffic are unchanged. Only malformed or crash packets are hard-blocked.

0.1.8

Security release: a modded joiner could crash the host while joining, before any of SimpleLobby's checks ran. Regular modded traffic always passes, and every action defaults to Warn. Host-side; vanilla players need nothing new. New config keys: [Firewall] Action (Warn / Refuse / Ban, default Warn), [NetGuard] PacketGuard, PreJoinMaxBytes, RefuseMissingSteamId, RequireLobbyMembership (both off).

  • Players' own mods are never blocked. Info mods, custom named / unnamed network messages, large mod messages and the chat or system lines mods post are never dropped, hidden, kicked, refused or banned, under any setting value (GuardMode = Kick, [ScrapGuard] Action = Kick and [Firewall] Action = Ban included). They get one info line in the log per player. Before, GuardMode = Kick kicked on the first mod message.

  • Warn by default. [Lobby] GuardMode, [ScrapGuard] Action and the new [Firewall] Action default to Warn. In Warn the firewall checks and logs (WOULD REFUSE / FORGED, warn mode) but lets requests through, sends no corrections or whispers, counts no belt-bag strikes and bans nobody; the desk janitor, belt-bag clean-up, RPC flood/size limits and spawn caps only log too. Refuse enforces; Ban also auto-bans (BanForgedRpc, BanLeverlessStart, BeltBagStrikes). GuardMode = Kick now only applies to abuse reports (mass spawns, desk beams, forged requests with auto-ban off).

  • Scrap guard only notes. VanillaSystemLinesOnly, BlockScrapReadoutChat and BlockInfoLeakChat default off and, when on, only report to the host; lines are always shown. Action = Kick acts as Warn.

  • Join checks warn. RefuseForgedSteamId, RefuseMissingSteamId and RequireLobbyMembership default off and log WARN (let in) instead. Your ban list (by Steam's real ID) still applies.

  • KickModdedJoiners removed.

  • One-time reset. Existing cfgs are moved to these Warn defaults once ([Migration] WarnDefaults018); the log lists what changed. Afterwards your settings stay.

  • Still always on: the ban list, and the disconnect + lobby refusal for malformed (crash) packets.

  • Malformed packets are stopped before the game reads them. Every network packet from another player is checked for its structure only (header, total size, message count, each message's size) before Netcode parses it. The crash used a message size that turns negative inside Netcode and crashes the game in native code. Such packets are dropped and the sender disconnected and refused for that lobby. Well-formed packets pass whatever they contain, mod messages included. Before being let in, a player also has generous flood limits (1 MB per packet, over Steam's own 512 KB limit; 1000 packets a second, warn only by default).

  • A bad packet can no longer break the host's network loop. An error while reading one player's packet disconnects that player (no ban, no refusal: they can rejoin at once).

  • Steam identity works again. Since SimpleSell 0.1.36 every join logged "Steam identity unavailable", so bans and the whitelist could only use the ID a player's game claims. The ID Steam itself reports is now read from the Steam messages and the Steam connection status. Bans, the whitelist and the forged-ID check use it. With RefuseForgedSteamId on, a mismatch is only refused when Steam's ID is in your Steam lobby (otherwise it is logged as a possible misread).

  • Join request checks (warn by default). Over Steam, a join request without a Steam ID, or (when Steam's ID can't be read) one whose claimed ID isn't in your Steam lobby, is logged; turn the switches on to refuse.

  • Never auto-banned for reconnecting. A forged-looking request from a player who is still joining, or joined less than 20 s ago, is refused but no longer auto-bans them (a game reconnecting after a crash can still send from its old session). Nothing new in 0.1.8 writes to the ban list.

  • Clients are protected too. As a client, a malformed packet from the host is dropped instead of crashing your game. The host-side check runs on every packet, at any time (in orbit, landed, joining).

  • Big mod messages are fine. A custom message of any size passes (was dropped over 64 KB); over 1 MB it is logged as info.

  • The lobby log keeps the join path. New handshake events (first packet, approval, rejected packets) are written to disk at once, so they survive a crash.

0.1.7

  • [ScrapGuard] BlockInfoLeakChat now also drops structured scan/price readouts typed as a player by another mod (e.g. "Scan Info: Prices: Inside: $608 Outside: $447 Bees: 1 [$61] ... Total: [$1055]", one line or several, with or without color tags, "Scrap Info" or no header). Casual talk like "there's like 600 inside lol" still goes through.

0.1.6

New config keys: [Lobby] KeepSteamLobby, [Lobby] FixSlotGaps, [JoinQueue] OneJoinAtATime, MaxQueue, JoinTimeoutSeconds, BlockLeverWhileJoining, [ScrapGuard] BlockInfoLeakChat (all on by default). Host-side; vanilla players need nothing new. Four ideas from LobbyControl (MIT, see README Credits):

  • One join at a time. The next joiner is let in once the current one's game has reported in (player info, held items, level). Up to 3 wait in line. A joiner who is stuck after 40 s is dropped so they can retry.
  • The ship lever is blocked while a player is joining or waiting, with a chat line saying so.
  • One Steam lobby for the whole session. It is no longer left at the first landing, only closed while landed, and late join reopens the same lobby instead of creating a new one.
  • Vanilla slot-gap bug fixed: players in higher slots are marked present when there's a gap below them.

Anticheat (Josh): chat or system lines from other players that carry info a vanilla player can't get (interior type, inside enemies, item, exit, apparatus or key locations, outside enemy counts that no scan could have shown) or that pose as the system, the host or another player are dropped and reported. Only automated-looking lines are dropped (labelled, repeated, or right after landing). Scrap-count readouts are unaffected by this check.

0.1.5

No new config keys. Optional LethalConfig support: if LethalConfig is installed, SimpleLobby's settings appear in its in-game menu (checkboxes, number fields, a slider for HostChatLimit, dropdowns for GuardMode and Action). Soft dependency only; nothing changes without it. Internal migration flags are not shown.

0.1.4

No new config keys. Built-in permanent bans are now stored only as one-way fingerprints, not readable IDs.

0.1.3

No new config keys. Lobby log fixes from QA:

  • A host's lever pull is logged once (it was logged twice, 1 ms apart: send stage and loop-back execute).
  • session_end "lines" now counts the session_end line itself, so it matches the file.
  • The session_start mod list is no longer cut short with "…" (it has its own, longer cap).
  • The BepInEx log now says when NetGuard's flood/size hook installs, not only when it fails.

0.1.2

No new config keys. Everything below is host-side; vanilla players and friends need nothing new.

  • Lobby log. Each lobby session gets its own file in BepInEx/config/SimpleLobby/logs/ (one JSON event per line): session start and end, joins and leaves (name, the Steam ID the game reported and the one Steam gave the connection), refused joins, suite handshakes and recognised mods, kicks, bans, unbans, every firewall block, RPC-flood warnings, command names (never chat text), lever and ship events, and big orders or spawns. Written every 2 s in the background, at most 5,000 lines a session (the last 200 kept for blocks, kicks and bans), 512 bytes a line; the newest 30 sessions or 20 MB are kept. /lobby log shows the last notable events, /lobby log <name> one player's, /lobby log file prints the path to the BepInEx console. One summary line goes to the BepInEx log when the session ends.
  • Permanent ban list built in: refused at the door by real or claimed ID, kicked if somehow inside; /unban, the whitelist and settings can't lift it. Every try is logged.
  • The terminal can't be deleted or put out of reach. Storing the terminal (or any furniture that can't be stored) is now a forged request: refused and auto-banned, before vanilla's own check. Moving the terminal under the floor or into a wall (more than 1 m outside the ship room) is refused; more than 10 m outside is forged. Rotating the terminal and furniture is vanilla and stays allowed.
  • Terminal lock-out closed. "Terminal in use" from someone who isn't at the terminal (which kicked whoever was using it off) is refused; the terminal-values and terminal-sound requests are rate-limited, and a sound number the terminal doesn't have (which threw an error on every game) is refused.
  • Flood limit. Every request a client sends is counted per second: over 150/s is logged, over 400/s the rest of that second is dropped, and 400/s for 3 seconds in a row or 1,200 in one second is a kick. Normal play is a few tens a second. Whitelisted players are never kicked by it.
  • Oversized messages dropped: a game request over 16 KB, or a mod message over 64 KB, from a client.
  • Giant-text chat crash closed. Rich text (<size>, <sprite>, <voffset> ...) is removed from other players' chat before it is relayed, and a system line with rich text (e.g. a fake "<size=...> joined the ship.") is refused.
  • Mass spawn and despawn cap. More than 30 spawns or 20 despawns in 10 s caused by one client's requests are cancelled. Clients can no longer despawn enemies (no vanilla game does), delete a held item that isn't a used key, destroy an inventory item that isn't a shotgun shell, or repeat the sell-desk "done" message to clear the desk early.
  • Ship controls checked: doors, magnet, lights, teleporter button and alarm horn need a living player in the ship and are rate-limited; the unlockable and suit sync requests are rate-limited (the host answers them to everyone).

0.1.1

  • Belt bags may hold the Vesper Gold nugget (Josh's decision). It is a native SimpleMoons item, and SimpleMoons lets belt bags take it. Before, the firewall's vanilla belt bag rule threw it out of bags every 2 s, and a client who bagged one got a forged-request strike that leads to a ban. A new config entry, Firewall / BeltBagAllowedScrap (default 51020=Gold nugget, so item id 51020 AND the name Gold nugget must both match), is exempt from both the 2 s sweep and the host's forged-request check. All other scrap is still forbidden, and the 15-item limit and the other bag checks are unchanged.

0.1.0

  • New plugin, split out of SimpleSell 0.1.39. Everything about running the lobby moved here unchanged: the whitelist and its perks, bans (by real Steam ID), Steam identity checks, the lobby guard, the RPC and item firewall (lever, purchases, routes, furniture, chat, items, sell desk deposits, belt bags, desk janitor), late join and reopening the Steam lobby, safer joins, the invisible-joiner and crew-list fixes, the join log, the hidden mod tag, the longer host chat box, and the commands /lobby, /players, /kick, /guard, /whitelist, /ban, /unban, /bans. /help lobby lists them.
  • Settings come across by themselves. On the first run every [Lobby] and [Firewall] setting and [General] CommandPrefix is copied from local.simplesell.cfg (same names), and the join log from SimpleSell.playerlog.txt. SimpleSell's file is only read.
  • No double running. Next to SimpleSell 0.1.39 or older (which still has all of this) SimpleLobby does nothing and tells the host once. With SimpleSell 0.1.40 each plugin answers only its own commands; one whitelist covers both (SimpleSell asks SimpleLobby), and SimpleHQ's bank still finds it through SimpleSell.
  • Works without SimpleSell too. The messages a whitelisted friend's game receives keep their old names (SimpleSell.Trust, SimpleSell.LateSync), so friends on SimpleSell 0.1.38/0.1.39 keep their perks.
  • New: scrap guard ([ScrapGuard], on, warn). Other players' games may only post the system chat lines a vanilla game sends, and a chat line that is only a scrap readout isn't relayed, so client mods that post interior scrap counts to the lobby (abu AutoScan with HostOnly off, AutoTerminalScanClassic in Everyone mode) reach no one, and you're told who. LCBridgeOverlay (which asks the host first, and stays off here) is named in the report. Action Log | Warn | Kick; whitelisted players are never kicked by it. /guard scrap on|off|log|warn|kick. Counters that only show numbers on their own player's screen can't be stopped by a host (every game already has the scrap; the vanilla terminal scan counts it too); see README.
  • Lobby guard reports now name a known mod when its message is recognised.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.