RPTools.net

Discussion and Support

Skip to content

It is currently Wed May 24, 2017 1:10 am 






Reply to topic  [ 12 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Great Wyrm
 
Joined: Sun Jun 22, 2008 6:53 pm
Posts: 2102
Location: Melbourne, Australia
 Post subject: MapTool 1.4.0.5
PostPosted: Sun Jun 12, 2016 12:00 am 
This build contains only bug fixes (all the new juicy stuff is going into dev/test build).

Bugfixes
  • Resize free size figure tokens (Jagged)
  • Fixes for Z Order on freesized objects (Jagged)
  • Fixes for resizing stamps that are type "figure" (Jagged)
  • Small iso fixes (Jagged)
  • Fix for Missing images (Jamz)

The new json functions are useful for generating multiple rolls (for characters, npcs what have you). In both cases these are simple roll expressions not macros.
json.rolls
This function takes 2 or 3 parameters and returns a json array
json.rolls(roll, dim1, dim2) => returns a json array with the rolls performed
e.g.
{json.rolls("3d6", 6),2} => [ 11, 7, 15, 8, 10, 13 ]

The three parameter version returns a two dimensional array
e.g.
{json.rolls("3d6", 6, 4),2} => [ [ 11, 13, 11, 13 ], [ 8, 11, 17, 10 ], [ 8, 11, 14, 11 ], [ 6, 8, 13, 6 ], [ 6, 11, 8, 10 ], [ 10, 7, 17, 11 ] ]

json.objrolls
Is similar to json.rolls() but returns a json object.
It takes 3 parameters
json.objrolls(names, stat, rolls)
This will generate rolls for all the stat for each "name". rolls is either a single string with a roll expression in which case every stat will use same roll expression, or a json array with a roll expression for each stat (so must be same size as stat).
e.g.
<pre>{json.indent(json.objrolls("['henchman1', 'henchman2', 'henchman3']", "['Str', 'Dex', 'Con', 'Int', 'Wis', 'Chr']", "3d6"),2)}</pre>
Code:
{
  "henchman1":   {
    "Str": 10,
    "Dex": 12,
    "Con": 10,
    "Int": 10,
    "Wis": 8,
    "Chr": 12
  },
  "henchman2":   {
    "Str": 11,
    "Dex": 10,
    "Con": 7,
    "Int": 13,
    "Wis": 9,
    "Chr": 7
  },
  "henchman3":   {
    "Str": 10,
    "Dex": 10,
    "Con": 10,
    "Int": 12,
    "Wis": 15,
    "Chr": 13
  }
}


<pre>{json.indent(json.objrolls("['henchman1', 'henchman2', 'henchman3']", "['Str', 'Dex', 'Con', 'Int', 'Wis', 'Chr']", "['3d6+1', '3d6', '3d6', '3d6-2', '3d6', '2d6']"),2)}</pre>
Code:
{
  "henchman1":   {
    "Str": 11,
    "Dex": 12,
    "Con": 13,
    "Int": 8,
    "Wis": 10,
    "Chr": 11
  },
  "henchman2":   {
    "Str": 12,
    "Dex": 11,
    "Con": 12,
    "Int": 8,
    "Wis": 12,
    "Chr": 3
  },
  "henchman3":   {
    "Str": 12,
    "Dex": 13,
    "Con": 9,
    "Int": 8,
    "Wis": 13,
    "Chr": 7
  }
}


  • Added a client id to getInfo. This will return the id of a client (an essentially randonmly generated id that can't be used to identify your ip etc). This is so macro writers can save settings per client in the campaign.
  • Added json.removeFirst macro function, similar to json.difference() but will only remove the first occurrence of match. e.g. json.removeFirst('[2,2,4,5,6,6,4]', '[2,6]') = [2,4,5,6,4]
  • math.abs -- Return the absolute (non negative) of of a value.
  • math.ceil -- Return the nearest whole number, rounding up
  • math.floor -- Return the nearest whole number, rounding down
  • math.cos -- Return the cosine of an angle (angle in degrees)
  • math.cos_r -- Return the cosine of an angle (angle in radians)
  • math.sin -- Return the sine of an an angle (angle in degrees)
  • math.sin_r -- Return the sine of an angle (angle in radians)
  • math.tan -- Return the tangent of an angle (angle in degrees)
  • math.tan_r -- Return the tangent of an angle (angle in radians)
  • math.acos -- Return the inverse cosine of a ratio (returned angle is in degrees)
  • math.acos_r -- Return the inverse cosine of a ratio (returned angle is in radians)
  • math.asin -- Return the inverse sine of a ratio (returned angle is in degrees)
  • math.asin_r -- Return the inverse sine of a ratio (returned angle is in radians)
  • math.atan -- Return the inverse tangent of a ratio (returned angle is in degrees)
  • math.atan_r -- Return the inverse tangent of a ratio (returned angle is in radians)
  • math.atan2 -- A version of atan that takes 2 arguments instead of a ratio so that it can return angle based on signs of inputs (allowing you to determine quadrant). Return is in degrees
  • math.atan2_r -- A version of atan that takes 2 arguments instead of a ratio so that it can return angle based on signs of inputs (allowing you to determine quadrant). Return is in radians
  • math.cbrt, math.cuberoot -- Return the cube root of a number
  • math.hypot, math.hypotenuse -- Return the hypotenuse (h = sqrt(a*a + b*b)) for the two sides passed in
  • math.log -- Return the natural logarithm of a number
  • math.log10 -- Return the base 10 logarithm of a number
  • math.min -- Returns the minimum number from its arguments (2+ arguments)
  • math.max -- Returns the maximum number from its arguments (2+ arguments)
  • math.mod -- Returns the modulus of the arguments (remainder from the division)
  • math.pow -- Returns the value of the first argument raised to the power of the second
  • math.sqrt, math.squareroot -- Returns the square root of a number
  • math.toRadians -- Converts an angle from degrees to radians
  • math.toDegrees -- Converts an angle from radians to degrees
  • math.pi -- Returns the value of PI, mmmmm pie...
  • math.e -- Returns the mathematical constant e (base of natural logarithm)
  • math.isOdd -- Returns 1 if the argument is odd, 0 if it is even
  • math.isEven -- Returns 1 if the argument is even, 0 if it is odd
  • math.isInt -- Returns 1 if the argument is an integer, 0 if it is not.


Allow scripts to modify max loops/recursion post (Craig).


  • Map Visible Commands thread (Jagged).
  • Table Additions thread (Jagged).
  • Copy Map Function thread (Jagged).
  • Add UPnP Discovery Timeout preference to UI (joshsziegler).
  • Add new macro function setTokenSnapToGrid thread (DarkAlf).
  • Tweak display and drawable selection (Jagged).
  • Display drawn elements in split panel (Jagged).
  • Allow DrawablesGroup to have children (Jagged).
  • ViewDrawing thread (Jagged).
  • Add double click centre function to draw panel (Jagged).
  • Populate the change layer and arrange commands. (Jagged).
  • Add smaller icons for templates. (Jagged).


  • Isometric Maps (Jagged) [BETA FEATURE] Isometric Map & new Token type
  • Set view area macro command (Jagged)
  • Add setTokenWidth/Height macro functions (Dark Alf)
  • Add setZoom(x) and getZoom() macro functions (Jagged)
  • Fixes for stylesheet removal issues in htmlframe/form with Java 1.7 and up (Yorik + Username)
  • New right-click menu option on Stamps to allow user to select a pixel range and enter the number of cells/squares in the selection (JamzTheMan)
  • Start of a WebAPI (not ready for use yet).
  • German Language Updates (FantasyTeddy)


Top
 Profile  
 
 Offline
Giant
 
Joined: Mon Aug 03, 2015 5:30 pm
Posts: 159
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Wed Jun 15, 2016 10:20 pm 
<Moved to the correct thread. It was my turn to be an idiot.>


Last edited by taustinoc on Thu Jun 16, 2016 5:36 pm, edited 1 time in total.

Top
 Profile  
 
 Offline
Giant
 
Joined: Mon Aug 03, 2015 5:30 pm
Posts: 159
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Thu Jun 16, 2016 11:09 am 
<Moved to the correct thread. It was my turn to be an idiot.>


Last edited by taustinoc on Thu Jun 16, 2016 5:36 pm, edited 1 time in total.

Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1572
Location: Chicagoland
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Thu Jun 16, 2016 11:51 am 
Hi, can you post your issues under the dev thread please? viewtopic.php?f=1&t=26693

We don't want to confuse any folks running 1.4.0.x 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  
 
 Offline
Giant
 
Joined: Mon Aug 03, 2015 5:30 pm
Posts: 159
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Thu Jun 16, 2016 11:57 am 
My apologies. I thought (or not, as the case may be) I'd put it in a thread relating to the dev builds.


Top
 Profile  
 
User avatar  Online
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3599
Location: MD
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Thu Jun 16, 2016 3:32 pm 
JamzTheMan wrote:
We don't want to confuse any folks running 1.4.0.x versions...

Someone might want to move those posts, too. It does make it seem like he's got problems with this newest release.

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Feb 09, 2009 10:53 am
Posts: 412
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Mon Aug 08, 2016 9:33 am 
Uhm, what's the difference between math.ceil/math.floor and the old regular ceil/floor?

_________________
"There are many ways my Son, to find where the souls of Demons remain...
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Oct 26, 2009 4:51 am
Posts: 301
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Sat Dec 17, 2016 4:18 am 
Excuse me for being thick, but have we reached a point where old macros won't work with the 1.4 series? I had a look at each of the 1.4.x release threads and it wasn't obvious. At what point do I have to update MTscript to JavaScript?


Top
 Profile  
 
User avatar  Online
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7696
Location: Bay Area
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Sat Dec 17, 2016 4:30 am 
I think there's just new ways of doing old stuff but the old stuff is still there. The java options right now are very limited just covering a couple of basics. The main advantage to the java code options is probably speed, but I haven't tested out that theory.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1572
Location: Chicagoland
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Sat Dec 17, 2016 9:20 am 
Nope, all the old macros functions work as is just fine. We currently have no intention of breaking that functionality.

_________________
-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  
 
User avatar  Offline
Dragon
 
Joined: Mon Oct 26, 2009 4:51 am
Posts: 301
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Sat Dec 17, 2016 10:17 am 
Awesome!


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Sat Nov 15, 2008 2:28 pm
Posts: 820
Location: The City of Roses, Oregon
 Post subject: Re: MapTool 1.4.0.5
PostPosted: Tue Feb 21, 2017 7:13 pm 
I've been away for awhile, and busy with an instant family (adopted 3 girls).
So glad to see this is moving right along still.
Nice work all!

_________________
I am a special snowflake!


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 12 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 are 0 users online :: 0 registered, 0 hidden and 0 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 0 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman