API request for ordinal autoplace modification

Things that already exist in the current mod API
Post Reply
Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

API request for ordinal autoplace modification

Post by Yehn »

It would be great if we could adjust autoplace "priority" so crowded placement of one item won't stop others from spawning. For example, if we want biter bases to take priority over other items in chunk generation to ensure biter placement isn't suppressed by other entities.

An alternate way to do this might be to have a penalty_on_overlap or similar - a drastic flooring of the noise magnitude when overlapping other autoplace noise that's sufficiently high to result in the placement of entities.

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: API request for ordinal autoplace modification

Post by Boodals »

I'm pretty sure this already exists: order

Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

Re: API request for ordinal autoplace modification

Post by Yehn »

Boodals wrote:
Mon Mar 04, 2019 6:56 am
I'm pretty sure this already exists: order
The lua API documentation does confirm an "order" field exists of type string, but doesn't explain at all how it works, what input it expects, etc...

Could you elaborate?

Thanks

Yehn
Fast Inserter
Fast Inserter
Posts: 111
Joined: Tue Jul 12, 2016 3:45 am
Contact:

Re: API request for ordinal autoplace modification

Post by Yehn »

So per the discord discussion, I tried modifying the order string - prepending it with "a" and then "z".

This had no effect, ie trees still blocked enemies from spawning during autoplace/chunk generation.

IronCartographer
Filter Inserter
Filter Inserter
Posts: 455
Joined: Tue Jun 28, 2016 2:07 pm
Contact:

Re: API request for ordinal autoplace modification

Post by IronCartographer »

At the very least, it might make sense for the priority of spawning to be changed in the base game: Biters are shown on the map preview, only to disappear in-game.

I have actually had a save "ruined" by this, but I went scouting and discovered the problem early.

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: API request for ordinal autoplace modification

Post by Boodals »

As discussed on discord, autoplace specification has its own order string.

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: API request for ordinal autoplace modification

Post by orzelek »

Are you sure that order will affect biters vs trees?

I had an impression that it's to be used for ores only.

Post Reply

Return to “Already exists”