[HELPER 0.16/0.17] Screenshot Hotkey 2.0 (EN,DE,JP)

Topics and discussion about specific mods
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3495
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[HELPER 0.16/0.17] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by eradicator » Sat Jul 30, 2016 12:34 pm

Languages: 日本語, Deutsch, English
Type: Helper Mod
Name: Screenshot Hotkey
Description: Adds a hotkey (default F12) that gives you a camera item to mark the area you want to take.
License: The Unlicense (Public Domain)
Version: 2.1.1
Release: 2016-07-30 (Latest: 2019-08-03)
Tested-With-Factorio-Version: 0.17.53
Category: Convenience, Holiday Pictures
Tags: User-Interface
Mod Portal: Screenshot Hotkey 2.0
Source Code: <included in zip file>
Download-Url:
ScreenshotHotkey_2.1.1.zip
(86.34 KiB) Downloaded 6 times
__screentool_icon.png
__screentool_icon.png (45.35 KiB) Viewed 499 times
Pictures
Changelog
How to take a picture
Version Archive
Last edited by eradicator on Sat Aug 03, 2019 3:30 am, edited 11 times in total.
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Liono2010
Inserter
Inserter
Posts: 24
Joined: Mon Nov 17, 2014 9:06 pm
Contact:

Re: [UTILITY 0.13.10] Screenshot Hotkey

Post by Liono2010 » Mon Feb 13, 2017 3:10 am

I thought to create such a mod, but I found that it had already been made.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3495
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [HELPER 0.16.49] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by eradicator » Tue Jul 10, 2018 11:23 am

After getting no requests whatsoever, i finally decided to bring this best of all screenshot tools to 0.16.
Enjoy Screenshot Hotkey 2.0! :mrgreen:

melie
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Aug 03, 2019 1:08 am
Contact:

Re: [HELPER 0.16.49] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by melie » Sat Aug 03, 2019 1:18 am

Hey, can you fix lines 141..145 (control.lua) from

Code: Select all

    args.xpos = tonumber (pmain['xpos_text'    ].text)
    args.ypos = tonumber (pmain['ypos_text'    ].text)
    args.xres = tointeger(pmain['xres_text'    ].text)
    args.yres = tointeger(pmain['yres_text'    ].text)
    args.zoom = tonumber (pmain['scale_text'   ].text) --may be decimal
to

Code: Select all

    args.zoom = tonumber (pmain['scale_text'   ].text) --may be decimal
    args.xpos = tonumber (pmain['xpos_text'    ].text)
    args.ypos = tonumber (pmain['ypos_text'    ].text)
    args.xres = math.ceil(tointeger(pmain['xres_text'    ].text)* args.zoom)
    args.yres = math.ceil(tointeger(pmain['yres_text'    ].text)* args.zoom)
?

After this mod will capture exactly what is highlighted by a rectangle with any zoom, not a rectangle zoom-times larger than the selected rectangle. This is ten times more intuitive behavior, it seems to me.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3495
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [HELPER 0.16.49] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by eradicator » Sat Aug 03, 2019 3:26 am

Thanks for the detailed bugreport! That's probably been sitting there since version 1 and nobody ever reported it. The fixed version is on the portal now, and i also updated the opening post ;). (Btw, the engine is nice enough to do the math.floor() on it's own, so unless you have an argument for using math.ceil() instead?...)
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

melie
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Aug 03, 2019 1:08 am
Contact:

Re: [HELPER 0.16/0.17] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by melie » Sat Aug 03, 2019 1:17 pm

I chose ceil, because it’s better to take one extra pixel and guaranteed to capture the selected rectangle than not to get one pixel. However, there is no difference, this is just one pixel.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 3495
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [HELPER 0.16/0.17] Screenshot Hotkey 2.0 (EN,DE,JP)

Post by eradicator » Sun Aug 04, 2019 2:19 am

melie wrote:
Sat Aug 03, 2019 1:17 pm
I chose ceil, because it’s better to take one extra pixel and guaranteed to capture the selected rectangle than not to get one pixel. However, there is no difference, this is just one pixel.
I see. The default numbers in the gui are already enlarged to fit all tiles within the rectangle though, so anyone who's not manually inputting the resolution is already getting quite a few more pixels than they selected.
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: Irsmert, kingarthur, richarnd