[MOD 0.11.X] MapConverter - edit maps as images

Topics and discussion about specific mods
ForFoxAche
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Aug 19, 2014 12:47 pm
Contact:

[MOD 0.11.X] MapConverter - edit maps as images

Post by ForFoxAche »

What is it?
For large-scale terraforming Factorio's map editor can be cumbersome, so I made a mod that exports maps to files and a program to convert those files into an image. This means you can use your favorite image editing program to edit a map and then convert that image and import it into Factorio.

I have tested this program on both Windows and Ubuntu on both my laptop and on my stationary, so I really hope it will work for you guys as well.

Right now it only import/export terrain tiles. I figured it would get kind of messy if you had to associate every entity (and direction of it) with a unique color, but if there's interest I can definitely add that.

If you want to, you can export your save, edit it, import it into the game and save it, and then convert it to a scenario and continue editing it in the map editor. Have a look at the wiki to find out how to convert it to a scenario
Installation
Usage
Parameters
tiles.txt
Help
Pictures
I hope I didn't forget anything.
Attachments
MapConverterLinux.zip
Linux version
(344.92 KiB) Downloaded 1361 times
MapConverterWindows.zip
Windows version
(932.62 KiB) Downloaded 1115 times
Last edited by ForFoxAche on Tue Jan 06, 2015 4:50 pm, edited 5 times in total.
OBAMA MCLAMA
Filter Inserter
Filter Inserter
Posts: 337
Joined: Fri May 30, 2014 4:23 am
Contact:

Re: [MOD 0.11.5] MapConverter - edit maps as images

Post by OBAMA MCLAMA »

Can we see some images of what it does?
When i stream twitch i always answer questions and try to help, come visit me.
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [MOD 0.11.5] MapConverter - edit maps as images

Post by ssilk »

Amazing...
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
ForFoxAche
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Aug 19, 2014 12:47 pm
Contact:

Re: [MOD 0.11.5] MapConverter - edit maps as images

Post by ForFoxAche »

OBAMA MCLAMA wrote:Can we see some images of what it does?
Absolutely! I edited the post to include some before/after pitctures
GhengizCohen
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jan 26, 2015 5:46 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by GhengizCohen »

this looks awesome!!

but on trying it out when loading the save so i can import the reconverted map into the game, new mod file loaded, it throws me an error:

NOTICE

__MapConverter__\control.lua:3:
__MapConverter__\mapdata.lua:252:
unexpected symbol near ','

any suggestions where im doing it wrong would be greatly appreciated.
if you need more info from me plz say so
might be a mod conflict
ForFoxAche
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Aug 19, 2014 12:47 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by ForFoxAche »

GhengizCohen wrote:this looks awesome!!

but on trying it out when loading the save so i can import the reconverted map into the game, new mod file loaded, it throws me an error:

NOTICE

__MapConverter__\control.lua:3:
__MapConverter__\mapdata.lua:252:
unexpected symbol near ','

any suggestions where im doing it wrong would be greatly appreciated.
if you need more info from me plz say so
might be a mod conflict
No it seems something went wrong when converting the map. How big is the save? Could you send me the save and the image?

EDIT: Just tried it locally and it works fine for me. Are you on Windows? Did you export a map, change it, then import it or did you just create a map and then import it?
GhengizCohen
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jan 26, 2015 5:46 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by GhengizCohen »

I have fixed it :)
What it was (I think) that in the editing program(paint.net) antialiasing was turned on, after I did another edit with it disabled it worked like a charm. Great stuff!! :))

Which leads me to a whole other question, can i use this program to remove a part of the map too?
What i want to do is remove explored zones so new ores(from MoMods the MoPower nuclear/uranium stuff) can spawn in those.
ForFoxAche
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Aug 19, 2014 12:47 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by ForFoxAche »

GhengizCohen wrote:I have fixed it :)
What it was (I think) that in the editing program(paint.net) antialiasing was turned on, after I did another edit with it disabled it worked like a charm. Great stuff!! :))

Which leads me to a whole other question, can i use this program to remove a part of the map too?
What i want to do is remove explored zones so new ores(from MoMods the MoPower nuclear/uranium stuff) can spawn in those.
That would do it!

Unfortunately you can't regenerate zones unless you do some LUA trickery (as far as I know)
GhengizCohen
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jan 26, 2015 5:46 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by GhengizCohen »

ForFoxAche wrote:
GhengizCohen wrote:I have fixed it :)
What it was (I think) that in the editing program(paint.net) antialiasing was turned on, after I did another edit with it disabled it worked like a charm. Great stuff!! :))

Which leads me to a whole other question, can i use this program to remove a part of the map too?
What i want to do is remove explored zones so new ores(from MoMods the MoPower nuclear/uranium stuff) can spawn in those.
That would do it!

Unfortunately you can't regenerate zones unless you do some LUA trickery (as far as I know)
Cool!
thanks for the fast reply
the new zones will regenerate when i explore them again though right? so that would be good enough for me.
ForFoxAche
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Aug 19, 2014 12:47 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by ForFoxAche »

GhengizCohen wrote:
ForFoxAche wrote:
GhengizCohen wrote:I have fixed it :)
What it was (I think) that in the editing program(paint.net) antialiasing was turned on, after I did another edit with it disabled it worked like a charm. Great stuff!! :))

Which leads me to a whole other question, can i use this program to remove a part of the map too?
What i want to do is remove explored zones so new ores(from MoMods the MoPower nuclear/uranium stuff) can spawn in those.
That would do it!

Unfortunately you can't regenerate zones unless you do some LUA trickery (as far as I know)
Cool!
thanks for the fast reply
the new zones will regenerate when i explore them again though right? so that would be good enough for me.
If you meant explored zones that you edited, then no, they shouldn't regenerate. If you meant unexplored zones you edited then I'm not sure if they will even be placed since they are unexplored. I'm not 100% sure how Factorio's map generation works, but maybe you can force it to regenerate chunks or just generate resources somehow.

If you meant unexplored zones that weren't edited at all and generated (like when you run to the edge of the map), then yes, they will generate.
waduk
Filter Inserter
Filter Inserter
Posts: 372
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by waduk »

How to load the map edited on this into user scenario Map Editor ?
If i use Map Exchange string, it's only shows up as the original generated map :(
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by ssilk »

Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
waduk
Filter Inserter
Filter Inserter
Posts: 372
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by waduk »

Thank you !
waduk
Filter Inserter
Filter Inserter
Posts: 372
Joined: Tue Feb 10, 2015 5:44 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by waduk »

Can you or someone update this mod to 0.12 ?
Mentok
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Apr 07, 2016 8:29 am
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by Mentok »

Is this still being updated?
When I have the mod in the folder and activated in-game, I get the following error at map generation or map loading:

Code: Select all

__MapConverter__/control.lua:7: LuaRemote doesn't contain key addinterface.
... which prevents the generation or load of the map. Very keen to get this solved :)
rayijin
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jul 30, 2017 8:52 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by rayijin »

Hello, I am working on updating this. Can the author provide source code for the PNG to data converter app?
User avatar
jamiechi1
Filter Inserter
Filter Inserter
Posts: 266
Joined: Wed Jan 03, 2018 10:12 pm

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by jamiechi1 »

It would be very useful if someone could resurrect this mod.
Dangerdino30
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Dec 09, 2020 9:15 pm
Contact:

Re: [MOD 0.11.X] MapConverter - edit maps as images

Post by Dangerdino30 »

is this mod going to be updated to 1.0?
Post Reply

Return to “Mods”