RimWorld

RimWorld

Replace Stuff - Continued
Bridge change causing error?
I just launched RW and got this (new) error. I see you updated ReplaceStuff recently and one of the patch notes mentions bridges. Unfortunately this seems to be breaking my entire base.

Error in static constructor of Replace_Stuff.PlaceBridges.BridgelikeTerrain: System.TypeInitializationException: The type initializer for 'Replace_Stuff.PlaceBridges.BridgelikeTerrain' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 33C51C4B] Duplicate stacktrace, see ref for original
--- End of inner exception stack trace ---
[Ref 44B40503]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <46372f5dadbf4af8939e608076251180>:0
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
- POSTFIX VanillaTradingExpandedEarly.Mod: Void VanillaTradingExpanded.Initializer:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch3 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()
< >
Zobrazuje se 115 z 18 komentářů
Yes, I'm having a similar issue. Half of my walls have disappeared and I can't rebuild them—error windows keep popping up.
Meme Goddess  [vývojář] 18. lis. v 17.30 
Is this with the new update? Can you verify your game files and check if the issue still happens
Naposledy upravil Meme Goddess; 18. lis. v 17.30
I downloaded the older version of the .dll, removed the line that was added in BridgelikeTerrain.cs, and everything is working fine again. You can download the older .dll from GitHub, and the file to modify is in Source/PlaceBridges line... 105 I think.
Meme Goddess původně napsal:
Is this with the new update? Can you verify your game files and check if the issue still happens

Yes, it's with the new update. (To future readers: new as of Nov. 19 2025.) Verifying game files, please stand by.
Meme Goddess  [vývojář] 18. lis. v 17.34 
There was an update to fix grav substructure being used to auto bridge, and that fix caused this issue. But I quickly released a fix for the null reference bug after that, verifying will force it to download the latest version ^.^
Meme Goddess  [vývojář] 18. lis. v 17.37 
If the issue is still happening, I'd love your mod list ^.^ If you could export it with RimSort via rentry, that'd be really helpful. Also your save file, since the issue doesn't happen at all for my saves
Game files verified. It didn't say there were any problems, but I don't know if it that means there were no problems. I double checked the .cs file and the line I removed hasn't been replaced so now I get to figure out how to force Steam to re-download a mod file.

Actually (and I'm sorry, but..) I'm going to just play with the older version of the mod under the assumption that this will be fixed soon. The fact that reverting the change fixed the problem seems a pretty clear indication that it's the source of the issue.
Mod list: https://rentry.co/a4p6i4h5

Where should I upload the saved game?
Meme Goddess  [vývojář] 18. lis. v 17.42 
Where ever works for you, something like Google Drive ^.^ Or you could send it to me on Discord
How do I reach you on Discord?
Meme Goddess  [vývojář] 18. lis. v 17.47 
Add me, {REDACTED}
Naposledy upravil Meme Goddess; 19. lis. v 20.40
I'm also having this issue as well. Part of my base walls are completely gone, a lot of my storage containers and most of my food from them as well. The same error is appearing when opening up the game.

Additionally: If I try to build walls or doors on top of where the items were originally, it completely freezes my game to where I have to Alt+F4.

I also verified my files via Steam, and the issue still persists. Just want to add to the post since it looks like only a couple of people before me has ran into this issue :)

I was playing yesterday and there were no issues beforehand, and this is the only mod on my list that got updated today, which is when I found it broken.
Meme Goddess  [vývojář] 18. lis. v 17.55 
Ok, I'm just going to revert the update. It seems enough people are having this issue, and I haven't got a clue how or why it's happening yet
Moon původně napsal:
Yes, I'm having a similar issue. Half of my walls have disappeared and I can't rebuild them—error windows keep popping up.

Same error.

Verified files twice.
Restarted workstation twice
Walls gone and if I try to place any the UI freezes.
Meme Goddess  [vývojář] 18. lis. v 18.03 
I've reverted the update now, seems there's some issue with it conflicting with another mod or something. If you're still having an issue, please verify your game files now to force it to download the current version
< >
Zobrazuje se 115 z 18 komentářů
Na stránku: 1530 50