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 ?
chunks coordinates /32 ?
chunks coordinates /32 ?
My mods on the Factorio Mod Portal 

Re: chunks coordinates /32 ?
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 ?
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.
Would be nice if there would be some consistent way of talking to chunk-based functions and automatic x/y to chunk coord conversion.