RimWorld

RimWorld

Story Framework - Missions & Objectives for your mod!
 This topic has been pinned, so it's probably important
Maxim  [developer] Jun 16, 2018 @ 4:49pm
Errors? Bugs? Post them here!
Share all the broken stuff here, let me see if I can help.
Last edited by Maxim; Jun 27, 2018 @ 2:00am
< >
Showing 1-15 of 21 comments
Stollie Jun 22, 2018 @ 8:34pm 
I completed my simple mission and on reloading the game when trying to open the missions tab I get the below error, I'm assuming its because no mission exists, if I turn Debug menu off though no error but nothing happens when I click the button, maybe make it say something like "No missions available"?: -

Object reference not set to an instance of an object
at MissionsAndObjectives.MainTabWindow_MissionObjectives.PreOpen () [0x00000] in <filename unknown>:0
at Verse.WindowStack.Add (Verse.Window window) [0x00000] in <filename unknown>:0
at RimWorld.MainTabsRoot.ToggleTab (RimWorld.MainButtonDef newTab, Boolean playSound) [0x00000] in <filename unknown>:0
at RimWorld.MainButtonWorker_ToggleTab.Activate () [0x00000] in <filename unknown>:0
at RimWorld.MainButtonWorker.InterfaceTryActivate () [0x00000] in <filename unknown>:0
at RimWorld.MainButtonWorker.DoButton (Rect rect) [0x00000] in <filename unknown>:0
at RimWorld.MainButtonsRoot.DoButtons () [0x00000] in <filename unknown>:0
at RimWorld.MainButtonsRoot.MainButtonsOnGUI () [0x00000] in <filename unknown>:0
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00000] in <filename unknown>:0
at Verse.Root.OnGUI () [0x00000] in <filename unknown>:0
10chaos1 Jun 26, 2018 @ 8:33pm 
hey maxim got a ticking bug here that creates a large lag spike the game is almost unplayable
heres the console error whitch has ticked 8696 time so far in 31 in game days:

System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GenCollection.Any[MissionDef] (System.Collections.Generic.List`1 list, System.Predicate`1 predicate) [0x00000] in <filename unknown>:0
at MissionsAndObjectives.MissionDef.get_AlreadyDone () [0x00000] in <filename unknown>:0
at MissionsAndObjectives.MissionDef.get_CanStartNow () [0x00000] in <filename unknown>:0
at MissionsAndObjectives.WorldComponent_Missions.WorldComponentTick () [0x00000] in <filename unknown>:0
at RimWorld.Planet.WorldComponentUtility.WorldComponentTick (RimWorld.Planet.World world) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
RimWorld.Planet.WorldComponentUtility:WorldComponentTick(World)
RimWorld.Planet.World:WorldTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

this is after failing the tiberium rim timed mission to build a telescope in 14 days
Maxim  [developer] Jun 26, 2018 @ 10:18pm 
Oh TiberiumRim might not be compatible with the new version of the missions framework, i will check it out though!
10chaos1 Jun 26, 2018 @ 10:20pm 
another thing that I found is that construction of flooring is somehow slowed down by this mod here is an error that happens everytime a pawn builds a floor tile:

Exception in Tick (pawn=Huygens, job=FinishFrame (Job_210264) A=Thing_FAFWoodTile_Frame65929, CurToil=1): System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2<Verse.ThingDef, int>.ContainsKey (Verse.ThingDef) <0x00101>
at MissionsAndObjectives.ThingTracker.Make (Verse.ThingDef,Verse.IntVec3,Verse.Map) <0x0001c>
at MissionsAndObjectives.MissionPatches/BuildPatch/<>c__DisplayClass0_0.<Postfix>b__2 (MissionsAndObjectives.Objective) <0x00092>
at System.Collections.Generic.List`1<MissionsAndObjectives.Objective>.ForEach (System.Action`1<MissionsAndObjectives.Objective>) <0x0002f>
at MissionsAndObjectives.MissionPatches/BuildPatch/<>c__DisplayClass0_0.<Postfix>b__0 (MissionsAndObjectives.Mission) <0x000dd>
at System.Collections.Generic.List`1<MissionsAndObjectives.Mission>.ForEach (System.Action`1<MissionsAndObjectives.Mission>) <0x0002f>
at MissionsAndObjectives.MissionPatches/BuildPatch.Postfix (RimWorld.Frame) <0x00077>
at (wrapper dynamic-method) RimWorld.Frame.CompleteConstruction_Patch2 (object,Verse.Pawn) <0x00a3e>
at RimWorld.JobDriver_ConstructFinishFrame/<MakeNewToils>c__Iterator0/<MakeNewToils>c__AnonStorey1.<>m__1 () <0x001ef>
at (wrapper dynamic-method) Verse.AI.JobDriver.DriverTick_Patch1 (object) <0x00309>
lastJobGiver=RimWorld.JobGiver_Work, curJob.def=FinishFrame, curDriver=RimWorld.JobDriver_ConstructFinishFrame
Verse.Log:Error(String)
Verse.AI.Pawn_JobTracker:StartErrorRecoverJob(String)
Verse.AI.JobDriver:DriverTick_Patch1(Object)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Maxim  [developer] Jun 27, 2018 @ 2:02am 
That's because floors don't count as a thing and thus can't really be counted in the system, i will add an exception to that, thanks for pointing it out!
10chaos1 Jun 27, 2018 @ 7:08am 
Originally posted by Maxim:
That's because floors don't count as a thing and thus can't really be counted in the system, i will add an exception to that, thanks for pointing it out!

just found out a liitle more about this bug it only seems to slow flooring jobs while theres a mission in progress
Maxim  [developer] Jun 27, 2018 @ 7:16am 
I will have to look into that a bit more then, it won't be a problem in the next update!
Maxim  [developer] Oct 27, 2018 @ 3:09am 
Did you load the framework directly after Core or Mod Manager? If not, do so.
Charlotte Oct 27, 2018 @ 3:26am 
That log is from under HugsLib, JectTools, AlienRaces and EditableBackstories. I'll re test...
Maxim  [developer] Oct 27, 2018 @ 4:56am 
Does it work now?
Charlotte Oct 27, 2018 @ 3:50pm 
Okay... with the framework loaded second, a lot of things break and many mods don't load.

This is from a modlist with no errors on run. Just adding the framework breaks it. There is no further errors here but a lot of messages just don't come. A lot of mods haven't loaded.

https://gist.github.com/HugsLibRecordKeeper/6c13b6cfbe4121dd45b9809027c3096b

That "null texture passed to GUI.DrawTexture" happens after trying to export the log (it bugs out) so it's not very relevant.

Wild guess... you are using an outdated harmony (1.1.0.0), while everyone else is using the updated harmony.
Maxim  [developer] Oct 27, 2018 @ 4:02pm 
I think I found the issue, currently fixing it.
Charlotte Oct 27, 2018 @ 4:03pm 
For comparison, this is the modpack without the framework loaded.
https://gist.github.com/HugsLibRecordKeeper/f0ad2a7dcb814f17d42904b727923e3d

Notice no critical errors.

--edit: sorry, didn't see your post.
Last edited by Charlotte; Oct 27, 2018 @ 4:04pm
firethestars Nov 7, 2018 @ 5:36pm 
I am getting the below errors from steam which seems to be because the 2 icons are missing from the steam download of the mod (I can see in the mod folder that the files are missing, but the git repo suggests they have been there awhile). I have removed the game entirely in order to force the latest copy of the mod to come down and it still is missing. This is against version RimWorld 1.0.2059 rev1005.


Could not load UnityEngine.Texture2D at UI/Icons/info in any active mod or in base resources.
Verse.Log:Error(String, Boolean)
Verse.ContentFinder`1:Get(String, Boolean)
StoryFramework.StoryMats:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.PlayDataLoader:<DoPlayLoad>m__2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update_Patch1(Object)
Verse.Root_Entry:Update()


Could not load UnityEngine.Texture2D at UI/Icons/Close in any active mod or in base resources.
Verse.Log:Error(String, Boolean)
Verse.ContentFinder`1:Get(String, Boolean)
StoryFramework.StoryMats:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.PlayDataLoader:<DoPlayLoad>m__2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update_Patch1(Object)
Verse.Root_Entry:Update()
< >
Showing 1-15 of 21 comments
Per page: 1530 50