Question about the baGUID field in the content.xml file

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
fredjsquirrel
Kobold
Posts: 22
Joined: Thu Jan 28, 2016 9:17 pm

Question about the baGUID field in the content.xml file

Post by fredjsquirrel »

Hi there me again with my .Net windows app to create Tokens for Maptools.

This is probably a question for the developers but I'll start here.
In the content.xml file for a token there are a number elements that use a field called baGUID. However, the value in this field doesn't match the format that I get from the C# GUID object.

So my question is how is it generated?

Thanks.

bobifle
Giant
Posts: 219
Joined: Thu Oct 19, 2017 12:36 pm

Re: Question about the baGUID field in the content.xml file

Post by bobifle »

The answer is somewhere in this thread:

viewtopic.php?f=78&t=27699 (search "base64")

But, if you plan to generate a rptok file with your .Net app, it does not really matter as Maptool will reassign a GUID when importing the rptok.
However, the value in this field doesn't match the format that I get from the C# GUID object.
That's because the xml file you're looking is a serialized version of a token done by the JAVA lib XStream. Look at http://x-stream.github.io/converters.html and you'll see that Xstream "Uses Base64 encoding to store binary data in XML"

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

Re: Question about the baGUID field in the content.xml file

Post by JamzTheMan »

bobifle wrote:
Thu Jul 05, 2018 4:39 pm
The answer is somewhere in this thread:

viewtopic.php?f=78&t=27699 (search "base64")

But, if you plan to generate a rptok file with your .Net app, it does not really matter as Maptool will reassign a GUID when importing the rptok.
However, the value in this field doesn't match the format that I get from the C# GUID object.
That's because the xml file you're looking is a serialized version of a token done by the JAVA lib XStream. Look at http://x-stream.github.io/converters.html and you'll see that Xstream "Uses Base64 encoding to store binary data in XML"
The student becomes the teacher! :D
-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

bobifle
Giant
Posts: 219
Joined: Thu Oct 19, 2017 12:36 pm

Re: Question about the baGUID field in the content.xml file

Post by bobifle »

Watch your back, you know how apprentices become sith masters :mrgreen:

Post Reply

Return to “User Creations”