radx5Blue / ImmersiveSolarArrays

ImmersiveSolarArrays for Project Zomboid
Apache License 2.0
36 stars 15 forks source link

Calculating total consumption is wrong when there are multiple items of the same name #56

Open neronim1141 opened 4 months ago

neronim1141 commented 4 months ago

Describe the bug When using items with the same name for example 'Popsicle Fridge' or 'White Industrial Fridge' or just lights the total consumption seems to rise exponentialy:

obraz_2024-04-29_015724883 obraz_2024-04-29_015733579 obraz_2024-04-29_015737325 obraz_2024-04-29_015742268 obraz_2024-04-29_015747289

items | consumption in Ah 0 | 16 1 | 120 2 | 224 3 | 432 4 | 744 5 | 1160 6 | 1680 desmos point plots scaled down for more representation: image

To Reproduce Steps to reproduce the behavior:

  1. build powerbank
  2. place few items with the same name nearby
  3. check consumption

Expected behavior I'm expecting the consumption to be additive, and it seems to work like that with items of different names, check the attached images image

neronim1141 commented 4 months ago

this seems to be GUI bug only It also seems to be affecting when drainCalc is set to 2 'regular Generator' with ISA setup its working correctly

Poltergeist-ix commented 3 months ago

This is game bug, not related to the mod itself. The setting regular Generator uses the vanilla consumption which is better in performance and follows the game updates automatically. The other setting can be used to customise the consumption of each device, however it requires more maintenance and can hinder performance.