MapTool: Saving a token?

Progress reports and musings from the developers on the current gaming tools.

Moderators: dorpond, trevor, Azhrei

Post Reply
User avatar
Blakey
Dragon
Posts: 778
Joined: Fri Mar 23, 2007 11:27 am
Location: Sussex, UK.

MapTool: Saving a token?

Post by Blakey »

Hey,

Can anyone tell me which class implements saving tokens to disk?

Cheers
Blakey
The guy in the green hat.

User avatar
Blakey
Dragon
Posts: 778
Joined: Fri Mar 23, 2007 11:27 am
Location: Sussex, UK.

Re: MapTool: Saving a token?

Post by Blakey »

I seem to have found it, never mind.
The guy in the green hat.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: MapTool: Saving a token?

Post by Azhrei »

If you're going to post here, you may as well answer your own question -- it could save someone else some trouble in the future. :roll:

Look for the PersistenceUtil class. I don't know the package because I just type that name into the Eclipse "Open Type..." option on the Navigate menu...

User avatar
Blakey
Dragon
Posts: 778
Joined: Fri Mar 23, 2007 11:27 am
Location: Sussex, UK.

Re: MapTool: Saving a token?

Post by Blakey »

Sorry, yeah, I should have posted. :oops: The saveToken static method is in defined net.rptools.maptool.util.PersistenceUtil.

Still no closer to saving a token successfully though. :cry:

I've now stolen the MD5Key class from MapTool and am generating what I think is a valid Md5key for the token, but when I save it, it's clearly invalid. When you look at the token in MT Library it doesn't see the image at all and when you paste it to the MT instance it does nothing.

Next step - see if I can figure out what MT does when I try and drag/drop it onto a map...
The guy in the green hat.

Post Reply

Return to “Developer Notes”