You are viewing a potentially older version of this package. View all versions.
Phreel-BaseGameFixes-1.0.3 icon

BaseGameFixes

Fixes various base game errors and NREs you'd encounter late-game.

By Phreel
Date uploaded 3 weeks ago
Version 1.0.3
Download link Phreel-BaseGameFixes-1.0.3.zip
Downloads 302
Dependency string Phreel-BaseGameFixes-1.0.3

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.9 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.9
bbepis-BepInExPack-5.4.2122 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2122

README

BaseGameFixes

Fixes a collection of base game errors and NullReferenceExceptions via Harmony patches.

Fixes

  • Defective Unit - death state no longer throws when its model is already gone (e.g. Void Fields wave ending).
  • Void Barnacle - spawn no longer tries to spawn a null muzzle flash effect.
  • Dream Demon - projectile no longer throws on destroyed growth renderers.
  • RigidbodySoundOnImpact - no longer throws when a collision happens before Start.
  • SetStateOnHurt - freeze/stun no longer throws when applied before Start (duration modifiers are still respected).
  • DoTargetInfoSearch - When a drone command is aimed at a chest, the loop finds the chest correctly.
  • SpecialObjectAttributes.Start - Some prefabs have a missing object in that list. A patch that runs before Start removes dead entries from it.
  • beamVfxInstance.transform - Skips the update when the beam effect or the muzzle is gone.
  • MinionOwnership - Skips minions that are already destroyed. A destroyed minion has no CharacterMaster to report as lost anyway.
  • AddTimedBuffInterval - When anything sets TeamComponent.teamIndex, the component adds itself to the global team list right away, even if the object hasn't woken up. If a mod sets teamIndex on a body prefab, that prefab joins the team list for good. Prefabs never get OnDestroy, so it's never removed. Every BuffWard (Warbanner and the like) then reaches that ghost member on every FixedUpdate and throws. That's where the slowdown comes from: an exception plus a ~40-frame stack trace logged constantly. Each throw also aborts the BuffWard loop, so allies after the ghost entry in the list weren't getting the buff at all.
  • ComputePathNodeIndex - Out-of-range indices are now treated as invalid, which the game already handles by returning "unreachable".
  • SimpleMuzzleFlash - FireLaserDisc null-checks the wrapper object around the muzzle flash prefab, not the prefab inside it, and that prefab is null. SimpleMuzzleFlash now does nothing when the prefab is null.
  • ChipAnimator.OnDestroy - it destroyed chips without checking them. It now skips a null array and chips that are already gone.
  • TrialGongInteractionHurtbox - damage-over-time has no hurtbox, which the push-direction code needs. While the method runs, the gong's own main hurtbox stands in, so the hit still counts. The original value is put back afterwards.

CHANGELOG

1.0.14

  • Fixed bodies whose animator was destroyed throwing every frame in BaseCharacterMain.FixedUpdate (landing impact)
  • Added VarianceAPI nullcheck (variant visuals applied to a model destroyed before its skin loaded)

1.0.13

  • Fixed Ancient Scepter's Chef Glaze hook throwing on hits without an attacker, which also skipped other mods' OnHitEnemy hooks
  • Fixed modded Simulacrum stages aborting WolfoQoL's Simulacrum logbook setup (locked entries, missing moon diorama and previews)

1.0.12

  • Added LoadingSpriteAdditions nullcheck (loading screen during a run with no master)

1.0.11

  • Silenced Tracer: No owning pool set and OrbEffect: No owning pool set log spam

1.0.10

  • Fixed the Hallowed Cauldron throwing every frame on clients while draining items, and not finishing if the player who started it leaves
  • Fixed opening a Drifter vault bag chest while a player is dead cutting the chest's opening short
  • Fixed Expedition's Heatcore achievement throwing every frame for survivors without an equipment slot, which also skipped other mods' CharacterBody.FixedUpdate hooks
  • Fixed Starstorm 2 storms not finishing their setup for clients, and its ItemOnEliteKill skipping other mods' run start code on clients
  • Fixed Nautilus' Xenobacteria dropping DoTs when the attacker was already destroyed
  • Added 4 more base game nullchecks (geode portal tracker, equipment on the game over screen, Solus Amalgamator flamethrower, Vulture fight on clients)
  • Added 2 more SS2 nullchecks (equipment Mimic drops, Ice Tool)
  • Added ShareSuite nullcheck (money pickups after the run ends)
  • Added Driver, Sandswept and WolfoQoL (Lunar Seer names) nullchecks
  • Silenced EnemiesReturns' RPC Function RpcEnableShard called on client spam on clients
  • Removed the SniperClassic fix, it's fixed in SniperClassic itself now

1.0.9

  • Fixed allies being left without collisions and hurtboxes after leaving a vehicle seat (e.g. Rising Tides' Aquamarine bubble)
  • Fixed stages with no available monster category not spawning their interactables
  • Added 6 more base game nullchecks (Shrine of Combat, Alloy Hunter spawn, point sounds, character animations, Duplicator temp items, model panels)
  • Added Scales of the Asclepius nullcheck (IV Bag)
  • Added BootlegBestiary nullcheck (Demineur death)
  • Added WolfoQoL nullcheck (newt altar reminder)
  • Silenced Sub-emitters may not use stop actions log spam

1.0.8

  • Fixed a stack overflow crash from chained on-kill effects (Gasoline and modded equivalents) in big modpacks
  • Added 3 more base game nullchecks (Solus Heart attacks/teleport, Solus Heart death fall, light cookies)
  • Added 2 SS2 nullchecks (Relic of Termination, Sticky Overloader)
  • Added Expedition nullcheck (Biodude)
  • Added Scales of the Asclepius nullcheck (Gauze Pad)
  • Added WolfoQoL nullcheck (minion healing tracking)
  • Added MoreMountains fix (missing mountain shrine card stopping interactables from spawning)

1.0.7

  • Added 4 more base game nullchecks
  • Added 2 MSU nullchecks
  • Added 2 SS2 nullchecks
  • Added Augmentum nullcheck
  • Added Expedition nullcheck
  • Added Ancient Scepter nullcheck

1.0.6

  • Added 2 more Starstorm 2 temporary fixes

1.0.5

  • Fixed Unable to SpawnEffect errors from animation events with no effect assigned (seen in Starstorm 2's Stranger's Hideout)
  • Fixed the inspect panel still throwing in Starstorm 2's shard trading panel (items with no name/description/lore text, or panels missing parts of their setup)
  • Added a SniperClassic fix: its reload menu hook threw when finishing a trade with ZanZan, which also cut off the rest of Starstorm 2's trade message

1.0.4

  • Added 14 more base game fixes, including a multiplayer scene spawning fix and no more enemies spawning inside the Void Fields cell you're charging
  • Added fixes for other mods' errors (MoonstormSharedUtils, Starstorm 2, ShareSuite, ZetAspects). These are temporary and only apply when that mod is installed
  • Silenced some harmless log spam (GenericPool, zero surface area particles, Starstorm 2's TranslucentImage and ShardPoison messages)
  • Each fix now applies on its own, so if one breaks (e.g. after a mod update) the rest still work

1.0.3

  • Added 5 more fixes

1.0.2

  • Added Solus Wing beam nullcheck
  • Added MinionOwnership nullcheck
  • both of these are minor and you'd only see these in console when the run ends abruptly during Solus Wing bossfight

1.0.1

  • Added DroneCommandReceiver.DoTargetInfoSearch nullcheck
  • Added SpecialObjectAttributes.Start nullcheck

1.0.0

  • Release