Page 1 of 1

chunks coordinates /32 ?

Posted: Wed Jul 06, 2016 10:20 am
by binbinhfr
Hi,

http://lua-api.factorio.com/0.13.5/LuaS ... get_chunks

chunks coordinates are not "real-world" coordinates, but on a larger x32 scale.
That's what you are using when you are calling get_chunks() and is_chunk_generated(position)

I wonder if the request_to_generate_chunks(position, radius) function works in the same x32 coordinate reference, or in the real-world coordinates ?

I cannot really manage to check/test it...

So is any dev can confirmed ?

Re: chunks coordinates /32 ?

Posted: Wed Jul 06, 2016 5:19 pm
by Afforess
request_to_generate_chunks uses the real world coordinates. The radius is in chunks though. is_chunk_generated is in chunks.

Re: chunks coordinates /32 ?

Posted: Wed Jul 06, 2016 5:37 pm
by orzelek
It's a bit confusing to be honest.
Would be nice if there would be some consistent way of talking to chunk-based functions and automatic x/y to chunk coord conversion.