Page 1 of 1

request_to_generate_chunks

Posted: Fri Apr 29, 2016 9:43 pm
by Finndibaenn
Hi

I'm trying to use this api (introduced in 0.12), but i'm not sure what parameters to provide .

According to http://lua-api.factorio.com/0.12.31/Lua ... ate_chunks it expects
Parameters
position :: Position: Where to generate the new chunks.
radius :: uint: Radius from position to generate new chunks in.
are position and radius tiles ? or chunks ? or different units ?

when listening to on_chunk_generated i don't seem to receive creation events for the chunks i requested

Re: request_to_generate_chunks

Posted: Sat Apr 30, 2016 9:18 am
by Finndibaenn
I seem to have finally figured it out.
If anyone is interested, position is tilebased (eg player.position()), but radius is chunk based , eg 2 will request 2 blocks (each 32 tiles wide) aroud that position

Re: request_to_generate_chunks

Posted: Sun Jul 31, 2016 10:34 am
by SirRichie
Thanks! This actually helped me

Re: request_to_generate_chunks

Posted: Sun Jul 31, 2016 10:51 am
by orzelek
Docs might need to be amended to include this info.