Page 1 of 1

(Mini) map not updating when using lua to modify the content

Posted: Sun Sep 09, 2018 3:48 pm
by Anyone
I'm working on a custom scenario where I can dynamically alter the map. I need everything to be out-of-map and I will replace it will different tiles as the map progresses. Everything is working (sort of) fine, but I can't seem to fix the map. I create a new map with size 4x4 for example, which is to make sure I don't have to alter anything on the map other than my starting position. However, this narrows the (mini)map which I can't seem to get fixed. I've tried all sorts of charting functions on the LuaForce(s) to get it fixed, but no avail. Any idea how I can fix this?

Image

Re: (Mini) map not updating when using lua to modify the content

Posted: Sun Sep 09, 2018 8:30 pm
by Rseding91
You have to alter the surface size through setting a new surface.map_gen_settings with the new size.