RimWorld

RimWorld

Lagless Lamps - C#
 This topic has been pinned, so it's probably important
Jsin0  [developer] 24 Apr @ 11:23pm
Bug Reports
Something not working right? Say it here.
< >
Showing 1-9 of 9 comments
Absurde 10 May @ 8:15am 
I believe there's a bug if the settings are set to tick interval. All my refuellables are burning out way faster than normal and it seems proportional to the tick rate set in the settings. So in my case 10x faster. Moreover, if I go into settings or reload a save, the same 10x multiplier gets applied again on top. Essentially opening and closing the settings a couple of times makes things burn out in under a second. I made sure the mod is updated, and when I rerolled to an older version things return to normal, but I'm not 100% on whether that's the may 4th or an earlier update.
Jsin0  [developer] 10 May @ 10:58am 
I see what happened. I didn't patch the code responsible for telling you how much time is left until fuel runs out so it gave the impression that fuel was burning faster but whenever you opened and closed the mod setting, it reapplied the patches but to the already scaled fuel consumption rate.

I've changed the code so the patches don't reapply when you close the menu but that means any changes need a restart to apply properly.

The tooltip has been patched so it should show a more accurate countdown now
Absurde 10 May @ 11:42am 
Thanks for the fix! Seems to work fine again now.
Absurde 17 May @ 1:51am 
I noticed another minor issue since the fix:

there is some logging that you might have left turned on, because my log keeps filling up and hitting max message limits if I have a fuelable building selected.
Messages like " Fuel: 15 / 15 (18 hours)|20|450000|7.5 days "
Could you hide this behind the debug mode setting perhaps? And probably also to make it fire only once per building being selected, since as it is it takes just a few seconds to generate over a thousand messages.
Last edited by Absurde; 17 May @ 1:52am
Jsin0  [developer] 17 May @ 4:51pm 
Oops, I forgot to take that out. Will patch soon
Absurde 19 May @ 9:19am 
Got one more unfortunately, and this one seems to be present with multiple previous versions in may (the april 27th version is fine though). Selecting one of the refuelable buildings that doesn't get patched (in this case the rustic cooking table from MO) gives this error:

GetInspectString exception on DankPyon_RusticCookingTable2394002:
System.ArgumentOutOfRangeException: Count cannot be less than zero.
Parameter name: count
[Ref 85E4FCAF]
at System.String.Remove (System.Int32 startIndex, System.Int32 count) [0x0002c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at LaglessLamps.Startup+CompRefuelable_CompInspectStringExtra_Patch.Postfix (System.String& __result, RimWorld.CompRefuelable __instance) [0x0007c] in <3c550387f5914acc9280ee9ad624eff1>:0
at RimWorld.CompRefuelable.CompInspectStringExtra () [0x001ce] in <1d3901981bf845c4a969d40122c14f9e>:0
- POSTFIX Jsin.LaglessTorches.Harmony: Void LaglessLamps.Startup+CompRefuelable_CompInspectStringExtra_Patch:Postfix(String& __result, CompRefuelable __instance)
at Verse.ThingWithComps.InspectStringPartsFromComps () [0x00020] in <1d3901981bf845c4a969d40122c14f9e>:0
at Verse.ThingWithComps.GetInspectString () [0x00013] in <1d3901981bf845c4a969d40122c14f9e>:0
at RimWorld.InspectPaneFiller.DrawInspectStringFor (Verse.ISelectable sel, UnityEngine.Rect rect) [0x00000] in <1d3901981bf845c4a969d40122c14f9e>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

The text is also present in the display window of the selected building, but only if the building has any fuel. If it's empty, there's no error.
Last edited by Absurde; 19 May @ 9:21am
Jsin0  [developer] 19 May @ 9:25pm 
Should be fixed now
Absurde 21 May @ 1:09pm 
I'm sorry it's one by one, but I keep finding them this way: I noticed campfires, when in use for bills, burn out very fast. When not in use they obey the tick delay, but it looks like when bills are being done on them they revert to burning fuel every tick and at the multiplied rate. I've not checked, but it's likely this is the case for every building which burns all the time and also has bills.
Jsin0  [developer] 21 May @ 5:43pm 
Don't apologize! Your reports are very helpful!
< >
Showing 1-9 of 9 comments
Per page: 1530 50