UnknownErrorFixes

v1.0.1·Updated 2021-12-11

Nullchecks ProjectileSteerTowardsTarget and AntiGravityForce component

About this mod Author’s original text

# Unknown Error Fixes

If you've never gotten these errors then there's no point in downloading this mod.

A bunch of errors I have no idea how it could be fixed. Feel free to send me more shit to add nullchecks to.

ProjectileSteerTowardsTarget

[Error: Unity Log] NullReferenceException: Object reference not set to an instance of an object

Stack trace:

RoR2.Projectile.ProjectileSteerTowardTarget.FixedUpdate () (at:IL_0000)

Probably an error with Annihilator/Echo Elites. Error comes from if (targetComponent.target) on the first line, except it doesn't check if targetComponent exists, which is doesn't, then floods console with the nullref. Which is weird, since the component is supposed to exist on the projectile? Attempting fix by adding a nullcheck for targetComponent.

Anti Gravity Force

Error probably comes from the rigidbody not being nullchecked. Ideally, it shouldn't be needed since the component has the [Require(typeof(Rigidbody))], so idk what it comes from. idk.

Changelog

1.0.1 - AntiGravityForce

1.0.0 - ProjectileSteerTowardTarget

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

bbepis-BepInExPack

File & checksum

Filename
UnknownErrorFixes-1.0.1.zip
File size
3.5 KiB
SHA-256
8a1f900246e5d6153254d8813a4c95a91af1eff6436d6b72045ffd546b5a07f2
Stored at
2026-10-07 11:41