RPTools.net

Discussion and Support

Skip to content

It is currently Fri Aug 18, 2017 11:19 am 






Reply to topic  [ 15 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Sat Sep 12, 2009 10:32 am
Posts: 6
 Post subject: Dice Tool updates
PostPosted: Wed Mar 31, 2010 3:52 pm 
Is this tool ever going to be updated, or is it officially abandoned?

I understand that MapTools has support for things like brutal dice, exploding dice, and other capabilities when parsing dice expressions. It would be nice if that functionality made its way over to Dice Tool.


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: Dice Tool updates
PostPosted: Wed Mar 31, 2010 4:13 pm 
While it isn't necessarily abandoned, it isn't being actively worked on either. Map Tool uses the parser that dice tool uses for die rolls. I'm not sure if there are any MT only extensions. However, if the modifications to MT die rolling that you are talking about are from macros, then they will never show up in dice tool.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Sep 12, 2009 10:32 am
Posts: 6
 Post subject: Re: Dice Tool updates
PostPosted: Wed Mar 31, 2010 4:24 pm 
http://lmwcs.com/rptools/wiki/Dice_Expressions

I guess those are macros?


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: Dice Tool updates
PostPosted: Wed Mar 31, 2010 4:49 pm 
I didn't think so, I'll have to take a look when I get a chance.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12077
Location: Tampa, FL
 Post subject: Re: Dice Tool updates
PostPosted: Wed Mar 31, 2010 7:14 pm 
vaultdweller wrote:
I guess those are macros?

Nope. If they were the category for the wiki page (look at the bottom) would be "Macros" and it's not. (Although it only has MapTool and not DiceTool. Likely because the wiki site is primarily about and for MapTool...)

Those are built-in to the parser.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Sep 12, 2009 10:32 am
Posts: 6
 Post subject: Re: Dice Tool updates
PostPosted: Wed Mar 31, 2010 8:57 pm 
Azhrei wrote:
Those are built-in to the parser.
Ok... so they're built into the parser, and MapTool and DiceTool use the same parser, then why do they work in MapTool but not in DiceTool?


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Mon Apr 27, 2009 4:04 pm
Posts: 38
 Post subject: Re: Dice Tool updates
PostPosted: Sun Apr 04, 2010 11:54 pm 
I'm curious about this too. There are times when I'd love to just have a nice dedicated dice program, and MapTools has a lot of nice dice features that the dice application lacks... Confusion abounds!


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12077
Location: Tampa, FL
 Post subject: Re: Dice Tool updates
PostPosted: Mon Apr 05, 2010 5:17 pm 
Hmm, good question. :) My initial guess would be that the configuration for those tools (like DiceTool) still uses an older version of the parser-lib JAR file. But I don't use DiceTool so I haven't looked into it. Hold on...

Yep, that's it. The rplib that's in the latest DiceTool zip is 1.0.b62 and the one shipped with MapTool is 1.0.b119! :roll:

Until I get this corrected, if you want to try the newer library and see if it works, unpack the DiceTool zip file, then copy the one from MapTool's lib directory on top of the one in the DiceTool lib directory. Note that I said, "on top of". That means copying rplib-1.0.b119.jar to rplib-1.0.b62.jar. Yes, that will overwrite the existing one. And yes, the version number in the filename is now wrong -- big deal. ;)

There are no dependencies listed in the JAR file so that should work. Later in the week I'll see about updating the Web Start launch configuration, but I won't be uploading a new zip of DiceTool to the main web site as I'm not a maintainer of that project and I don't want to step on anyone's toes. :)


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Sep 12, 2009 10:32 am
Posts: 6
 Post subject: Re: Dice Tool updates
PostPosted: Mon Apr 05, 2010 6:24 pm 
Swapping the library doesn't seem to work for me - the application doesn't load.

After poking around a bit in the rplib library with Eclipse, I'm not seeing anything that looks like an expression parser, so I'm not sure that this particular outdated library is the culprit.

Without going into too much exploration of the source trees*, it looks to me like MapTool references libraries for parsing dice expressions, and those libraries are based on code that's built in to DiceTool. I don't think MapTool uses the same parser as DiceTool, I think that MapTool's parser was just based on DiceTool. Of course, I could be totally wrong.**

Either way, though, thanks for taking a look. In lieu of stepping on the maintainer's toes, could you perhaps poke the maintainer about it? ;)


*because I am not a Java developer and have only a basic knowledge of the language
**See last point

{Edit}
As a side-note, I don't use Web Start, as I compile my own tweaked version of DiceTool (to add extra rows to the CustomRollPanel and extra variables to the VariablePanel).


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12077
Location: Tampa, FL
 Post subject: Re: Dice Tool updates
PostPosted: Mon Apr 05, 2010 10:31 pm 
Yep, you're right. I just looked into the DiceTool zip more closely and it uses rplib, but not parser and it's the second one that handles the MapTool macro language and, I assume, the dice rolling.

I don't see any library of DiceTool that is replaceable that would get you the same dice rolling stuff that's in MapTool.

Sorry. I thought they were using the same library.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Sep 12, 2009 10:32 am
Posts: 6
 Post subject: Re: Dice Tool updates
PostPosted: Mon Apr 05, 2010 10:48 pm 
Unfortunate.

If I had the time I'd look into rewriting DiceTool to use the Parser library (hooray for open source!), but between a full-time job, part-time university, playing in one D&D campaign and developing & DM'ing another campaign :shock: ... probably not gonna happen.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12077
Location: Tampa, FL
 Post subject: Re: Dice Tool updates
PostPosted: Mon Apr 05, 2010 11:18 pm 
Probably for the best. The MapTool parser is a real hack in a lot of ways. ;) Although the functions that implement the dice rolling could probably be pulled out without too much trouble, the question remains of how tough it might be to add to DiceTool. I don't really know much about DT -- perhaps a little JavaScript could suffice?


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: Dice Tool updates
PostPosted: Tue Apr 06, 2010 11:01 am 
The parser lib is what handles one line of the MT macro language minus the stuff in the square brackets. It does arithmetic, function parsing, boolean values. The dice lib handles parsing and executing the dice rolls. It is placed on top of the parser and replaces the die rolling formats with function calls. It also defines all of the die roll functions. For example 1d6 is converted into roll(1, 6) and then sent to the parser. This part of the macro language is fairly well defined, but it wasn't made to be a full programming language. It was made to be something used on a command line in chat. All the other macro language support like if and looping was added afterwords as requested by the community. So it really isn't that coherent of a design, but a bunch of patches added around the parser and dicelib.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12077
Location: Tampa, FL
 Post subject: Re: Dice Tool updates
PostPosted: Tue Apr 06, 2010 2:55 pm 
Ah. :)

Thanks for the background...


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Fri Aug 13, 2010 9:06 pm
Posts: 25
 Post subject: Re: Dice Tool updates
PostPosted: Sat Aug 14, 2010 6:00 pm 
I used the parser for 3.5e dnd as a basis for the universal roller I scripted. Details are here http://forums.rptools.net/viewtopic.php?f=5&t=2396


I can show you the finished product if you want, basically its so simple youll laugh at it.


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

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