Hey,
Can anyone tell me which class implements saving tokens to disk?
Cheers
Blakey
MapTool: Saving a token?
Moderators: dorpond, trevor, Azhrei
MapTool: Saving a token?
The guy in the green hat.
Re: MapTool: Saving a token?
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.
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...
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...
Re: MapTool: Saving a token?
Sorry, yeah, I should have posted. The saveToken static method is in defined net.rptools.maptool.util.PersistenceUtil.
Still no closer to saving a token successfully though.
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...
Still no closer to saving a token successfully though.
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.