You are viewing a potentially older version of this package. View all versions.
khalil-SimpleTweaks-1.1.3 icon

SimpleTweaks

Quality-of-life tweaks for PEAK: hunger overflow extends hunger countdown, death timer regenerates while carried, swap held item with backpack item, and backflip never fails. All features have independent toggles.

By khalil
Date uploaded a week ago
Version 1.1.3
Download link khalil-SimpleTweaks-1.1.3.zip
Downloads 382
Dependency string khalil-SimpleTweaks-1.1.3

This mod requires the following mods to function

BepInEx-BepInExPack_PEAK-5.4.75301 icon
BepInEx-BepInExPack_PEAK

BepInEx pack for PEAK. Preconfigured and ready to use.

Preferred version: 5.4.75301

README

SimpleTweaks

Quality-of-life tweaks for PEAK. All features have independent config toggles.

Features

1. Hunger Overflow (饥饿溢出延长计时)

When you eat food, any hunger restore amount that exceeds your current hunger is converted into an extended hunger countdown at a configurable ratio.

  • Default ratio: 1 point (1%) of overflow = 10 seconds extended
  • Max countdown: 120 seconds (2 minutes) to prevent over-stacking

2. Death Timer Regeneration (死亡计时回复)

When you are carried by another player while fully passed out, your death timer slowly regenerates instead of just freezing.

  • Default rate: same as vanilla drain speed (fully reversible)

3. Backpack Item Swap (背包物品替换)

When your hand already holds an item, clicking an item in a backpack swaps their positions instead of doing nothing.

4. Backflip Always Succeeds (后空翻 100% 成功)

The vanilla backflip emote has a 50% chance to fail and ragdoll you to the ground. This makes it always land successfully.

Works even when other players in the lobby don't have the mod installed.

Configuration

Config file: BepInEx/config/com.simpletweaks.peak.cfg (generated on first launch)

Section Key Default Description
Hunger EnableHungerOverflow true Toggle hunger overflow extension
Hunger HungerOverflowSecondsPerPoint 10 Seconds extended per 1% overflow
Hunger HungerOverflowMaxSeconds 120 Max countdown extension (0 = unlimited)
Death EnableDeathRegeneration true Toggle death timer regeneration
Death DeathRegenerationRate 1 Regeneration rate relative to drain speed
Backpack EnableBackpackSwap true Toggle backpack item swapping
Emote EnableBackflipAlwaysSucceed true Toggle backflip always succeeding
Diagnostics VerboseDiagnostics false Log pickup / swap steps for troubleshooting

Requirements

  • BepInExPack_PEAK
  • PEAK 2.4.b or newer (built against 2.4.b; older versions also supported)

Compatibility

  • Optional integration with PeakStatsEx — hunger countdown displays correctly next to campfires.

Multiplayer Notes

  • Hunger overflow, death timer regeneration, and backflip work regardless of whether other players have the mod.
  • Backpack item swap: works whether you are the host or a client, and the item you take lands in the slot you swapped out of. A client needs at least one free slot (a hand slot or the temporary slot) to perform the swap; if your inventory is completely full, nothing happens (same as vanilla).

Installation

  1. Install via Thunderstore Mod Manager, or drop the .dll into BepInEx/plugins/
  2. Launch once to generate config

CHANGELOG

Changelog

1.1.3

Fixed

  • Backpack swap now keeps the item in the slot it was swapped out of. Previously, as a client, the item taken from the backpack landed in your first empty slot (or the temporary slot when all three were full), instead of the slot the exchanged item came from — so a swap could silently reorder your hotbar.

    The host-side swap was always positionally correct; this only affected clients.

1.1.2

Fixed

  • Critical: backpack item swap no longer deletes the item. In 1.1.1 the hand slot was cleared before the stash RPC was sent. That RPC reads the hand slot's live contents, so it saw an empty slot, failed internally, and the item was lost — it went neither into the backpack nor stayed in hand. The order is now the same as vanilla Backpack.Stash: send the RPC first, then clear the hand slot.

    This only affected clients in multiplayer. When you are the host, the swap is done directly on the authoritative side and was never affected.

1.1.1

Compatibility release for PEAK 2.4.b. Updating is strongly recommended.

Fixed

  • Critical: picking up items no longer breaks. On PEAK 2.4.b, Player.EmptySlot gained an extra optional parameter. Because C# bakes optional arguments in at compile time, the old build threw MissingMethodException inside a Harmony prefix, which caused the game's OnPickupAccepted to be skipped entirely. Symptoms were: picked-up items went straight into a slot instead of your hand, and in the airport no item could be taken out of a slot at all.
  • Game API calls that may gain optional parameters are now resolved at runtime, so future game updates of this kind can no longer break the mod.
  • Every patch body is now exception-guarded. A failure inside the mod can no longer skip the vanilla method it patches — the tweak simply becomes inactive and the error is logged.
  • Backpack item swap (client path) now clears the hand slot before sending the stash RPC and verifies the result, removing a case that could duplicate an item.

Added

  • Diagnostics / VerboseDiagnostics config option (off by default) for logging pickup and swap steps when troubleshooting.

1.1.0

Added

  • Backflip Always Succeeds: the vanilla backflip emote had a 50% chance to fail and ragdoll you to the ground. Now it always lands. Works even when other players don't have the mod.

Fixed

  • Backpack item swap now works in multiplayer as a client. The previous implementation relied on a custom RPC that required the host to also have the mod installed. It now chains vanilla RPCs instead, so the host needs nothing.
  • Death timer regeneration now only runs on the authoritative client.
  • Hunger overflow no longer applies when a skeleton-only food item has no effect.
  • Various robustness fixes across all features (null handling, reflection caching, RPC ordering).

Changed

  • DeathRegenerationRate default changed from 0.5 to 1 (regenerates at the same speed it drains).

1.0.0

Initial release.

Features

  • Hunger overflow extends hunger countdown (default 10s per 1%, max 120s)
  • Death timer regenerates while carried (default same speed as drain)
  • Backpack item swap: swap held item with backpack item
  • Optional PeakStatsEx compatibility for hunger countdown display