Factorio World


Mod that changes the world generation to be a real-world map. Two world maps to choose from: "Atlantic" and "Pacific".

Content
2 years ago
0.14 - 1.1
7.12K
Environment

i Add a Settings file, take advantage of this new feature!

6 years ago

I was playing with your mod and figured it would be nice if you added a settings file. This means you wont have to unzip the mod to change the map scale. Here is what I came up with and hope you add to your mod.

In the control.lua
--Choose your scale here!
--local scale = 6
local scale = settings.global["map-gen-scale"].value

In a new setting.lua I made
data:extend
{
{
type = "string-setting",
name = "map-gen-scale",
setting_type = "runtime-global",
default_value = 6,
allowed_values = {6, 12, 18, 24},
order = "a"
},
}

This mad a mod settings entry in game that let me change the map scale without having to change the control.lua each time. You would have to add localization.
[mod-setting-name]
map-gen-scale=Map Size

This type of setting has a drop down menu with the following scales {6, 12, 18, 24}

There setting is a great new feature from 0.15 and it is fairly customize-able! I hope you will consider adding this to mod.

3 years ago

Done :D A while ago. But never knew there were discussions here, so sorry I never got back to you.

New response