RimWorld

RimWorld

Backup Power
[BUG] Generator being destroyed
Basically my player log is filled with this x6000

Exception ticking BackupPower_Attachment410004 (at (161, 0, 129)): System.ArgumentException: hashset does not contain this item
Parameter name: item
at BackupPower.Utilities.RemoveSafe[T] (System.Collections.Generic.HashSet`1[T] set, T item) [0x0001c] in <3d58430db64d4cf98f2491cef2c412b9>:0
at BackupPower.MapComponent_PowerBroker.DeregisterBroker (BackupPower.Building_BackupPowerAttachment broker, Verse.Map map) [0x00010] in <3d58430db64d4cf98f2491cef2c412b9>:0
at BackupPower.Building_BackupPowerAttachment.Destroy (Verse.DestroyMode mode) [0x00000] in <3d58430db64d4cf98f2491cef2c412b9>:0
at BackupPower.Building_BackupPowerAttachment.Tick () [0x00070] in <3d58430db64d4cf98f2491cef2c412b9>:0
at Verse.TickList.Tick () [0x0015c] in <032d0428bd3b4871b44e7cd832eb5c58>:0

If needed I can post whole log
< >
Showing 1-7 of 7 comments
Fluffy  [developer] 4 May, 2020 @ 1:52pm 
yes please! (a link to it would be enough, please don't post the whole log).
Chuman 4 May, 2020 @ 1:59pm 
Looks like someone posted the player log for the same error I get. Thanks!
TheologyOfDeath 4 May, 2020 @ 2:05pm 
Here's a paste of the log
https://pastebin.com/zV4ccWpq
Fluffy  [developer] 4 May, 2020 @ 2:15pm 
can you confirm if this still happens with the latest version?
TheologyOfDeath 4 May, 2020 @ 2:28pm 
Well, the box is now destroyed, however the generator is still deconstructed - as a job, not instantly. Happens with wood and Chemfuel generators
Fluffy  [developer] 5 May, 2020 @ 1:52am 
Turns out I had several bugs, one of which was causing the errors - I fixed that yesterday night.

The bigger one was that I never actually tested 'properly' building the boxes, I just assumed God Mode plopping them would work the same way. Turns out it didn't. The solution ended up being fairly simple (just a simple flag in the defs), but it took a bit of digging to find out how to get it behaving properly.

Anyway, this should now be resolved. Thanks for your help and patience!
b1nb4sh 5 May, 2020 @ 2:44pm 
@Fluffy Thanks the bug is solved. Backup Power is working :D
< >
Showing 1-7 of 7 comments
Per page: 1530 50