Space Engineers

Space Engineers

AiEnabled v1.9
CrazyDuck May 28, 2023 @ 10:07am
Robot Factory error
So if i try to build a Robot at the Factory it removes the Token and the Spacecredits but no Bot is constructet.
AI Logfile show me this error

[19:01:15.546] [T28] [DS=True] ERROR | Exception in BotFactory.CreateBot: Object reference not set to an instance of an object.
at NpcFactionFixer.NpcFactionFixer.KickPlayer(Int64 id, MyFaction faction) in D:\Sync\ProgramFiles\VisualStudio\source\repos\NPCFictionFixer\NPCFactionFixer\NpcFactionFixer.cs:line 181
at System.DelegateExtensions.InvokeIfNotNull[T1,T2](Action`2 handler, T1 arg1, T2 arg2)
at Sandbox.Game.Multiplayer.MyFactionCollection.InvokePlayerJoined(MyFaction faction, Int64 identityId)
at Sandbox.Game.World.MyFaction.AcceptJoin(Int64 playerId, Boolean autoaccept)
at Sandbox.Game.Multiplayer.MyFactionCollection.ApplyFactionStateChange(MyFactionStateChange action, Int64 fromFactionId, Int64 toFactionId, Int64 playerId, Int64 senderId)
at Sandbox.Game.Multiplayer.MyFactionCollection.FactionStateChangeSuccess(MyFactionStateChange action, Int64 fromFactionId, Int64 toFactionId, Int64 playerId, Int64 senderId)
at VRage.Network.MyReplicationLayerBase.InvokeLocally[T1,T2,T3,T4,T5,T6,T7](CallSite`7 site, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
at VRage.Network.MyReplicationLayer.DispatchEvent[T1,T2,T3,T4,T5,T6,T7,T8](CallSite callSite, EndpointId recipient, Nullable`1 position, T1& arg1, T2& arg2, T3& arg3, T4& arg4, T5& arg5, T6& arg6, T7& arg7, T8& arg8)
at VRage.Network.MyReplicationLayerBase.RaiseEvent[T1,T2,T3,T4,T5,T6,T7](T1 arg1, T7 arg7, Func`2 action, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, EndpointId endpointId, Nullable`1 position)
at Sandbox.Game.Multiplayer.MyFactionCollection.FactionStateChangeRequest(MyFactionStateChange action, Int64 fromFactionId, Int64 toFactionId, Int64 playerId)
at VRage.Network.MyReplicationLayerBase.InvokeLocally[T1,T2,T3,T4,T5,T6,T7](CallSite`7 site, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
at VRage.Network.MyReplicationLayer.DispatchEvent[T1,T2,T3,T4,T5,T6,T7,T8](CallSite callSite, EndpointId recipient, Nullable`1 position, T1& arg1, T2& arg2, T3& arg3, T4& arg4, T5& arg5, T6& arg6, T7& arg7, T8& arg8)
at VRage.Network.MyReplicationLayerBase.RaiseEvent[T1,T2,T3,T4,T5,T6](T1 arg1, T6 arg6, Func`2 action, T2 arg2, T3 arg3, T4 arg4, T5 arg5, EndpointId endpointId, Nullable`1 position)
at Sandbox.Game.Multiplayer.MyFactionCollection.SendFactionChange(MyFactionStateChange action, Int64 fromFactionId, Int64 toFactionId, Int64 playerId)
at Sandbox.Game.MyVisualScriptLogicProvider.SetPlayersFaction(Int64 playerId, String factionTag)
at AiEnabled.Bots.BotFactory.CreateBotObject(String subType, String displayName, MyPositionAndOrientation positionAndOrientation, Nullable`1 ownerId, Nullable`1 botColor, Nullable`1 factionToPairWith, Boolean adminSpawn)
[19:01:15.546] [T28] [DS=True] WARNING | FactorySpawnPacket.Received: Helper was null after creation