RPTools.net

Discussion and Support

Skip to content

It is currently Wed Nov 22, 2017 7:01 pm 






Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Thu Oct 19, 2017 11:36 am
Posts: 22
 Post subject: token size and Token type settings
PostPosted: Tue Oct 24, 2017 6:37 am 
Hello,

I'm currently generating all SRD monsters tokens using an online RESTful api to get the data from (namely http://www.dnd5eapi.co).

Because I know nothing about java, I'm using python to morph the json data into token xml, zipping all the content into a rptok file.

So far so good, I'm pretty much done, 326 Fully statblock-ed & macro-ed tokens without sweating 8)

There's 2 issues I'm running into right now:

    * the token size setting
    * the token type setting

Token Size


The token size seems not be set using a standard property, but is using some kind of squaregrid guid.
Code:
  <sizeMap>
    <entry>
      <java-class>net.rptools.maptool.model.SquareGrid</java-class>
      <net.rptools.maptool.model.GUID>
        <baGUID>fwABAc5lFSoDAAAAKgABAA==</baGUID>
      </net.rptools.maptool.model.GUID>
    </entry>
  </sizeMap>


I have found all the guids for all sizes, and can set it accordingly, however I'm afraid this guid may become invalid between different campaign and / or Maptool version.

Does anyone know how to set in the token xml file the size in a reliable way ?

Token type Setting

I'm currently using the 'NPC' type from the dnd 5 framework. Ultimately, I'd like to use my own token type, however token type are manage as campaign properties and it seems there's no way to import just 1 type...

I was thinking about providing a macro in each token to add the correct token type, but I'm not sure it's even possible.

Any insight is most welcome !


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman