
Mod Compatibility Issue with "Energy Count/Display Energy"
CompSciLauren opened this issue · 5 comments
Description of Bug
Copied from https://www.nexusmods.com/stardewvalley/mods/4779?tab=posts
user: estherflails
01 Jun 2025, 10:54AM
Hello! There seems to be an issue between Daily Screenshot and Energy Count/Display Energy. The energy numbers show up on the screenshots in several places. It would be really great if they could be made compatible. Thank you, and thanks for sharing this great mod!
The mods in question:
Energy Count - https://www.nexusmods.com/stardewvalley/mods/4272
Display Energy - https://www.nexusmods.com/stardewvalley/mods/10662
Wasn't able to reproduce issue, replied to Nexus post asking for additional information.
The user who reported the issue uploaded some example screenshots and pointed out that the numbers aren't the easiest to spot at a glance. Upon closer look, I was able to see the energy numbers did show up on my screenshots, I just didn't notice them before. Will dig into this further when I have time next week.
Did some brief poking around and it looks like the answer to this is probably going to be that these mods (and any others that may run into this sort of issue) need to update their code to include checking if Game1.game1.takingMapScreenshot
is true and to not draw if so. Will look a bit more at some things but this is probably the answer.
I finished looking into this. It's a problem that I can't fix on my end - the other mods need to add a safety check so that they don't draw on the screen when a screenshot is being taken.
It looks like Display Energy is more likely to still be maintained, so I've submitted a fix for this on that mod author's GitHub repo where the code is kept for that mod. It's up to them to handle it now.
Here's where I've submitted the PR to fix the bug: dmarcoux/DisplayEnergy#5