RPTools.net

Discussion and Support

Skip to content

It is currently Fri Apr 28, 2017 3:05 am 






Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: [Nerps!] MapTool Fork based on 1.4.3.+
PostPosted: Tue May 07, 2013 11:59 pm 
I thought I would start my own thread so I could better track and link what patches/fixes/enhancements are currently in my custom JAR.

Current version: 1.4.3.17 (not to be confused with the public versioning)

What's included?
Jump to this post for up to date info...
viewtopic.php?f=60&t=23681&start=45#p262579

getVBL(JSONArray, [0|1])
HTTP functions *no official patch, beta testing only
Darkness as Lightsource [Beta]*patch pending testing
[patch - MapTool] FoW mods + path computation fix



Included forum links where possible

_________________
-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


Last edited by JamzTheMan on Fri Feb 10, 2017 5:31 am, edited 13 times in total.

Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Tue May 07, 2013 11:59 pm 
<reserved>

_________________
-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
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9191
Location: Netherlands
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Wed May 08, 2013 4:07 am 
bringToFront

I'll post all my test findings here, instead of per thread:

bringToFront returns the "current z-order + 1" it should return the "current z-order"
dito sendToBack() but then 'current z-order - 1' where it should return "current z-order"

basically you expect the function to return the value to which the token has just been set.

btw: thanks for implementing this!
______________________
poly line correct
I can't test this as I cannot create a reference file. This because you ALSO included lee's FoW speed-up. Basically I need to identical MT version, with one with triangle VBL lines and one with square VBL lines. Thats the only way to conduct a proper test.
I did one test though, one drawn vbl lines and a cross stamp on a token, then disabled onTokenMove macro. Moved the token 2 squares and MT crashed...
...and then I did a test in b89 current build and that one started to panic as well after a while..and crashed. I'll try to create repeatable situation
--b87 crashes as well... funny.

Ok here the how to:
- draw a VBL polyline, from 0,0 to 10,10 using the meta key so it snaps to grid.
- then place a token at one end of the line so -1,-1
- then set the token to PC and normal vision.
- Hit meta+w (turn on FoW).
- drag the token 1 cell to the left
- drag the token 2 cells to the right: MT crashes!! (that is: EVERY update takes about 2 minutes)

ill create a separate post about this as this happens in b87+

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II and onMouseOverEvent
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Wed May 08, 2013 12:34 pm 
wolph42 wrote:
bringToFront
basically you expect the function to return the value to which the token has just been set.

btw: thanks for implementing this!

No problem, but it requires some testing as not sure if it's going to help if dealing with multiple tokens. There may still be a timing issue.

wolph42 wrote:
poly line correct
I can't test this as I cannot create a reference file. This because you ALSO included lee's FoW speed-up. Basically I need to identical MT version, with one with triangle VBL lines and one with square VBL lines. Thats the only way to conduct a proper test.


Actually you just need the proper VBl and can test in any version of MT.

1. Create VBL using manual PolyLine tool in stock b89.
2. Export map
3. Create VBL using new tool in custom jar (or using vbl macro's)
4. Export map
5. Import both maps into any version of MT, test.

In fact, you should be able to do all of this in stock b89 if you use the macro's to simulate the new drawing tool. All we are testing is if extra data points affect performance.

If you are in the mood, you can test both and see if the new FoW patch improves performance between versions (since in theory you would/could have timings from stock b89)

_________________
-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
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9191
Location: Netherlands
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Mon May 13, 2013 9:34 am 
this took me two hours to figure out...
it turns out that setTokenShape(shape[, id]) does NOT always eat the id of the token. I believe even in most cases the id is ignored.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II and onMouseOverEvent
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Mon May 13, 2013 9:48 am 
Sorry about that, there is indeed an extra line in the code that totally shouldn't be there and overrides the parameter passed in. Not sure how that slipped by.

I need to see what Az has checked in for VBL_Functions class so I can build a patch for it but should be ready for b90 provided Az isn't buiding it right now. :)

_________________
-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
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Mon May 13, 2013 9:55 pm 
Patch submitted and Custom Jar updated with fix.

[patch - MapTool b89] setTokenShape bug fix

_________________
-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
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Fri Jun 07, 2013 12:52 am 
Build updated to includes Lee's [patch - MapTool] FoW mods + path computation fix

_________________
-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
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9191
Location: Netherlands
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Fri Jun 07, 2013 1:01 am 
is your sig updated with this one as well?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II and onMouseOverEvent
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Fri Jun 07, 2013 1:17 pm 
Yes. I only have one build now and my sig always connects to the latest version. The zip is never renamed with version but the JAR inside is.

_________________
-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
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Wed Jun 12, 2013 12:26 pm 
Version i patches a decimal bug for certain language/region areas for the VBL macros.

_________________
-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
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Thu Jun 13, 2013 2:00 am 
OK, version J is out. It's a new build based on latest revisions in SVN + Lee's FoW Patch (with my fix).

*Warning: Any campaign saved with any version past version G is incompatible with b89 and most likely b90 due to the FoW fix. Once b90 is official, I'll decide to rip this patch out or not then.

_________________
-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
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1561
Location: Chicagoland
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Thu Jun 13, 2013 2:59 pm 
I'm going to go through versions quickly I think this week. :roll:

Version K.

o Rolled back jsonSort function to previous revision to restore functionality.
o Changed getVBL to return JSON Array vs String. Test to see if this solves decimal conversion issue.

Wolf, if you could test the second?

_________________
-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
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12064
Location: Tampa, FL
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Thu Jun 13, 2013 3:31 pm 
I will bet that if you make the two new fields that Lee added to the Token class as transient, the campaign files would be fine.

If they're transient, they won't be written to the output. Which means they would be readable on older versions. It only when new fields are added that the older versions can't deal with it -- they can't know if something important is being left out!


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12064
Location: Tampa, FL
 Post subject: Re: [Nerps!] Custom JAR based on b89
PostPosted: Thu Jun 13, 2013 3:34 pm 
JamzTheMan wrote:
o Changed getVBL to return JSON Array vs String. Test to see if this solves decimal conversion issue.

Hm. I saw his comment that it still didn't work but haven't gotten to checking into it yet. I'm not exactly sure why he was having a problem anyway. If numbers are stored in a JSON object as numbers (ie. with quotes around them) then there is no conversion problem. It's only when the number is actually stored in a string and contains the grouping separator for numbers (ie. 5,000.00 or 5.000,00 depending on your locale setting).


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

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