Page 1 of 1

Modding limits of ore units for the different density graphics

Posted: Tue Mar 03, 2020 10:19 pm
by Philuminati
Hello,

I made this mod "https://mods.factorio.com/mod/endless_resources" a few months ago and there is one thing that bothers me a little but I don't know how to fix this. The mod basically makes all ore patches have at least a four digit number of ores in it. But this causes them to always show their graphic with the highest desity. My question is how do I change the ore limits for the graphics to display (e.g. make the lowest density visible until over 2000 units or whatever)? I didn't find the ore prototypes in the game files.

Thanks in advance,

Phil

Re: Modding limits of ore units for the different density graphics

Posted: Tue Mar 03, 2020 10:31 pm
by Deadlock989
https://wiki.factorio.com/Prototype/Res ... age_counts

See base/prototypes/entity/demo-resources.lua. The stage counts definition looks something like this, giving the cut off points for the change in sprite:

Code: Select all

stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},

Re: Modding limits of ore units for the different density graphics

Posted: Wed Mar 04, 2020 6:44 pm
by Philuminati
Thank you! I don't know why I didn't see demo-resources... :?