Page 1 of 1

Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 4:41 pm
by killerinstinct171
EDIT: Ignore this. See the replies below.

Hello,

If you, like me, by mistake or intentionally, have started a map with a set limit size, have put a lot of hours into your save, and now you want to remove the map size limit, you probably found out that this is not possible. Chances are that you found some mods that promised to do this but they didn't work. So here is a tutorial for a solution that has worked for me in version 1.1.

The solution involves downloading a couple mods, including a deprecated one, and changing some lines of code.

Disclaimer: I am not a modder and barely know what I am doing, chances are that there is a easier way to acomplish the solution. I managed to make this work because I know a little about programming stuff. Make a backup of your save files before trying to do this and do it at your own risk!

So here you go:

STEP 1 - MODS
Download the mods from the links below (or from inside the game)
https://mods.factorio.com/mod/map_size_adjustment (Map Size Adjustment)
https://mods.factorio.com/mod/regenerate-terrain (Regenerate Terrain)

Put them into your mods folder. Usually the path is something like C:\Users\<your username>\AppData\Roaming\Factorio\mods

STEP 2 - Update Map Size MOD to be compatible with version 1.1
-Open the zipped map size adjustment mod. I use winrar for this. Warning: Don't unzip it
-Open info.json file with notepad (Use notepad for every file to be opened)
-Change the following line:
From -> "factorio_version": "0.16",
To -> "factorio_version": "1.1",
-Close and save the file
-If you are using winrar, you will be asked to update the file after the modifications. Accept it. You have to do the same if you are using a different program to open the zip file.

-Now open data.lua
Change the 2 identical lines like the following:
From -> consuming = "script-only"
To -> consuming = "game-only"

STEP 3 - Update Regenarate terrain MOD
-Open the zipped Regenerate Terrain mod
-Open control.lua file
-Scroll down the code until you find the following line:
-> if chunk.x == 0 and chunk.y == 0 then
You have to change this line with the following:
-> if chunk.x < [xlimit] and chunk.y < [ylimit] then
substituing [xlimit] and [ylimit] with the numbers that you have set for the X and Y map size limits. Don't include brackets, put only the numbers
->>>Note: this is necessary in order to avoid the mod regenerating terrain that you have already explored and modified in your game, like respawing trees, resource patches and etc. I think that this has a chance to break your game if done incorrectly.<<<
Close and save the file
Update the zip file

STEP 4 - Do the stuff
-Open Factorio
-Enable both mods
-Load your saved game
-Once loaded press "Ctrl+Shift+W" and then press "Ctrl+Shift+H". This will remove the map size limit. You will get confirmation messages in the console.
-Now activate regenerate terrain mod by clicking on the very tiny button to the right of the quick bar. You will then see a menu containing the "Regenerate Terrain" option. Click on it.
-You will get a warning before proceeding. Click on confirm. Factorio will freeze for some time (It froze for about a minute for me).

STEP 5 - Enjoy your unlimited map :)

I hope you find this helpful. It saved my 50 hour game that I was about to give up.

Let me know it it worked for you ;)

All the best!

Re: Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 4:45 pm
by Klonan
killerinstinct171 wrote:
Mon Jul 19, 2021 4:41 pm
If you, like me, by mistake or intentionally, have started a map with a set limit size, have put a lot of hours into your save, and now you want to remove the map size limit, you probably found out that this is not possible.
You can change the map size with the /editor
factorio-run_2021-07-19_18-45-02.png
factorio-run_2021-07-19_18-45-02.png (166.17 KiB) Viewed 2218 times

Re: Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 4:51 pm
by killerinstinct171
Well I guess that there is an easier way indeed :)

What mod is that? Does it work even after you reached the border of the map? (after revealing the void chunks)

Re: Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 4:57 pm
by NotRexButCaesar
killerinstinct171 wrote:
Mon Jul 19, 2021 4:51 pm
What mod is that?
It is not a mod. You can access it in the base game by typing

Code: Select all

/editor
into the console—sc. the console is often named the chat.


killerinstinct171 wrote:
Mon Jul 19, 2021 4:51 pm
Does it work even after you reached the border of the map? (after revealing the void chunks)
It will work, but only on newly generated chunks.

To regenerate the devoid chunks you can use the “remove empty chunks” feature.

Re: Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 4:58 pm
by Klonan
killerinstinct171 wrote:
Mon Jul 19, 2021 4:51 pm
Well I guess that there is an easier way indeed :)

What mod is that? Does it work even after you reached the border of the map? (after revealing the void chunks)
Its the base game map editor, use /editor to open it

Re: Remove map size limit after the start - Solution Tutotial for 1.1

Posted: Mon Jul 19, 2021 5:10 pm
by killerinstinct171
Alright, thanks for the info :)