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-15 of 17 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!
It appears after one of the recent updates it caused pawns (specifically just my cook) to do the standing bug when they want to make food when we run out but can't because the refuelable stove shows that it has max fuel but it is actually out of fuel when you reload save. Its as if a patch recently accidentally made all refuelables show as full fuel at all times but only the ones in the left list are full fuel. There also is a bug every first time I load into a save with wall torchs that they are visually out but have fuel, so no light is coming from them making it look dark but in reality they are lit. That bug is also fixed with a quick reload but I am rushing to electricity now since the wall torchs seem to have a new bug every once in a while (I believe you fixed the one where they just spawn with no fuel and weren't refuelable but if you reload they have fuel again and are lit, the second bug I listed is just the same thing but without the no fuel indicator)
Jsin0  [developer] 21 Jul @ 8:52am 
I'm having trouble reproducing this bug. Can you post your error log and answer the next few questions?

  • Is this only with old saves?
  • Does it happen if you make a new game?
  • Does it happen if you reset the mod settings?
  • Reloading the game fixes it every time?
  • The wall torches are the only ones displaying the behavior?
  • Are the wall torches on the left list or the right list?

Thanks in advance.
1/2. Ive been through a number of saves over the past few days and was just about to make a new one here in a little while, the first bug I mentioned just started occuring after the July 19th update, this has been the only save ive played/started since that update.

3. I havent messed with any of the settings but ill try and resub to it and see if that fixes it.

4. Everytime I reloaded the save (quit to main menu then re load) it was fixed as in it allowed my pawn to refuel the stove that was out of fuel but before the reload said it was at 50/50.

5/6. It mostly seems like a visual glitch, the heat is fine from them still and they don't lose fuel, but its all dark. This is only for the first load up of the save though when I load up the game, if I leave it open and keep reloading save it doesn't repeat the issue. https://gyazo.com/edb3b7e497bcd2d6c8c0b44e525314bc
It seems as though I can no longer repeat the first bug even in my save from a day or so ago. The only thing that I have changed since then is resubbing as well as playing with wifi now (internet has been hit or miss the past few weeks). If I have it appear again ill let you know thanks. Wonder if that other guy was having the issue still though or not
Jsin0  [developer] 21 Jul @ 1:45pm 
Ah most likely the patch i uploaded later in the day fixed it
Jorggis 24 Jul @ 8:43am 
Originally posted by MikeTheDead:
1/2. Ive been through a number of saves over the past few days and was just about to make a new one here in a little while, the first bug I mentioned just started occuring after the July 19th update, this has been the only save ive played/started since that update.

3. I havent messed with any of the settings but ill try and resub to it and see if that fixes it.

4. Everytime I reloaded the save (quit to main menu then re load) it was fixed as in it allowed my pawn to refuel the stove that was out of fuel but before the reload said it was at 50/50.

5/6. It mostly seems like a visual glitch, the heat is fine from them still and they don't lose fuel, but its all dark. This is only for the first load up of the save though when I load up the game, if I leave it open and keep reloading save it doesn't repeat the issue. https://gyazo.com/edb3b7e497bcd2d6c8c0b44e525314bc

I'm currently getting this bug.
Each time i load my save. All braziers stop giving light.

Reinstalling all of them fixes it.
< >
Showing 1-15 of 17 comments
Per page: 1530 50