Page 1 of 1

Autoplace settings help needed

Posted: Mon Feb 13, 2017 10:13 pm
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.

Re: Autoplace settings help needed

Posted: Tue Feb 14, 2017 10:39 am
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.

Re: Autoplace settings help needed

Posted: Tue Feb 14, 2017 4:33 pm
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.

Re: Autoplace settings help needed

Posted: Wed Feb 15, 2017 11:22 am
by bobingabout
Just set it to something lower than what the base game ores are?

Re: Autoplace settings help needed

Posted: Wed Feb 15, 2017 4:23 pm
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.