Canvas Scale Calculator

Hey!

I’ve written a canvas scale calculator for Tower Unite, it takes an image resolution and gives you scale values to plug into Tower Unite! Firstly though, all credit for the math behind this goes to @Jacob_Swanson , as he developed the formula that made this possible! If he has a problem with me releasing it, I’ll take it down if need be.

Link to his original post;

The program was written in Java, and runs as an executable JAR. The github page is located here. I also released the program under the general public license, so you can make any changes to it if you want, just include the license in your release. c:

If you find any bugs with this program, please report them to me. I did a fair amount of error handling in this, and I think it should catch all the invalid input you can give it, but you never know!


Screenshot;


Current known bugs;
None to report, inform me if any are found!

Current version;
v1.2 “Confused Panda”, June 19 2016

Previous version;
v1.1.2 “Fluffy Panda Hotfix 2”, June 19, 2016

Changelog;

  • Added the ability to pull an image’s resolution from an URL

Binary download;
Here

NOTE: Make sure you’re running java 1.8 or later! You can download the latest version of java here.

Source;
Here

Copyright © Sara Lehman 2016, released under the General Public License.

16 Likes

Oh shoot, can you launch it with CMD and tell me what the output is?

I’m not sure how to do that, i tried changing the extention to .bat and it just crashed instantly.
I tried inputting the path of the file into CMD and it did the same

You can’t launch a JAR as a batch file. Batch is a different programming language.

To run it through CMD, press [windows key] + R, and type in CMD.

Now, navigate to the folder where the file is located, you can do this by using this command:

cd [folder path here]

Once you’re in the same folder as the JAR file, use this command:

java -jar CanvasScaleCalculator.jar

Then, tell me what it outputs to the command line.

Ah, ok! That’s a simple fix, your java version isn’t new enough to run this. Install the latest version of java and it should run fine.

Go here;
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

And download the latest version of the JRE for your system. Grab the EXE, as the tar.gz is source code.

Of course that’s why. Fuck java, it tries to install a 32bit version by default and it doesn’t want to update 90% of the time

Alright it works now, thanks for the assistance.

1 Like

Thank you! I still have yet to learn Java.

1 Like

I’ve released a new update! You can now browse for an image, and the program will automatically input the image resolution for you.

v1.1 “Fluffy Panda”, June 17, 2016

Edit: made a small bugfix, hence v1.1.1

I learned Java at school btw. And I came to the conclusion that I prefer Python for my projects over Java.
However I’m quite used to using Java right now because our school project has to be written in Java.

So, I’ve realized I goofed up by flipping the X and Y outputs, so I’m releasing an update in a second to fix that.

EDIT: I released v1.1.2, so now that issue is fixed!
EDIT: 1.2 is out, you can now insert images from URLs and it will input the resolution for you!

1 Like

I am unable to find version 1.2, I can only find 1.1. Checked all links in your OP, found nothing.

The link should be fixed now, I didn’t realize it linked to the github file listing instead of a direct download.