Running the following command is guaranteed to cause a crash:
game.take_screenshot{resolution={0.25,0.25}}
It seems that when the resolution is below 1 pixel, the game cannot handle it gracefully.
Log file attached.
Screenshot causes crash with very small resolution values
-
- Inserter
- Posts: 30
- Joined: Fri Dec 28, 2018 4:55 pm
- Contact:
Screenshot causes crash with very small resolution values
- Attachments
-
- factorio-current.log
- (7.64 KiB) Downloaded 149 times
Re: Screenshot causes crash with very small resolution values
While it is not acceptable that the game crashes there, I still wonder: why exactly do you even try doing that?
- NotRexButCaesar
- Smart Inserter
- Posts: 1133
- Joined: Sun Feb 16, 2020 12:47 am
- Contact:
Re: Screenshot causes crash with very small resolution values
The things we have to do to find bugs in this game.
Ⅲ—Crevez, chiens, si vous n'étes pas contents!
-
- Inserter
- Posts: 30
- Joined: Fri Dec 28, 2018 4:55 pm
- Contact:
Re: Screenshot causes crash with very small resolution values
@Valneq:
It was actually an accident:
- Try to take screenshots of very big base, but UPS is slow and walking is slow and train tracks are intentionally separate networks to prevent clogs
- Learn to use game.take_screenshot instead of /screenshot command
- Try to use parameters "position", "resolution" and "zoom", but accidentally put "resolution=0.25" instead of "zoom=0.25" for the last parameter
- Get confused when game returns errors that says "expects table, not double"
- Ok, think maybe game allows different x and y zoom amounts, no problem, change "0.25" to "{0.25,0.25}"
- Game crashes
- Read log file to try to understand why
- Realize I have "resolution" twice and no zoom
- Silly me
- Realize game still shouldn't crash
- Submit bug report, knowing full well developers are going to say "... ... ... why?"
It was actually an accident:
- Try to take screenshots of very big base, but UPS is slow and walking is slow and train tracks are intentionally separate networks to prevent clogs
- Learn to use game.take_screenshot instead of /screenshot command
- Try to use parameters "position", "resolution" and "zoom", but accidentally put "resolution=0.25" instead of "zoom=0.25" for the last parameter
- Get confused when game returns errors that says "expects table, not double"
- Ok, think maybe game allows different x and y zoom amounts, no problem, change "0.25" to "{0.25,0.25}"
- Game crashes
- Read log file to try to understand why
- Realize I have "resolution" twice and no zoom
- Silly me
- Realize game still shouldn't crash
- Submit bug report, knowing full well developers are going to say "... ... ... why?"
Re: Screenshot causes crash with very small resolution values
Fair enough.
After all, you are just following my call for bug reports, see here:
viewtopic.php?f=5&t=90670
After all, you are just following my call for bug reports, see here:
viewtopic.php?f=5&t=90670
Re: Screenshot causes crash with very small resolution values
... ... ... why?
Thanks for the report.
Fixed for 1.1
Thanks for the report.
Fixed for 1.1