Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide clouds when issuing screenshots #50

Open
robertmassaioli opened this issue Oct 31, 2024 · 9 comments
Open

Hide clouds when issuing screenshots #50

robertmassaioli opened this issue Oct 31, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@robertmassaioli
Copy link

Is it just me, or did pollution used to not show up in the map: https://factorio-maps.rmdir.app/app/save/2024-England/mapshot/429c1e97/

And now it does: https://factorio-maps.rmdir.app/app/save/2024-England/mapshot/c6c40e88/

@Palats
Copy link
Owner

Palats commented Nov 2, 2024

I did not change anything in that regard. And the mod is using Factorio API take_screenshot, so options are limited in any case.

Though looking the provided links - the only thing I see different are the darker spots. But those look quite a bit random and not matching pollution (which is also per chunk). Maybe that's just more Factorio cosmetic bits.

@Palats
Copy link
Owner

Palats commented Nov 2, 2024

I've checked with basically an empty save - and the dark spots are there. I'll assume that it is a change in rendering & appearance introduced by Factorio 2.0. It does not react well with zooming/unzooming in mapshot, but there is not much I can do for that.

@Palats Palats closed this as completed Nov 2, 2024
@robertmassaioli
Copy link
Author

Fair enough, I might submit a bug report to Factorio directly then and see if I can't get them to turn off pollution clouds as an option at the very least.

@robertmassaioli
Copy link
Author

@robertmassaioli
Copy link
Author

robertmassaioli commented Nov 7, 2024

Hey, apparently these are clouds @Palats and we can turn them off with this maybe? https://forums.factorio.com/viewtopic.php?t=85568&utm_source=perplexity

If that is true can this issue be reopened?

@Palats
Copy link
Owner

Palats commented Nov 7, 2024

Oh, good catch indeed - and going through the LuaSurface might also be interesting for other things too.

I'm not sure I'll have time to do it in the next few days, but that does look promising indeed.

@Palats Palats reopened this Nov 7, 2024
@Palats Palats changed the title Pollution in the map now? Hide clouds when issuing screenshots Nov 7, 2024
@Palats
Copy link
Owner

Palats commented Nov 14, 2024

So, show_clouds does work. However, I cannot just restore the value of show_clouds once the take_screenshot have been issued - it must be set to false until all the screenshots are finished. I'm not sure yet how I'm going to do that:

  • When triggering a one time screenshot from the CLI, there is an explicit step waiting for screenshots to be made. It should be possible to clean things there, though it would require some more structure than I have in my prototype.
  • When triggering from the /mapshot command, there is currently nothing blocking on getting screenshot. I could add it, but that would change the behavior - I need to check if that's acceptable.

@robertmassaioli
Copy link
Author

robertmassaioli commented Nov 14, 2024

That all makes sense, I'm just happy to hear that you have started looking into it. Thanks!

FWIW I always use the CLI because I've scripted it so that not only does it generate the mapshot but if also uploads it to my site

Palats added a commit that referenced this issue Nov 17, 2024
When zoomed out, clouds make for weird artifact, so deactivate them.
Unfortunately, that only works when rendering from the CLI. I've tried
doing the same when using the `/mapshot` in-game command, but I have not
found away to restore the clouds settings in that case. Even waiting for
the end of screenshotting & a tick does not seem to be enough.

Issue #50
@Palats Palats added the bug Something isn't working label Nov 17, 2024
@Palats
Copy link
Owner

Palats commented Nov 17, 2024

Version 0.0.26 should be hiding the clouds automatically when rendering from the CLI. For the in-game /mapshot command, I have failed to find a way to restore the clouds after the screenshots - it seems that waiting for the shots and an extra tick does not cut it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants