UnknownErrorFixes
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
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- 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.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- 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.
Install these first, or the mod will not work: