RimWorld

RimWorld

Roads of the Rim (Continued)
baronjutter Aug 23, 2021 @ 9:38am
Can't delete construction leg on top of existing road.
I have a single leg of a road construction I can't cancel or work on and every time I open the world map I get spammed with 900+ errors from the mod.

Exception drawing RoadConstructionLeg Road construction leg (tile=99602): System.NullReferenceException: Object reference not set to an instance of an object
at RoadsOfTheRim.RoadConstructionLeg.Draw () [0x00021] in <bc4d2fe769444e47aff53879a9b3c4b0>:0
at RimWorld.Planet.WorldDynamicDrawManager.DrawDynamicWorldObjects () [0x00038] in <00638943358e4807bd44cd7bc8f572da>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.Planet.WorldDynamicDrawManager:DrawDynamicWorldObjects ()
RimWorld.Planet.World:WorldUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()

Here's a screen shot of the situation. I'd love to be able to delete it and stop getting spammed with errors.
https://puu.sh/I60NM/cce72b2fdf.png
< >
Showing 1-2 of 2 comments
Amicus Feb 19, 2022 @ 3:03pm 
I have the same problem, would love some info if anyone has been able to fix this issue.
Amicus Feb 19, 2022 @ 3:24pm 
Found the fix!

Another note: My guess is that it would be best to do this while there aren't any other construction legs currently being worked on.

First you're going to need a text editor (I use Brackets, which is free). Once you have the editor of your choice you are going to want to head to the save file that the construction leg is on. In my case for windows, my saves are located here...

C:\Users\<User>\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Saves

After you locate and open the save file, you will want to go to the first like that contains "ConstructionLeg" (You can hit Ctrl + F to search the file). Once you find the start of the line you will see multiple bodies of code containing "ConstructionLeg". You want to delete every body of code containing that until there are none left. I should have copied the code to be able to paste in this discussion, but I had no clue that this would fix it. If anyone else can copy the body of code I'm talking and post about it in a reply, that would probably help! :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50