Autoplace settings help needed

Place to get help with not working mods / modding interface.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Autoplace settings help needed

Post by Adil »

Could someone knowledgeable write autoplace parameters for me?
I want to make a lone entity that is spawned two-three times less often than ore and that tends to be away from biters and from starting area.
I'm trying struggle with the autoplace myself, but the results are nowhere near good and testing them takes much time.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Autoplace settings help needed

Post by bobingabout »

The rules were changed in 0.13, and are really weird. not that they weren't hard to understand before.

In fact, when 0.13 was first released, if you used regenerate_entity on an ore, it would fill the entire map.


I'd give you some advice, but I'd have to go through it again myself. I actually remember when I was trying to make bobores work for 0.13, I basically spend a couple of hours trying things out before I came up with something that actually worked (again, full map of ore issues). But I haven't looked at them again since I did this, so honestly, I'd have to relearn it myself before I can explain it. (The code to generate ore fields is actually in my library, not the ores mod. feel free to look at these functions if you think it will help you)

I do know though that starting area limitations (inside, or outside) are easy (Look at base game ores, they actually specify "Do this inside the starting area", and "Do this outside of the starting area" in their rules. This is so you get lots of small fields inside the starting area, increasing the chance you get some of everything, then you get fewer, but larger fields outside of it.) And biterphobia is possible, likely the easiest way is to just use a negative influence of the enemy noise layer, but that will just make it less likely to spawn near biters, it won't prevent it.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Autoplace settings help needed

Post by Adil »

Yeah, I fear dev guys will come around here and leave similar comment.

I've noticed the only way to prevent game spawning stuff everywhere is using that "coverage" field. I'm still struggling to get something reasonable from this.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Autoplace settings help needed

Post by bobingabout »

Just set it to something lower than what the base game ores are?
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Autoplace settings help needed

Post by Adil »

Nah, I've tried copying the oil setting and setting `coverage` to 0.005 and my entity stopped appearing altogether.
For now I've just slapped together a crappy function that will chose random spots at a variable distance from each other. I don't intend to have thousands of these, so it should be ok.
It's a pity that map generator was of no help here.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”