Modding limits of ore units for the different density graphics

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Philuminati
Inserter
Inserter
Posts: 35
Joined: Sun Aug 05, 2018 1:04 am
Contact:

Modding limits of ore units for the different density graphics

Post 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

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2528
Joined: Fri Nov 06, 2015 7:41 pm

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

Post 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},
Image

User avatar
Philuminati
Inserter
Inserter
Posts: 35
Joined: Sun Aug 05, 2018 1:04 am
Contact:

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

Post by Philuminati »

Thank you! I don't know why I didn't see demo-resources... :?

Post Reply

Return to “Modding help”