[Mod Help] New Shuttle Mod for Save Our Ship 2 Debug help

Started by WolfoftheWest, April 04, 2021, 05:06:50 PM

Previous topic - Next topic

WolfoftheWest

I'm making a new Shuttle for SOS2, but every time i try to launch the shuttle it removes all fuel, deletes the cargo/occupants, and throws this error

Root level exception in OnGUI(): System.InvalidCastException: Specified cast is not valid.
  at RimWorld.CompShuttleLaunchable.TryLaunch (RimWorld.Planet.GlobalTargetInfo target, RimWorld.Planet.TransportPodsArrivalAction arrivalAction) [0x00500] in <a8039eeba20243a5931287784964ef0d>:0
  at RimWorld.CompShuttleLaunchable.ChoseWorldTarget (RimWorld.Planet.GlobalTargetInfo target) [0x009f1] in <a8039eeba20243a5931287784964ef0d>:0
  at RimWorld.WorldTargeter.ProcessInputEvents () [0x00040] in <c36f9493c9844ddaa7fb5c788416098f>:0
  at RimWorld.WorldInterface.HandleLowPriorityInput () [0x00007] in <c36f9493c9844ddaa7fb5c788416098f>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000c9] in <c36f9493c9844ddaa7fb5c788416098f>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)

I'm assuming that its telling me that I'm missing an "arrival" def, but I haven't found one in Save Our Ship 2's files to use as a base, so I'm requesting help