RPTools.net

Discussion and Support

Skip to content

It is currently Fri Nov 24, 2017 11:09 pm 






Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Thu Oct 19, 2017 11:36 am
Posts: 24
 Post subject: Re: darn it's ugly
PostPosted: Mon Oct 30, 2017 5:09 am 
I don't own Herolab, so I'm not sure how I could use your software, and unfortunately I already wrote all the tedious, zip/md5 code. (well in python, it's not that tedious, there's always a module for anything :) )

I looked at your code and we ended up writing almost the same stuff. A pity you came here too late :mrgreen:.

My next step would be to fetch spells from dnd5api, so my tokens would have fully described spell list. When I run combat, one thing I need the most is an easy access to the spell list with the description. Something I need to prepare before the session, if the tokens have already the descriptions, no more prep ! 8)

FYI here's my code:

https://github.com/bobifle/tokens

You may want to look at how I generate xml. I used a template engine (jinja2), it's very common on the web, but it's actually very useful to generate any kind of data/code.


Edit / Question:

I see you ran into the same issue than I did, the size of tokens being reference with a GUID. Problem, I don't know if those GUIDs are valid over different version of maptool, or even campaigns...

Also is Jamz's version of maptool fully compatible ? (file format wise). For instance a I tried to use my token with Mote, and it didn't work. Well I may simply try but I wonder I Jamz'version is designed to be 100% compatible with the master branch file format.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1706
Location: Chicagoland
 Post subject: Re: darn it's ugly
PostPosted: Mon Oct 30, 2017 4:23 pm 
It depends on what you mean by compatible. The GUID is just the id of the serialized Token class. My "version" is just a fork from the main repo and I submit changes back but, if the Token class changes, then you may loose backwards compatibility (this is true within my fork and the main repo) so from version to version it "can change" (although we try not to change Token/Campaign classes between minor releases.

Which is also why I suggested using the sendURL macro code to retrieve your data and hand making the token "in maptool" instead. If you build your tokens in MapTool via macro, you have better compatibility. Building outside of MapTool means you are locked in and your tokens could break in other maptool releases and not as portable across frameworks...

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
 Offline
Kobold
 
Joined: Thu Oct 19, 2017 11:36 am
Posts: 24
 Post subject: Re: darn it's ugly
PostPosted: Tue Oct 31, 2017 5:10 am 
By compatibility I mean whatever token, campaign, macro saved with Maptool, it can be successfuly loaded with your fork. That's what I meant.

Regarding building tokens with macro, I see your point. However I know very little about maptool macros and I honestly think it would have taken me weeks if not month to achieve what I've done in few hours with python, I'm sort of fluent in python.

Right now I don't have the time and dedication to learn another macro language.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1706
Location: Chicagoland
 Post subject: Re: darn it's ugly
PostPosted: Tue Oct 31, 2017 1:04 pm 
Generally speaking, MapTool can load any token from a previous version (just not always the other way around) and my fork ks basically a 'newer' version so yes, it can load tokens/campaigns saved in other MT versions.

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

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 are 3 users online :: 0 registered, 0 hidden and 3 guests (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 3 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman