RimWorld

RimWorld

Save Our Ship 2
BRSaura Aug 3, 2024 @ 9:29am
[Solved] Ship move to map: no valid ship index found
When I tried to launch one of my ships to the planet, the temporal space map got created, no ship spawned there, and the original ship was left with just the walls and buildings, like halfway there to spawn in the other place, this happens too If I try to move it around the same map.

It was working for months, just added Simple Utilities: Fridge and perfomance fish recently, And load order "should" be fine. First I get this log :

Exception ticking MinifiedThingShipMove7626228 (at (125, 0, 125)): System.InvalidOperationException: Operation is not valid due to the current state of the object. [Ref B9059065] Duplicate stacktrace, see ref for original UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string) Verse.TickList:Tick () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch3 (Verse.Game) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

Then, looks like since it fails, it also fails getting the ship index :

SOS2: Map-38-PlayerHome Ship move to map: Map-38-PlayerHome failed, no valid ship index found! Save, reload and report! UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string) SaveOurShip2.ShipInteriorMod2:MoveShip (Verse.Building,Verse.Map,Verse.IntVec3,RimWorld.Faction,byte,bool,bool) SaveOurShip2.MinifiedThingShipMove:Tick () Verse.TickList:Tick () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch3 (Verse.Game) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

If I try to land it , I get this instead.


Exception ticking MinifiedThingShipMove7668417 (at (125, 0, 125)): System.InvalidOperationException: Operation is not valid due to the current state of the object. [Ref 454CEE79] at FisheryLib.Collections.IndexedFishSet`1[T].Add (T item) [0x00019] in <a3e8b53a325844e98f60ef692520ce62>:0 at PerformanceFish.Listers.Buildings+AddPatch.Postfix (Verse.ListerBuildings __instance, Verse.Building b) [0x0003f] in <66cfa82fbdc943bd9afc22f2027e1965>:0 at Verse.ListerBuildings.Add (Verse.Building b) [0x000b3] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0 at Verse.Building.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x0006b] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0 - POSTFIX ShipInteriorMod2: Void SaveOurShip2.DoSpawn:OnSpawn(Building __instance, Map map, Boolean respawningAfterLoad) at RimWorld.Building_Storage.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x00007] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0 at AdaptiveStorage.ThingClass.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x00014] in <3d4f924b8cbc4dc9b7ef751c36105b8a>:0 at SaveOurShip2.ShipInteriorMod2.MoveShip (Verse.Building core, Verse.Map targetMap, Verse.IntVec3 adjustment, RimWorld.Faction fac, System.Byte rotNum, System.Boolean includeRock, System.Boolean clearArea) [0x0122d] in <2df847f03d034e0fa0612e7c7e88a026>:0 at SaveOurShip2.MinifiedThingShipMove.Tick () [0x001db] in <2df847f03d034e0fa0612e7c7e88a026>:0 at Verse.TickList.Tick () [0x0015c] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string) Verse.TickList:Tick () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch3 (Verse.Game) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)


Edit: Looks like the offender was the fridge, who would have known if it wasnt because it was the last mod added. I loaded the save prior to bugging the ship, deconstructed any buildings of the fridge, removed the mod, upon loading there will be a lot of tick error with the ship consoles, save the game in another slot and reload it.
So, yeah, looks like Simple Utilities: Fridge (Continued) it's SOS incompatible ( at least being used with reel's storage/adaptative storage)
Last edited by BRSaura; Aug 3, 2024 @ 11:27am
< >
Showing 1-6 of 6 comments
bradson Aug 3, 2024 @ 2:52pm 
The InvalidOperationException there gets thrown when trying to spawn a thing that is already spawned. Essentially adding a duplicate, except with me not writing down the usual details into the error message. Looking at the calling method on sos2's github, the specific SpawnSetup there runs exactly after logging an error about failing to despawn. This previous despawn error would have the more useful data. It could've even been something else entirely not seen here affecting despawning too and simply randomly not happening on the 2nd attempt with fridge removed
BRSaura Aug 4, 2024 @ 4:10am 
Well the only thing I tried was removing the fridge mod, and it was the difference of working / not working so I have no idea what other thing could be, as for info, that was all there is, the game didn't long anything else
BRSaura Aug 29, 2024 @ 1:53pm 
I got this error from time to time, so it looks like it isn't linked with any storage mods or anything, might be Perfomance Fish causing trouble then, since it began the same day I added it.

This is is when launching a ship.

Error spawning ship hull: Object reference not set to an instance of an object
[Ref D20AEF25]
at Verse.GridsUtility.GetThingList (Verse.IntVec3 c, Verse.Map map) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at LifeSupport.LifeSupportComp+<>c__DisplayClass2_0.<ReceiveCompSignal>b__0 (Verse.IntVec3 cell) [0x00000] in <51111dcffb1e46c5b40d5478673ae551>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Set`1[TElement].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+DistinctIterator`1[TSource].FillSet () [0x0000b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+DistinctIterator`1[TSource].ToList () [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at LifeSupport.LifeSupportComp.ReceiveCompSignal (System.String signal) [0x00077] in <51111dcffb1e46c5b40d5478673ae551>:0
at Verse.ThingWithComps.BroadcastCompSignal (System.String signal) [0x0002b] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RimWorld.CompPowerTrader.set_PowerOn (System.Boolean value) [0x0012b] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX OskarPotocki.VanillaFactionsExpandedMechanoids: Void VFEMech.PowerOn_Patch:Postfix(CompPowerTrader __instance)
at RimWorld.CompPowerTrader.LostConnectParent () [0x00006] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RimWorld.CompPower.PostDeSpawn (Verse.Map map) [0x0004e] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.ThingWithComps.DeSpawn (Verse.DestroyMode mode) [0x0002c] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX XFMParmor_HarmonyPatch: Void MParmorLibrary.Patches.StoreProjectiles+ProjectilesDeSpawn_PostFix:Postfix(ThingWithComps __instance)
at Verse.Building.DeSpawn (Verse.DestroyMode mode) [0x00035] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- PREFIX ShipInteriorMod2: Boolean SaveOurShip2.DoPreDeSpawn:PreDeSpawn(Building __instance, DestroyMode mode)
at SaveOurShip2.ShipInteriorMod2.MoveShip (Verse.Building core, Verse.Map targetMap, Verse.IntVec3 adjustment, RimWorld.Faction fac, System.Byte rotNum, System.Boolean includeRock, System.Boolean clearArea) [0x010f4] in <2df847f03d034e0fa0612e7c7e88a026>:0

UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
SaveOurShip2.ShipInteriorMod2:MoveShip (Verse.Building,Verse.Map,Verse.IntVec3,RimWorld.Faction,byte,bool,bool)
SaveOurShip2.ShipInteriorMod2:LaunchShip (Verse.Building)
SaveOurShip2.LaunchShipToSpace:Prefix ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.ShipCountdown.CountdownEnded_Patch1 ()
RimWorld.ShipCountdown:ShipCountdownUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

----------------------And the next one---------------------------------------------------------------------

Root level exception in Update(): System.InvalidOperationException: Operation is not valid due to the current state of the object.
[Ref 8C66EEC8]
at FisheryLib.Collections.IndexedFishSet`1[T].Add (T item) [0x00019] in <a3e8b53a325844e98f60ef692520ce62>:0
at PerformanceFish.Listers.Buildings+AddPatch.Postfix (Verse.ListerBuildings __instance, Verse.Building b) [0x0003f] in <66cfa82fbdc943bd9afc22f2027e1965>:0
at Verse.ListerBuildings.Add (Verse.Building b) [0x000b3] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.Building.SpawnSetup (Verse.Map map, System.Boolean respawningAfterLoad) [0x0006b] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX ShipInteriorMod2: Void SaveOurShip2.DoSpawn:OnSpawn(Building __instance, Map map, Boolean respawningAfterLoad)
at SaveOurShip2.ShipInteriorMod2.MoveShip (Verse.Building core, Verse.Map targetMap, Verse.IntVec3 adjustment, RimWorld.Faction fac, System.Byte rotNum, System.Boolean includeRock, System.Boolean clearArea) [0x011cf] in <2df847f03d034e0fa0612e7c7e88a026>:0
at SaveOurShip2.ShipInteriorMod2.LaunchShip (Verse.Building core) [0x00135] in <2df847f03d034e0fa0612e7c7e88a026>:0
at SaveOurShip2.LaunchShipToSpace.Prefix () [0x0002f] in <2df847f03d034e0fa0612e7c7e88a026>:0
at RimWorld.ShipCountdown.CountdownEnded () [0x00011] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- PREFIX ShipInteriorMod2: Boolean SaveOurShip2.LaunchShipToSpace:Prefix()
at RimWorld.ShipCountdown.ShipCountdownUpdate () [0x00028] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.Root_Play.Update () [0x00021] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX com.vanillageneticrimexpanded: Void GeneticRim.Root_Play_Update_Patch:TickCountDown()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
Last edited by BRSaura; Aug 30, 2024 @ 9:38am
BRSaura Aug 30, 2024 @ 10:36am 
Well, now it was the Life support ssystem from life support continued 1.1+, removing it let me launch, bit werd but ok, maybe something with the tick it does?
Originally posted by BRSaura:
Well, now it was the Life support ssystem from life support continued 1.1+, removing it let me launch, bit werd but ok, maybe something with the tick it does?

Found the same issue to be true, thanks for the info.
Thain  [developer] Sep 9, 2024 @ 10:29pm 
Originally posted by BRSaura:
Well, now it was the Life support ssystem from life support continued 1.1+, removing it let me launch, bit werd but ok, maybe something with the tick it does?

Can I get a link to that?
< >
Showing 1-6 of 6 comments
Per page: 1530 50