Page 1 of 1

[Bug / modding request] Fluid finite patches amount isn't rightly calculated in map view if product amount > 1

Posted: Wed Aug 12, 2026 1:50 pm
by Néomorphos
Hi,
i found this bug while developping a mod, i guess given its repro conditions don't happen in vanilla i thought i should put it in here in modding requests.

What

If i define a resource patch containing fluids with a finite amount, its content estimation shown in map view doesn't take into account the amount of the product.
However, it does work on the hover panel (see next message) and for items resources (current messsage).

Reproduction

I define my resource patch with the following properties :

Code: Select all

infinite = false,
minable =  {
    mining_time = 900,  
    results = {
      {
        type = "fluid",
        name = "radioactive-sludge",
        amount = 4000,
      }
    }
},
When i create a single entity (through proc gen or manually) and give it a quantity of 100, then the map shows its content as 100, and not 100 * amount (which would be 400 000)
Capture d’écran 2026-08-12 153002.png
Capture d’écran 2026-08-12 153002.png (106.73 KiB) Viewed 110 times
Capture d’écran 2026-08-12 153026.png
Capture d’écran 2026-08-12 153026.png (98.24 KiB) Viewed 110 times

Now if I do the same process with an item product, it calculates the quantity taking amount into account :

Code: Select all

minable =
  {
    mining_time = 900,  
    results = {
      {
        type = "item",
        name = "low-radioactivity-rubble",
        amount = 4000,
      }
    }
},
Capture d’écran 2026-08-12 154530.png
Capture d’écran 2026-08-12 154530.png (106.73 KiB) Viewed 110 times
Capture d’écran 2026-08-12 154513.png
Capture d’écran 2026-08-12 154513.png (100.53 KiB) Viewed 110 times
Desired behavior
Fluids map estimation should take into account the amount of the product.

Re: [Bug / modding request] Fluid finite patches amount isn't rightly calculated in map view if product amount > 1

Posted: Wed Aug 12, 2026 1:57 pm
by Néomorphos
Side note : while the map estimation doesn't take amount into account, the hover panel does inclue it in its calculation.
I merged the former 2 resources in one for the demonstration (item amount decreased to 3000 as well) :
Capture d’écran 2026-08-12 155526.png
Capture d’écran 2026-08-12 155526.png (111 KiB) Viewed 103 times
Capture d’écran 2026-08-12 155600.png
Capture d’écran 2026-08-12 155600.png (1.1 MiB) Viewed 103 times