[Release] PC *hax 2.5 screenshot merge tool.

Discussion in '3DS - Homebrew Development and Emulators' started by RedHat, Nov 12, 2015.

  1. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    So I made a really quick and dirty screenshot tool to convert *hax 2.5 screenshots to a little bit nicer format. It uses Java.

    OVERVIEW:
    This program takes your screenshot folder and makes all those messy images into nicer compiled images in a reasonable amount of time! It is also quite simple to use. Not only can it simply merge two images together, but it also can apply a template file to your set of images.


    DOWNLOAD:
    Here is the GitHub repository (It's open source because everyone loves open source)!
    https://github.com/RedInquisitive/Screenshot-Tool
    Download ScreenshotTool.jar and double click to run it!


    WARNINGS:
    /!\ This program was made in literally 2 hours. There may be some bugs. But it works on my machine so I guess that counts for something.
    /!\ This program was released in a hope that it provides some form of usefulness to someone. Of course it might not be useful for everyone, including you. I understand that these operations can be done with basically any image editing software, but I am wayyyy too lazy to do any of that stuff. Automation!

    EXAMPLES:
    Output tests:
     
  2. RetroBitMig

    RetroBitMig CEO of PixelRocket (returning soon) and Maagic Dev

    Member
    162
    69
    Oct 19, 2015
    United States
    Los Angeles
    This is, like, the cooliest thing out there right now. Thanks for this!
     
  3. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    Haha, no problem! I just wanted to merge a bunch of screenshots and I was too lazy to go through 100 screenshots in Paint.NET or something like that. I hope you find it useful!
     
  4. bache

    bache GBAtemp Advanced Fan

    Member
    694
    292
    Sep 28, 2009
    I could definitely use this. Would it be possible to add support for screenshots taken with NTR? I don't know if they differ at all from 2.5 *Hax screenshots or not.
     
  5. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    Actually, it has nothing to do with the format, but the name. Java will look at the name scr_1_BOTTOM.png and find "1" between the first and second underscore and BOTTOM after the second underscore and match it with the corresponding number and eye of the top screen. I suppose it wouldn't be too hard to make it work.
     
  6. CitizenSnips

    CitizenSnips a seldom-used crab named Lucky

    Member
    628
    545
    Mar 10, 2015
    United States
    I'll definitely use this, as I hate having to merge the top and bottom screens with Microsoft paint :D
     
  7. bache

    bache GBAtemp Advanced Fan

    Member
    694
    292
    Sep 28, 2009
    So simply renaming the screenshots I take to match the naming scheme of *Hax screenshots should theoretically work?
    That's easy enough to do. Thanks for the tool :).
     
  8. CitizenSnips

    CitizenSnips a seldom-used crab named Lucky

    Member
    628
    545
    Mar 10, 2015
    United States
    I'll definitely use this, as I hate having to merge the top and bottom screens with Microsoft paint :D
     
  9. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    Same! This one even supports transparency for fancy people... or something like that!
     
  10. RetroBitMig

    RetroBitMig CEO of PixelRocket (returning soon) and Maagic Dev

    Member
    162
    69
    Oct 19, 2015
    United States
    Los Angeles
    I know you warned about usefulness and bugs, but I thought I'd bring it to your attention that even though I get the All Done! message (which happens way too quickly), there is nothing in the output folder.
     
  11. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    That's interesting! Care to share the input folder's contents? It should basically look like the one in the repository. I think it might be any of these:
    1. You didn't actually double click to enter the input folder before selecting OK
    2. The input folder cannot be read from (Is it on the same drive?).
    3. The output folder cannot be written to.

    Try running the program with java -jar ScreenshotTool.jar
     
    Last edited by RedHat, Nov 12, 2015
  12. RetroBitMig

    RetroBitMig CEO of PixelRocket (returning soon) and Maagic Dev

    Member
    162
    69
    Oct 19, 2015
    United States
    Los Angeles
    I tried to run it through Terminal, with the command you mentioned and this happened. I'm going to see if there's any problem with the permissions of the folders. Also, here are my folders where the .jar is located, and the contents of the input folder.

    Screenies
     
  13. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    I should have suspected. I used \\ (which converts to just \) in Java to separate files. I never accounted for Mac which uses /! Doh! I'll have to fix it tomorrow for UNIX people.
     
    Last edited by RedHat, Nov 12, 2015 - Reason: a word
  14. RetroBitMig

    RetroBitMig CEO of PixelRocket (returning soon) and Maagic Dev

    Member
    162
    69
    Oct 19, 2015
    United States
    Los Angeles
    I just expected it to work, since it was a .jar file, and my immediate thought was that it was universal. Thanks for the help!
     
  15. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    @RetroBitMig you are correct, it totally should be platform independent (that's the whole point of Java). It's just my lazy programming! No worries, I'll fix it soon when I get a chance. It should be a trivial fix. I'll try it out on my Ubuntu box first thing tomorrow, too.
     
  16. Shaker78

    Shaker78 GBAtemp Regular

    Member
    119
    107
    Jan 17, 2007
    Gambia, The
    This reminds me of my own comment in mashers grid launcher thread: click
    Thank you very much RedHat :bow:


    EDIT 1: Could you add support for multiple templates?
    • template1.cfg / template1.png
    • template2.cfg / template2.png
    • ...
    EDIT 2: some more templates

    EDIT 3: added '*.cfg' files for all templates

    Preview
     

    Attached Files:

    Last edited by Shaker78, Nov 12, 2015
  17. supercarotte

    supercarotte GBAtemp Advanced Fan

    Member
    663
    320
    May 21, 2015
    France
    That's just as useless as it's good !:lol: Thanks, the results are just perfect :nds:!
     
  18. ghjfdtg

    ghjfdtg Advanced Member

    Newcomer
    59
    42
    Jul 13, 2014
    At least provide the source if you are at it so people can be sure your tool does not do malicious things. You can also merge the screenshots with Imagemagick easily.

    EDIT:
    Source available now.
     
    Last edited by ghjfdtg, Nov 12, 2015
  19. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,822
    Jan 27, 2015
    United States
    Behind a screen reading news
    @RedHat Has the mac version been fixed :D
     
  20. RedHat
    OP

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    @Red3agle Theoretically. Go head and try!
     
  21. BurningDesire

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,822
    Jan 27, 2015
    United States
    Behind a screen reading news
    I will soon. Currently stuck at school. Even though it is online school I use a PC for it instead of my mac. Will get back to you ASAP!
     
  22. RetroBitMig

    RetroBitMig CEO of PixelRocket (returning soon) and Maagic Dev

    Member
    162
    69
    Oct 19, 2015
    United States
    Los Angeles
    @RedHat it works miracles now! Thanks again for this :D