RimWorld

RimWorld

A RimWorld of Magic
Rex Jan 30, 2018 @ 2:53pm
Bug Reports
I created this channel for people who encounter bugs in the mod. Please describe what's ocurring when the bug happens and how it was caused. A log would also be helpful. Thanks!

-The Rex
< >
Showing 166-180 of 2,219 comments
Wolfguarde Jul 12, 2018 @ 8:58am 
Paladin heals don't appear to be working on my game. No error thrown when attempted, just completes the cast and doesn't restore any health. Priest heal is working as normal. I can provide my modlist if needed, but not sure what other details I can add that will help.
Igams Jul 13, 2018 @ 3:20pm 
Originally posted by Wolfguarde:
Paladin heals don't appear to be working on my game. No error thrown when attempted, just completes the cast and doesn't restore any health. Priest heal is working as normal. I can provide my modlist if needed, but not sure what other details I can add that will help.

Are you sure you have the game set to notify you of errors? I think it may be off by default. You could be getting an error but just not seeing it pop up. Generally modders can't really do much without an error log.

You could try posting your load order and maybe someone will have had the same issue and be able to tell you the cause. It's tedious when you have a bunch of mods that you play with but the only real way to identify is divide your mods up and then narrow them down into groups and then individually.

For example I generally have over 100 mods active in my game. So when 1 mod stops working I try to pick any obvious mods that may be causing the issue. Then if that doesn't work I turn off all my mods except the one I'm testing (so A Rimworld of Magic in this case) and the mods it's dependent on, and then I turn on all my mods in groups of 20 at a time until I find the group of mods that's letting me produce the same error in the mod being tested. Once you narrow it down to a group of 20 or so mods you can then narrow that even further by dividing that group into 4 smaller groups of 5. Once you found which group of 5 is causing the error just test each of those mods individually with the tested mod in question until you find the one causing the conflict.

Now that you know exactly what mod is causing the conflict the author now has something they can work with even if there's no error log. But first and foremost before you do that make sure to check whether your notifications are actually set to pop up when an error occurs. An error log may be able to tell you where the conflict is coming from without you having to manually test your mods like I explained.
Last edited by Igams; Jul 13, 2018 @ 3:23pm
bonesbro Jul 16, 2018 @ 9:59am 
Tracked down a bug I've been having for a while to this mod. It seems like, somehow, it disables the "cutting" damage type. The easiest way to see this error is to inspect a cutting weapon, like a longsword, and click on the DPS. You'll see that the DPS value is quite low, the detailed damage description doesn't include any "cutting" damage, and you get this error popup:

0 maneuvers when trying to get dps for weapon longsword tool edge capacity cutting; average DPS explanation may be incorrect
Verse.Log:Error(String)
Verse.Log:ErrorOnce(String, Int32)
RimWorld.StatWorker_MeleeAverageDPS:GetExplanationUnfinalized(StatRequest, ToStringNumberSense)
RimWorld.StatDrawEntry:GetExplanationText(StatRequest)
RimWorld.StatsReportUtility:DrawStatsWorker(Rect, Thing, WorldObject)
RimWorld.StatsReportUtility:DrawStatsReport(Rect, Thing)
Verse.Dialog_InfoCard:FillCard(Rect)
Verse.Dialog_InfoCard:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

I found that the error repros with only HugsLib, JecTools, and this mod active.

Repro steps (b18):
1. Create a new world and click next next next and crashland.
2. Debug actions > Tool: Spawn Weapon > choose a longsword and spawn it.
3. Click on the longsword, then click on the (i) in the bottom-left pane to inspect it
4. Observe the DPS number is low, then click on the DPS value
5. The debug log will pop up with the error above.

I grepped through a bunch of the def .xml files and couldn't find anything obvious.
bonesbro Jul 16, 2018 @ 2:46pm 
A second bug, should be a simple fix: if you accidentally cast Spell Mending on an animal you get a continuous NullReferenceException in HediffComp_SpellMending.cs::TickAction(). Probably the pawn.Apparel.WornApparel, though maybe that works but returns null. (GiddyUp makes it pretty easy to accidentally cast on the mount instead of the rider)
Torann  [developer] Jul 19, 2018 @ 1:12pm 
@bonesbro
The first issue occurs for me (in unstable 1.0) with any item and using only core loaded, so I'm thinking it's just part of the stuff going on for the update. If you got this in B18, not sure then. There's really nothing in the logs that points to any method that's part of this mod so it makes it hard to troubleshoot.

Thanks for the note on the second bug, it's fixed in the (as yet unreleased) 1.0 build for the mod.
bonesbro Jul 19, 2018 @ 7:36pm 
Yes, I'm getting the first bug in B18. I found the fix, though. The bug is caused by the ManeuverDef for the thrumbo cleave. I think that because it shares the same defName as the Core one, it overwrite it, and thus breaks the core maneuver. Just rename <ManeuverDef><defName>Slash</defName to anything else. I picked TM_ThrumboCleaveManeuver.
bonesbro Jul 19, 2018 @ 8:29pm 
Got this error, apparently when it tried to generate an arcane camp and failed:

System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List`1<Verse.Thing>.get_Item (int) <0x00054>
at TorannMagic.IncidentWorker_QuestArcaneCamp.TryExecuteWorker (RimWorld.IncidentParms) <0x00259>

Maybe GenerateRewards() didn't generate three things? I used the dev tools to ExecuteIncident another QueryArcaneCamp and that one worked, so it's plausible that the random nature of GenerateRewards just swung and missed. The actual camp was present on the world map, though.
Last edited by bonesbro; Jul 19, 2018 @ 10:23pm
Wolfguarde Jul 19, 2018 @ 11:51pm 
Originally posted by Igams:
Originally posted by Wolfguarde:
Paladin heals don't appear to be working on my game. No error thrown when attempted, just completes the cast and doesn't restore any health. Priest heal is working as normal. I can provide my modlist if needed, but not sure what other details I can add that will help.

Are you sure you have the game set to notify you of errors? I think it may be off by default. You could be getting an error but just not seeing it pop up. Generally modders can't really do much without an error log.

You could try posting your load order and maybe someone will have had the same issue and be able to tell you the cause. It's tedious when you have a bunch of mods that you play with but the only real way to identify is divide your mods up and then narrow them down into groups and then individually.

For example I generally have over 100 mods active in my game. So when 1 mod stops working I try to pick any obvious mods that may be causing the issue. Then if that doesn't work I turn off all my mods except the one I'm testing (so A Rimworld of Magic in this case) and the mods it's dependent on, and then I turn on all my mods in groups of 20 at a time until I find the group of mods that's letting me produce the same error in the mod being tested. Once you narrow it down to a group of 20 or so mods you can then narrow that even further by dividing that group into 4 smaller groups of 5. Once you found which group of 5 is causing the error just test each of those mods individually with the tested mod in question until you find the one causing the conflict.

Now that you know exactly what mod is causing the conflict the author now has something they can work with even if there's no error log. But first and foremost before you do that make sure to check whether your notifications are actually set to pop up when an error occurs. An error log may be able to tell you where the conflict is coming from without you having to manually test your mods like I explained.

Hmm, I thought I'd responded to this one a few days ago, but it mustn't have posted :S

I have a similarly large modlist and have had to produce error logs before, so I know the process and always have the log on. The issue in this instance is there's just... nothing being spat out when it happens. No white, no yellow, no red. Whatever the issue is, the game appears to think it's working as intended.
Hazardous Aug 18, 2018 @ 6:00pm 
when a druid tries to regrow a stomach, it says liver instead of stomach, not sure if this affects the patients though
McDude Aug 21, 2018 @ 8:06pm 
Getting this:

Error in WorldPawnGCTick(): System.NullReferenceException: Object reference not set to an instance of an object
at Verse.Map.get_ParentHolder () <0x0000c>
at Verse.ThingOwnerUtility.AnyParentIs<RimWorld.Planet.TravelingTransportPods> (Verse.Thing) <0x00087>
at (wrapper dynamic-method) RimWorld.PawnUtility.IsTravelingInTransportPodWorldObject_Patch1 (Verse.Pawn) <0x0001d>
at RimWorld.Planet.WorldPawnGC.GetCriticalPawnReason (Verse.Pawn) <0x000da>
at RimWorld.Planet.WorldPawnGC/<AccumulatePawnGCData>c__Iterator0.MoveNext () <0x000db>
at RimWorld.Planet.WorldPawnGC/<PawnGCPass>c__Iterator1.MoveNext () <0x0016b>
at RimWorld.Planet.WorldPawnGC.WorldPawnGCTick () <0x000d3>
at RimWorld.Planet.WorldPawns.WorldPawnsTick () <0x00260>

Verse.Log:Error(String)
RimWorld.Planet.WorldPawns:WorldPawnsTick()
RimWorld.Planet.World:WorldTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()



Not sure what it means...
Torann  [developer] Aug 21, 2018 @ 9:08pm 
@Derek
Not sure it has anything to do with this mod since there's nothing in the Error log that references this mod. The function "WorldPawnGCTick()" is part of the core game. Can you describe what's happening when you're getting this error?
McDude Aug 22, 2018 @ 5:11am 
I'm trying to recreate it, Torann, but I think it happens at the start of a raid. Thanks for the quick reply, I'll keep you updated!
McDude Aug 22, 2018 @ 5:58am 
I'm getting this one now: "Faction Atstni has null relation with Edoum. Returning dummy relation.
Verse.Log:Error(String)
RimWorld.Faction:RelationWith(Faction, Boolean)
RimWorld.FactionUtility:HostileTo(Faction, Faction)
RimWorld.GenHostility:HostileTo(Thing, Thing)
RimWorld.PawnRelationWorker:BaseGenerationChanceFactor(Pawn, Pawn, PawnGenerationRequest)
RimWorld.PawnRelationWorker_Child:GenerationChance(Pawn, Pawn, PawnGenerationRequest)
Verse.<GeneratePawnRelations>c__AnonStorey5:<>m__1(KeyValuePair`2)
Verse.GenCollection:RandomElementByWeightWithDefault(IEnumerable`1, Func`2, Single)
Verse.PawnGenerator:GeneratePawnRelations(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:TryGenerateNewNakedPawn(PawnGenerationRequest&, String&, Boolean)
Verse.PawnGenerator:GenerateNewNakedPawn(PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnInternal_Patch1(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn(PawnGenerationRequest)
RimWorld.<GenerateThings>c__Iterator0:MoveNext()
RimWorld.ItemCollectionGenerator_TraderStock:Generate(ItemCollectionGeneratorParams, List`1)
RimWorld.ItemCollectionGenerator:Generate(ItemCollectionGeneratorParams)
RimWorld.TradeShip:GenerateThings()
RimWorld.IncidentWorker_OrbitalTraderArrival:TryExecuteWorker(IncidentParms)
RimWorld.IncidentWorker:TryExecute(IncidentParms)
RimWorld.Storyteller:TryFire(FiringIncident)
RimWorld.Storyteller:StorytellerTick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
"

Does this have anything to do with Magic? I just got it when some visitors left my colony, but I have the Hospitality mod on. Could be that, I guess.
the.pacel Aug 23, 2018 @ 7:42pm 
After the latest update of .19 any time I case a spell the game hangs before completion. Here is the log when attempting to summon a minion. This error will continue to tick as long as the game is not paused.

Exception ticking Brett (at (114, 0, 130)): System.NullReferenceException: Object reference not set to an instance of an object
at Verse.Verb.get_TerrainDefSource () <0x00019>
at Verse.Verb.TryCastNextBurstShot () <0x0056e>
at AbilityUser.Verb_UseAbility.WarmupComplete () <0x0003a>
at Verse.Stance_Warmup.Expire () <0x00022>
at Verse.Stance_Busy.StanceTick () <0x0002b>
at Verse.Stance_Warmup.StanceTick () <0x003bb>
at Verse.Pawn_StanceTracker.StanceTrackerTick () <0x0005d>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch1 (object) <0x00178>
at Verse.TickList.Tick () <0x00487>

Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Torann  [developer] Aug 24, 2018 @ 9:02am 
@the.pacel
Yep, looking into it. Affecting everything I'm working with that uses Jecstools so might be a dependancy issue.
< >
Showing 166-180 of 2,219 comments
Per page: 1530 50