Page 1 of 1

[2.0.76] --report-quantities didn't work as I expect

Posted: Fri May 15, 2026 9:07 am
by vinaghost
Or did it? (I'm not sure if this is a bug or not. If it is, can mod move it to Bug report, please ?)

While reading https://wiki.factorio.com/Command_line_parameters, I found --report-quantities
So below is my command

Code: Select all

"C:/Factorio/Factorio_2.0.76/bin/x64/factorio.exe" --generate-map-preview "E:\git\FactorioSeedFinder\preview-images\1002.png" --map-gen-seed 1002 --map-gen-settings "map-gen-settings.json" --report-quantities huge-rock
The huge-rock report is weird

Code: Select all

0.967 Info PlayerData.cpp:64: Local player-data.json available, timestamp 1778834973
   0.967 Info PlayerData.cpp:71: Cloud player-data.json unavailable
   0.972 Factorio initialised
   0.973 Initializing map preview generator: 1048576 pixels: 0,0...0,0; 1 meter per pixel
   0.981 Generating map preview: seed=1002
   1.995 huge-rock: totalEntityCount=0, totalRichness=0, minRichness=0, avgRichness=0.0000, maxRichness=0
   1.995 Map preview generation time: 1.013 seconds
   2.098 Goodbye
while with other ore entity it displays correctly

Code: Select all

"C:/Factorio/Factorio_2.0.76/bin/x64/factorio.exe" --generate-map-preview "E:\git\FactorioSeedFinder\preview-images\1002.png" --map-gen-seed 1002 --map-gen-settings "map-gen-settings.json" --report-quantities iron-ore,copper-ore,coal,stone,crude-oil,coal

Code: Select all

0.901 Initializing map preview generator: 1048576 pixels: 0,0...0,0; 1 meter per pixel
   0.918 Generating map preview: seed=1002
   1.962 coal: totalEntityCount=12396, totalRichness=505992037, minRichness=5, avgRichness=40818.9768, maxRichness=159285
   1.962 copper-ore: totalEntityCount=4807, totalRichness=88161525, minRichness=28, avgRichness=18340.2382, maxRichness=79647
   1.962 iron-ore: totalEntityCount=11365, totalRichness=283102256, minRichness=5, avgRichness=24910.0093, maxRichness=134006
   1.962 stone: totalEntityCount=4896, totalRichness=50677504, minRichness=5, avgRichness=10350.7974, maxRichness=48994
   1.962 crude-oil: totalEntityCount=127, totalRichness=477834485, minRichness=1357075, avgRichness=3762476.2598, maxRichness=9212336
   1.962 Map preview generation time: 1.043 seconds
   2.076 Goodbye
I can confirm this seed has huge-rock entity
05-15-2026, 16-00-31.png
05-15-2026, 16-00-31.png (3.17 MiB) Viewed 130 times
p.s.: one small question, can we have it extracted to the file? (I mean, right now I can just read from stdout but it is nice if it writes to a file)

Re: [2.0.76] --report-quantities didn't work as I expect

Posted: Fri May 15, 2026 10:33 am
by Loewchen
The question is not if the seed generates the entity but if the preview does. Can you confirm it generates in the preview?

Re: [2.0.76] --report-quantities didn't work as I expect

Posted: Fri May 15, 2026 12:26 pm
by vinaghost
Loewchen wrote: Fri May 15, 2026 10:33 am The question is not if the seed generates the entity but if the preview does. Can you confirm it generates in the preview?
It hard to see but you can see those rock here
05-15-2026, 19-26-37.png
05-15-2026, 19-26-37.png (301.92 KiB) Viewed 71 times