[0.1x.x] [Harkonnen] Huge bias in biter north expansion

This subforum contains all the issues which we already resolved.
MagmaMcFry
Inserter
Inserter
Posts: 37
Joined: Sun Jul 17, 2016 9:05 pm
Contact:

[0.1x.x] [Harkonnen] Huge bias in biter north expansion

Post by MagmaMcFry »

Biters seem to build new nests (not the worldgen ones, Klonan!) almost exclusively in the northern hemisphere.

This bug may have been in the game for a very long time already, I think this has happened in all the worlds I've played, even in 0.12. After having this happen to ridiculous extents in my current world, I decided to experiment with it to see if this was actually a thing or whether I was just going insane (because I've found no other mention of this anywhere on the Internet).

Steps to reproduce and log:

- Get yourself the attached scenario
- Disable autosave, because we're gonna go fast
- Launch the scenario, using the default worldgen preset, with the following settings modified:
-- Set peaceful mode to yes (Edit: no), biter frequency to low and starting area to large (to give the biters room to expand)
-- In the advanced settings tab, set biter expansion groupsize and cooldown as low as possible
- Hit "Generate", then idle for a while as the scenario does all the work for you. if you like you can look at the map with the show_enemy_expansion_chunk_candidates debug setting enabled
- Look in the script-output folder for a log of the results

Example output:

Code: Select all

Spawner built in NE quadrant (553, -942)
Spawner built in NE quadrant (439, -878)
Spawner built in NW quadrant (-245, -853)
Spawner built in NE quadrant (40, -909)
Spawner built in NE quadrant (462, -971)
Spawner built in NE quadrant (578, -528)
Spawner built in NE quadrant (199, -781)
Spawner built in NW quadrant (-633, -187)
Spawner built in NW quadrant (-346, -552)
Spawner built in NW quadrant (-247, -582)
Spawner built in NE quadrant (973, -237)
Spawner built in NW quadrant (-557, -895)
Spawner built in NW quadrant (-430, -225)
Spawner built in NE quadrant (712, -742)
Spawner built in NE quadrant (158, -951)
Spawner built in NW quadrant (-490, -322)
Spawner built in NE quadrant (955, -804)
Spawner built in NE quadrant (737, -645)
Spawner built in NE quadrant (926, -795)
Spawner built in NW quadrant (-848, -591)
Spawner built in NW quadrant (-244, -859)
Spawner built in NW quadrant (-587, -938)
Spawner built in NW quadrant (-872, -640)
Spawner built in NE quadrant (745, -964)
Spawner built in NW quadrant (-470, -809)
Spawner built in NE quadrant (472, -758)
Spawner built in NW quadrant (-37, -593)
Spawner built in NW quadrant (-429, -571)
Spawner built in SW quadrant (-971, 365)
Spawner built in NW quadrant (-276, -878)
Spawner built in NW quadrant (-257, -748)
Spawner built in NW quadrant (-242, -487)
Spawner built in NW quadrant (-493, -632)
Spawner built in NE quadrant (731, -502)
Spawner built in NW quadrant (-161, -574)
Spawner built in NW quadrant (-144, -829)
Spawner built in NE quadrant (318, -643)
Spawner built in NW quadrant (-606, -854)
Spawner built in NW quadrant (-438, -622)
Spawner built in NW quadrant (-355, -470)
Spawner built in NW quadrant (-986, -386)
Spawner built in NW quadrant (-624, -328)
Spawner built in NW quadrant (-636, -81)
Spawner built in NW quadrant (-143, -824)
Spawner built in NE quadrant (651, -595)
Attachments
biter_expansion_test.zip
(709 Bytes) Downloaded 152 times
Last edited by MagmaMcFry on Mon May 01, 2017 5:46 am, edited 3 times in total.
I don't visit the forum very often. If you want to contact me, message me on the mod portal for Factorissimo-related things, or on Discord.
sparr
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by sparr »

Thanks for being so thorough!
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5286
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by Klonan »

I did a small test, and the results are surprising:

Image

Was my methodology wrong?
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by orzelek »

Tbh Klonan result of your test must be wrong :D
Having biters expand that evenly is.. least likely scenario unless it's implemented like that.

In general I seen some strange behaviour when testing RSO and expansion on 0.14 were biters seemed to have preference in settling in certain areas. I did that after some bug reports from people that biters were not seen expanding with RSO. I didn't have big sample of tests so didn't try to report anything but north preference is indeed possible.
RSO makes bases much less frequent so preference of biter bases for expansion in certain areas would be more visible then.
MagmaMcFry
Inserter
Inserter
Posts: 37
Joined: Sun Jul 17, 2016 9:05 pm
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by MagmaMcFry »

Klonan, I'm not talking about worldgen, I'm talking about biter expansion, the part where biters group together and build new nests while the game is running.
I don't visit the forum very often. If you want to contact me, message me on the mod portal for Factorissimo-related things, or on Discord.
I_IBlackI_I
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Wed Feb 20, 2013 6:57 pm
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by I_IBlackI_I »

So would a better test method be this?

Remove all biters from 1000,1000 500,-1000 and -1000,1000 -500, -1000.
Give the game some time for them to expand.
Count the amount of spawners in the area defined above.
MagmaMcFry
Inserter
Inserter
Posts: 37
Joined: Sun Jul 17, 2016 9:05 pm
Contact:

Re: [0.1x.x] Huge bias in biter expansion to northern hemisphere

Post by MagmaMcFry »

It seems that none of you have actually taken a look at the scenario I provided. It automatically logs every single on_biter_base_built event with its coordinates and quadrant. As you can see from the scenario log I provided, and also as you can literally watch happening if you have show_enemy_expansion_candidate_chunks enabled while you're running the scenario, the biters greatly prefer to resettle in the north.
I don't visit the forum very often. If you want to contact me, message me on the mod portal for Factorissimo-related things, or on Discord.
Harkonnen
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Sep 02, 2016 9:23 am
Contact:

Re: [0.1x.x] [Harkonnen] Huge bias in biter north expansion

Post by Harkonnen »

I think I know the reason. Just one thing - you cannot replicate that in peaceful mode because biters do not expand in it.

EDIT: Fixed for coming release. Thanks for report :) Sanity has been restored.
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.1x.x] [Harkonnen] Huge bias in biter north expansion

Post by orzelek »

Harkonnen wrote:I think I know the reason. Just one thing - you cannot replicate that in peaceful mode because biters do not expand in it.

EDIT: Fixed for coming release. Thanks for report :) Sanity has been restored.
Out of curiosity - what was causing this?
Harkonnen
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Sep 02, 2016 9:23 am
Contact:

Re: [0.1x.x] [Harkonnen] Huge bias in biter north expansion

Post by Harkonnen »

Once in a while code selects several random chunks, and of them all it picks one with highest expansion score. If there are several chunks with same highest score, it would always pick topmost one (and of topmost ones leftmost one). The fix was to select random chunk out of all chunks with highest score.
User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: [0.1x.x] [Harkonnen] Huge bias in biter north expansion

Post by StoneLegion »

Damn... My friend goes south east and I went north east :P Now I'm starting to see why :P
Post Reply

Return to “Resolved Problems and Bugs”