Custom TokenTool 1.0b32 (Nerps!)

Thoughts, Help, Feature Requests

Moderators: dorpond, trevor, Azhrei


User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by CoveredInFish »

Hmm .. cant get it to work (although I had no time for digging really deep yet).

Calling it from terminal (macOS) leads to this:

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: tokentool-1/0/b30_Nerps
Caused by: java.lang.ClassNotFoundException: tokentool-1.0.b30_Nerps
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Hmmm, interesting. I suspect it's due to the jarinjar loader maybe. I'm not familiar with MacOS at all. Do you still have Eclipse installed? I can share the source with you if needed.

I'll look into what other options we have as well.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by CoveredInFish »

Yes, Eclipse is still available. Sources would be welcome.
Maybe I can create a macOs-compatible release (should that be the problem, not much research invested yet (still))

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Here's a link to a zip of my Workspace folder for TokenTool, should be everything you need to build it. If you manage to create a .dmg, I'll host it next to my jar|.exe

I need to look more into the JavaFX packaging tools, looks like it can create .dmg|deb|exe and many others. I'm looking at that for my MT custom build currently.

Let me know if you have any luck or any questions.


https://drive.google.com/file/d/0B2c01Y ... sp=sharing
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by CoveredInFish »

Thanks. I'll let you know if I figure something out.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Thanks. Also, hopefully I got your stuff working as designed as well. I didn't have the Abiele form for the GUI stuff and didn't know all the test cases. If you need to fix/add anything, go off that code and send me a patch and I'll update it.

At this point I'm back to MapTool so nothing pending for TokenTool atm unless bugs are found.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
Oryan77
Dragon
Posts: 452
Joined: Sun Feb 20, 2011 3:14 pm

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by Oryan77 »

JamzTheMan wrote:Out of curiosity, can I ask why you don't use TokenTool? Just easier to use Gimp/Photoshop or just don't create tokens? Just curious, in case there was something else that can be done to make the tool better.
I started off using Tokentool several years ago but switched to using Photoshop soon after. My main reason for switching was because of image quality. I'm a graphic artist, so detail is important to me. I just didn't like the pixelized (jagged) edges of the outer circles. I also wanted a slight shadow around the outer and inner areas of the token because it makes the token pop and look nicer.

Using Photoshop for token creation is not as convenient as Tokentool, but I get the result I want. I would switch back to Tokentool in a heartbeat if I was able to produce tokens with nice edges and the ability to put a dropshadow around it if I wanted.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by aliasmask »

It may be described somewhere else on the forums, but you can get high quality edges. You just need to have a filter image, then the token border applied to image. There was a collection in the gallery, but that's gone now. Maybe I'll post a couple here later.

edit: found it

First you apply the trimmer, drag to a folder, then switch to desired border and drag trimmed image in.
Attachments
4th edition _256px_.png
4th edition _256px_.png (35.44 KiB) Viewed 7903 times
Tokentool trimmer _256px_.png
Tokentool trimmer _256px_.png (13.13 KiB) Viewed 7903 times

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Hmmm, So what it really needs is a separation between "Trim" and "Overlay".

So maybe a second dropdown/selection to add "Trim" overlays (maybe just a basic circle/square selection with resize) to trim/crop the image.

Then all the current overlays with the magenta removed to place over (or under for stamps) the cropped image? That would allow us to just use any transparent png for an overlay without much work.

If I get some time, maybe I'll throw something together and see if I can get the trim image to auto-resize with the overlay size so it's quick and easy without having to deal with layers or to many other things...
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by aliasmask »

That would be useful in that it saves a step. In PSP terms one would be a mask and the other an overlay. Although magenta is a horrible color, you can't actually use it in an overlay. It would be nice to have the mask be separate and translate black as the part being masked and any other color ignored. The mask would remove those pixels from the image. Then the overlay can have any color in it.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Agreed. The mask could really be any color(s) once separated from the overlay.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

Tinalles
Kobold
Posts: 24
Joined: Sun May 27, 2012 9:39 pm

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by Tinalles »

Bump!

If you get a moment, there's one feature I've been dying to have in TokenTool for ages.

Automatic file names.

Currently, it works like this:

1) Name a portrait "Giant Queen Bee.jpg" or whatever.
2) Drag the portrait into TokenTool, position, resize etc.
3) CTRL+S (stock) or CTRL+I (yours) to save the finished pog image someplace.
4) Type in "Giant Queen Bee.png" as the file name for the pog.

It's step 4 I want to eliminate. I've typed the name of every last token in my library twice -- once for the portrait, once for the pog. It's hugely tedious, and they number in the thousands at this point.

So ... if you could make TokenTool populate that "Save As" file name with the name of the source image plus the appropriate extension, I'd shower blessings on your head for halving my typing.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by JamzTheMan »

Tinalles wrote:Bump!

If you get a moment, there's one feature I've been dying to have in TokenTool for ages.

Automatic file names.

Currently, it works like this:

1) Name a portrait "Giant Queen Bee.jpg" or whatever.
2) Drag the portrait into TokenTool, position, resize etc.
3) CTRL+S (stock) or CTRL+I (yours) to save the finished pog image someplace.
4) Type in "Giant Queen Bee.png" as the file name for the pog.

It's step 4 I want to eliminate. I've typed the name of every last token in my library twice -- once for the portrait, once for the pog. It's hugely tedious, and they number in the thousands at this point.

So ... if you could make TokenTool populate that "Save As" file name with the name of the source image plus the appropriate extension, I'd shower blessings on your head for halving my typing.

I 2nd that! Actually, I did look into that as well for the exact same reasons. Unfortunately, for the life of me I could not find any way to access the name of the object from a "drag and drop" event. :cry:

If any Java developers are out there and know if this is possible, drop me a hint or a link. Note, the drag event could come from a browser as well so not sure if that matters?
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

Tinalles
Kobold
Posts: 24
Joined: Sun May 27, 2012 9:39 pm

Re: Custom TokenTool 1.0b29 (Nerps!)

Post by Tinalles »

Well, I'm not a Java Developer, but perhaps you could ask on StackOverflow? I've had good luck getting useful answers to programming questions there.

Post Reply

Return to “TokenTool”