Ludeon Forums

Ludeon Forums

  • April 22, 2021, 10:30:36 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Save Our Ship 2 Shuttle Mod Help  (Read 137 times)

WolfoftheWest

  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Save Our Ship 2 Shuttle Mod Help
« on: April 04, 2021, 05:02:11 PM »

I'm making a Save Our Ship 2 addon mod that adds a new type of shuttle, but whenever I try to launch the shuttle it removes all fuel from it's fuel capacity, deletes the cargo, and throws up 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
Logged

Canute

  • Transcendent
  • *****
  • Posts: 9909
  • Refugee
    • View Profile
Re: Save Our Ship 2 Shuttle Mod Help
« Reply #1 on: April 05, 2021, 02:50:11 AM »

I would ask the author of Save out Ship or at last at their mod discussion.