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

Place to get help with not working mods / modding interface.
Post Reply
Anyone
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Mon Apr 25, 2016 11:02 am
Contact:

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

Post 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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13202
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

You have to alter the surface size through setting a new surface.map_gen_settings with the new size.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding help”