RimWorld
Short Circuit Blues
Supes 2021년 5월 8일 오전 4시 48분
Breakdown to flick error
Supes here, I recently updated Powerlogic, and although I haven't made any code or def changes to my fuses, I'd thought I'd check that this mod still works.

what I noticed was that the breakdown-to-flick option is broken, but I think that's because no flicker comp has been added to the fuses (I saw the commented out operation in the ShortCircuit_Patches.xml, which might have broken this).

Just thought you should know :)
< >
전체 댓글 4개 중 1~4개 표시 중
blues  [개발자] 2021년 5월 25일 오전 11시 35분 
Thanks for your interest and notice, Supes.
I vaguely remember the flick thing. I commented that patch out because i was able to flick'em without the comp, not sure how.
If you say so, maybe it was a double patch somewhere i didn't realize. I will check it whenever possible.
blues  [개발자] 2021년 5월 25일 오후 12시 23분 
And, yes. It was the commented out patch. I'll uncomment it, and with some little checkup I'm going to push an update.
Supes 2021년 5월 25일 오후 10시 53분 
('sallgood) blues 님이 먼저 게시:
I commented that patch out because i was able to flick'em without the comp, not sure how.

It's certainly possible, though you cant use RimWorld.FlickUtility for that. If you want to do it without patching in a flickable, then you'd have to designate directly while skipping the flickable comp stuff.

you'd need to remove this code (no flickable patched means it's trying to access a property (SwitchIsOn) on a null)
CompFlickable comp2 = b.GetComp<CompFlickable>(); if (!comp.BrokenDown && comp2.SwitchIsOn && flag3) { comp2.DoFlick(); FlickUtility.UpdateFlickDesignation(b); PatchPowerLogic.fused = true; __result = true; return false; }

and replace it with this code
Designation designation = b.Map.designationManager.DesignationOn(b, DesignationDefOf.Flick); if (designation == null) { b.Map.designationManager.AddDesignation(new Designation(b, DesignationDefOf.Flick)); PatchedPowerLogic.fused = true; __result = true; return false; }
blues  [개발자] 2021년 5월 26일 오후 12시 30분 
I wasn't looking but, that's a pretty bypass and it works as it is. I might use it right away.
Btw, the flag3 is "luck". It calculates the fuse activating chance.

I didn't try any bypass like this when it worked back then, I just forgot to add the patch to the file but it was still working. Still baffles me what was it :)

Thanks again Supes.
< >
전체 댓글 4개 중 1~4개 표시 중
페이지당 표시 개수: 1530 50