[2.1.7] Undocumented resource parameters

User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 805
Joined: Sun May 07, 2017 10:16 am
Contact:

[2.1.7] Undocumented resource parameters

Post by ickputzdirwech »

I'm currently trying to understand how much of each resource is spawned and I noticed there are some parameters in the base game resource definitions that I can't find any explanation for. See for example

Code: Select all

base_density = 10,
regular_rq_factor_multiplier = 1.10,
starting_rq_factor_multiplier = 1.5,
candidate_spot_count = 22, -- To match 0.17.50 placement
in https://github.com/wube/factorio-data/b ... ua#L89-L92
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Bilka
Factorio Staff
Factorio Staff
Posts: 3816
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.1.7] Undocumented resource parameters

Post by Bilka »

These are used only in the lualib (they are not part of the prototype) and as such are currently not expected to be documented, since the lualib is currently undocumented. You may have some luck reading core/lualib/resource-autoplace.lua for how they are used by that method, since it's all in Lua.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”