[0.11.x] Factorio Maps

Topics and discussion about specific mods
User avatar
Phillip_Lynx
Filter Inserter
Filter Inserter
Posts: 541
Joined: Mon Jul 21, 2014 6:00 pm
Contact:

Re: [0.10.x] Factorio Maps

Post by Phillip_Lynx »

jeroon wrote:I've will change it for the next update. Until then, it's best to stay inside your base. Why you ever want to leave your base is beyond me anyway, but hey, peacefull mode and living on the edge! :mrgreen:
:)

I have encountert some aliens on this map (far far far to the north) ;)

And if I make a run to them and then my friend ask 'give me your map *NOW*' then I wish to toggle it ;). But as I say, this is my laziness.

And yeah, I would like if the awsome devs can put the ALT-info into the shots :)

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: [0.10.x] Factorio Maps

Post by jeroon »

Phillip_Lynx wrote:And yeah, I would like if the awsome devs can put the ALT-info into the shots :)
that, they will \o/
cube wrote:Also, from 0.11.0, there is a new showentityinfo flag.
Now all we can do is wait..

User avatar
Malachite
Inserter
Inserter
Posts: 27
Joined: Wed Jul 30, 2014 10:43 pm
Contact:

Re: [0.10.x] Factorio Maps

Post by Malachite »

I think it'd be quite nice if the default tile size could be set, or quite possibly just larger in general. Having 100k new files on generating a map can make things quite difficult when trying to upload to, say, google drive or dropbox.

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: [0.10.x] Factorio Maps

Post by jeroon »

Updated for 0.11.1

Changelog:
4 nov 2014: v0.4.0
- updated for 0.11.x Single Player (still works in 0.10.12)
- added entity (Alt) info option
- added option for tile size
- changed layout to one click
- added help text

User avatar
SuperSandro2000
Filter Inserter
Filter Inserter
Posts: 741
Joined: Sun Jan 12, 2014 3:54 am
Contact:

Re: [0.10.x] Factorio Maps

Post by SuperSandro2000 »

You forgott to change the title to 0.11.

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: [0.11.x] Factorio Maps

Post by jeroon »

good point :) fixed it.

jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: [0.11.x] Factorio Maps

Post by jeroon »

0.11.3 broke the mod, can't create a GUI in game.oninit anymore it seems, so small fix, it works again :)

Changelog:
17 nov 2014: v0.4.1
- Small change to make it work in 0.11.3

Salmelu
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Oct 25, 2014 7:18 pm
Contact:

Re: [0.11.x] Factorio Maps

Post by Salmelu »

Is it possible to use the mod in an existing save without this mod? It worked for me before on 0.10.x, but now on 0.11.6, it doesn't. I have a multiplayer game we've played with my friend for some time and now, I'd like to go to single player and make a map from the game, but no buttons are shown, it seems like the mod doesn't even load.
Any ideas?

User avatar
mngrif
Fast Inserter
Fast Inserter
Posts: 173
Joined: Wed Feb 13, 2013 10:44 am
Contact:

Re: [0.11.x] Factorio Maps

Post by mngrif »

Just reporting that this still works in 0.11.8 without issue.

https://lennier.info/factorio/FactorioM ... index.html
My Silly Factorian Tricks
<_aD> OBSERVE SIGNAL ASPECT BEFORE CROSSING TRACK

FeepingCreature
Inserter
Inserter
Posts: 21
Joined: Sat Dec 13, 2014 1:08 am
Contact:

Re: [0.11.x] Factorio Maps

Post by FeepingCreature »

Hey, useful info: if you use pngquant (http://pngquant.org/) you can usually significantly reduce the size of the generated PNGs for little to no quality loss.

I got my map data from 750MB to 110MB in exchange for slightly wrong colors.

n9103
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Feb 20, 2013 12:09 am
Contact:

Re: [0.11.x] Factorio Maps

Post by n9103 »

MS Paint, and any other image editor for that matter, will save as a PNG without needing to use a new piece of software.
I don't know for sure, but I'm gonna bet OSX and Linux have the equivalent installed by default.
That being said, I prefer Paint.Net for my screenshot editing/converting, as it has fine control of image lossy-ness and a few other settings (even dithering for when space matters most!), and has immediate feedback of the expected quality with a preview image.
I could be wrong, but I would bet that pngquant doesn't have a significant quality difference at the same size. Pngquant was specifically designed for this task, so I would expect *some* difference, but not enough to matter in a file format that's not meant to be used on photos. ;)
Colonel Failure wrote:You can lose your Ecologist Badge quite quickly once you get to the point of just being able to murder them willy-nilly without a second care in the world.

FeepingCreature
Inserter
Inserter
Posts: 21
Joined: Sat Dec 13, 2014 1:08 am
Contact:

Re: [0.11.x] Factorio Maps

Post by FeepingCreature »

Okay, to clear up some confusion.

pngquant is a "lossy PNG compression" tool. It does something fundamentally different from an image editor.

Usually, with an image editor, you want to save your PNG in full quality. PNG is a lossless format, so the only tweaks you can do to reduce size are compression algorithms (zlib) and clever encoding.

pngquant, however, does a trick - it deliberately reduces the image quality, by "quantizing" the image (reducing the number of colors) before saving it as a PNG, in a way that will lead to smaller PNG sizes (by using an indexed format instead of RGB).

Image editors normally don't do this by default because they assume that the user wants the best-quality image. In fact the idea of modifying the image data to enable better PNG compression is relatively recent. But it turns out you can achieve impressive gains this way - if a PNG is 600KB before pngquant, it might end up 100KB afterwards with slightly off-looking colors. (Or 200KB with perfect-looking colors.)

Now, the reason this approach does especially well with Factorio screenshots is that Factorio is a tiled game, which means the same colors are repeated for every tile. So while the number of possible colors is large, the number of actually used colors is usually relatively small. (At least, compared to 8-bit-per-channel RGB.)

Now it's possible that Paint.Net uses the same algorithm, but I'm pretty sure you don't want to load ~400 files in Paint.Net and save them again. That's when you need a commandline tool. :)

(Also the png compression of Microsoft's "stock" programs like MS Paint is usually horrible. Without any data loss, you can usually achieve filesizes two or three times smaller using lossless tools like pngcrush. Of course, this is irrelevant since this thread has nothing to do with system screenshots.)

psihius
Fast Inserter
Fast Inserter
Posts: 192
Joined: Mon Dec 15, 2014 12:47 am
Contact:

Re: [0.11.x] Factorio Maps

Post by psihius »

You should really add some process indication in the UI.

I'm trying to make a map of my MP game, and it's huge, well, F*****G GYNORMOUS. It took it around 6-7 minutes just to start writing files to disk, then it took a lot more time to actually do the writing, and I have a high-end SSD - I don't even wana think about poor HDD guys that will have to wait an eternity :)

Some UI feedback or at least warning texts would do a lot of good for the mod :)

Also, an abort button is needed. I just started a test run for 256x256 JPEG full size map - I'm at 66 000 files and counting, this was a mistake :D But the only thing I can do to stop it - kill the game, and that's not really a good way.

And are JPEG's progressive?

Frostea
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Jan 17, 2015 11:27 pm
Contact:

Re: [0.11.x] Factorio Maps

Post by Frostea »

Process indication would mean that the script that runs the screenshotting program would have to be async from the UI thread. I'm no LUA programmer, but I don't think that is even possible under the current LUA scripting interface for Factorio. Gonna need a dev to answer this. I think the current implementation is crude but it works. I am more concerned about the immense file size generated by the usage of PNG. It can probably be optimised through the use of PNGCrush. I'm now working on a third party program to reduce the size but preserve the quality, although it'll be for Windows only.

Edit: Well, my fellow internet wizards have apparently done the job for me already: http://pnggauntlet.com/

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: [0.11.x] Factorio Maps

Post by FreeER »

Frostea wrote:I'm no LUA programmer, but I don't think that is even possible under the current LUA scripting interface for Factorio
Not true async but Lua does have co-routines that can simulate it, as far as I'm aware those would work within Factorio as well.

psihius
Fast Inserter
Fast Inserter
Posts: 192
Joined: Mon Dec 15, 2014 12:47 am
Contact:

Re: [0.11.x] Factorio Maps

Post by psihius »

Okay, well, PNG just does not compress that good on photos and stuff like that, so I decided to try the JPEG at the moment, it clocked out at 5.6GB :) Because it takes like an hours to make the map, at this moment I do not wana try the PNG again :)

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

Re: [0.11.x] Factorio Maps

Post by Rseding91 »

Regardless of how the API calls the screenshots if you don't do them all in the same tick you'll get weird borders between areas and the game processes all screenshot requests at the end of the tick they're requested in so it won't impact performance differently.
If you want to get ahold of me I'm almost always on Discord.

mrtux
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Thu Dec 04, 2014 10:04 pm
Contact:

Re: [0.11.x] Factorio Maps

Post by mrtux »

Thanks for creating this nice mod. :)


However, it does not work for me: after creating about 5000 images Factorio just quits (0.11.16 with some mods). It looked like everything of the base had been covered for one zoom level. I could also observe that the memory usage suddenly went up. The Factorio logs did not contain anything useful.

Any idea?
If only my thesis could be done in Factorio …

User avatar
mngrif
Fast Inserter
Fast Inserter
Posts: 173
Joined: Wed Feb 13, 2013 10:44 am
Contact:

Re: [0.11.x] Factorio Maps

Post by mngrif »

What does "Grid size" affect?
My Silly Factorian Tricks
<_aD> OBSERVE SIGNAL ASPECT BEFORE CROSSING TRACK

Kane
Filter Inserter
Filter Inserter
Posts: 666
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: [0.11.x] Factorio Maps

Post by Kane »

My train stops don't seem to be showing up on the map. But besides that amazing mod :)

Post Reply

Return to “Mods”