TeamMoonstorm / Starstorm2

A sequel to the Risk of Rain 1 mod Starstorm, for RoR2. Featuring new survivors, enemies, items, bosses, gameplay mechanics, and more!
https://thunderstore.io/package/TeamMoonstorm/Starstorm2/
GNU General Public License v3.0
31 stars 36 forks source link

Clients don't see teleporters properly finish when a player has field accelerator #627

Open LordVGames opened 1 month ago

LordVGames commented 1 month ago

afaik it doesn't matter who has the field accelerator

https://github.com/user-attachments/assets/882e76cc-8271-4005-bb23-7dad84207a78

LogOutput weird tele host.log LogOutput weird tele client.log

edit: there's also this error in my (host's) console every time the teleporter finishes with a field accelerator:

[00:41:33.3898787] [Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
SS2.Items.FieldAccelerator+FieldAcceleratorTeleporterBehavior.TeleporterInteraction_onTeleporterChargedGlobal (RoR2.TeleporterInteraction tele) (at C:/Users/color/Desktop/code/Starstorm2/SS2-Project/Assets/Starstorm2/Modules/Pickups/Items/Tier2/FieldAccelerator.cs:187)
RoR2.TeleporterInteraction+ChargedState.OnEnter () (at <d40ed1fc32a5436f8b992e36da98a05d>:IL_0061)
(wrapper dynamic-method) RoR2.EntityStateMachine.DMD<RoR2.EntityStateMachine::SetState>(RoR2.EntityStateMachine,EntityStates.EntityState)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<RoR2.EntityStateMachine::SetState>?647853444(RoR2.EntityStateMachine,EntityStates.EntityState)
EnforcerPlugin.EnforcerModPlugin.EntityStateMachine_SetState (On.RoR2.EntityStateMachine+orig_SetState orig, RoR2.EntityStateMachine self, EntityStates.EntityState newState) (at <66db015f4cb246bba53a78e4a0b0ddbd>:IL_005A)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Hook<RoR2.EntityStateMachine::SetState>?160790340(RoR2.EntityStateMachine,EntityStates.EntityState)
RoR2.EntityStateMachine.TryStateTransition () (at <d40ed1fc32a5436f8b992e36da98a05d>:IL_0008)
RoR2.EntityStateMachine.ManagedFixedUpdate (System.Single deltaTime) (at <d40ed1fc32a5436f8b992e36da98a05d>:IL_0011)
RoR2.EntityStateMachine.FixedUpdate () (at <d40ed1fc32a5436f8b992e36da98a05d>:IL_0006)