RPTools.net

Discussion and Support

Skip to content

It is currently Fri Feb 23, 2018 11:47 am 






Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Quick'n'Dirty Token Property Editing Dialog
PostPosted: Thu Jun 17, 2010 11:21 am 
Full Bleed wrote:
Raoden, any chance that you're going to update this tool with some of the code I posted above and using resetProperty?

Yes ... It's taking a while because I'm working on a "mega-Library" that includes much more than just the Property Editor. But I'm making good progress, and pretty soon I'll be able to post a version of it up here. Then I can also strip away everything except the Token Manager and post a new version here.

It should have several good new (minor) features, like easy macro deletion.

Quote:
I tried to run this in b69 and got the error:

Code:
Function getPropertyNames requires no more than 1 parameters; 2 were provided.


I'm not sure why, the macro appears to be "trusted".

Yeah, I'm not sure why either. But if you're using b69 and you want to fix it without waiting for me, just throw in a [h: switchToken( id )] and drop the second parameter to getPropertyNames. Might as well also change getPropertyNames to getPropertyNamesRaw, to preserve capitalization.

Quote:
Also, I'm not sure moving to a json was the best thing when listing the props because now they show out of alphabetical order. Was there some reason why the switch to json was made?

I made the switch in case some unlucky soul enters property names with commas in them. That will probably still cause all kinds of problems, but at least the Token Manager won't be one of them.

I actually dropped the alphabetical thing on purpose, because I didn't like it. I preferred to keep Strength/Dexterity/etc. in a block together, for example. But if other people did like alphabetization, I can put it back in (even with the json style).

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Quick'n'Dirty Token Property Editing Dialog
PostPosted: Fri Jul 02, 2010 6:49 pm 
So, I've been semi-absent for a few weeks due to moving to a different state (which will happen again in a couple months). But I should be able to contribute some things again in the near future.

First thing on the menu is the bug you've been reporting, FullBleed. In b70, I can't duplicate any problems with getPropertyNames(). Azhrei seems to have fixed that in b70. What I do get is a parameter error involving Wiki: setPropertyType(). I'll be looking into that more, to either report a bug or find a workaround ...

Regardless, for versions b68 and higher, I should now be able to eliminate the complex "remove properties by copying a token" process anyway.

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Quick'n'Dirty Token Property Editing Dialog
PostPosted: Fri Jul 02, 2010 8:20 pm 
Aaand v1.4 is up. This should run just fine in any build b63 or newer, now. In appropriate MapTool builds, it should also display token properties with proper capitalization, which is an aesthetic relief to me.

It does not yet include the deluxe user interface I've been working on. That should still be coming soon, hopefully.

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Quick'n'Dirty Token Property Editing Dialog
PostPosted: Mon Jul 05, 2010 1:12 am 
v1.4 gets errors if you try to build up a JSON from scratch using it. I can't figure out why, since I don't think I changed any of the JSON Editor code recently ...

The token that will soon become v2.0 doesn't have this problem, though, so I may just ignore the problem until I can get that out. Now if only my apartment complex would stop having Internet connection issues ...

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Tue Jul 06, 2010 3:44 am 
Version 2.0 is up.

A lot of the time and effort that it's taken me to get this set up will not be evident if you don't (or won't) use some other tools I've been developing. There are a few macros whose purpose might not be evident. But hey. It still works, and at a reasonable speed.

What's more, I think the new interface is a little more pleasant and a little more intuitive.

And hopefully I've fixed any issues with the JSON Editor -- although I won't be surprised if I missed something. Let me know, so I can fix it!

And I finally figured out that feature I mentioned many versions ago: allowing you to change the order of a JSON Array.

Further suggestions welcome.

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9483
Location: Netherlands
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Tue Jul 06, 2010 4:25 am 
Awesome! I just discovered this and it works great. This is actually one of the few drop ins that
1. I can actually drop in and it works (immediately)
2. I actually have a use for in my obscure Framework.

In all thanks!!

so.... suggestion wise :D. I was wondering whether its possible to show the properties unsorted? That is: in the same order as in the settings?

_________________
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,onMouseOverEvent and
DPI.
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
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Tue Jul 06, 2010 3:56 pm 
Great! I'm glad to hear it's being put to good use.

wolph42 wrote:
so.... suggestion wise :D. I was wondering whether its possible to show the properties unsorted? That is: in the same order as in the settings?

Unfortunately, if I leave out the json.sort(), it still doesn't put them in the order they're defined in Campaign Properties. I would prefer that too. But when I list the default Basic properties, for example, they come out as:

[ "defense", "hp", "strength", "elevation", "wisdom", "dexterity", "charisma", "description", "movement", "ac", "constitution", "intelligence" ]

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9483
Location: Netherlands
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Tue Jul 06, 2010 5:15 pm 
I suspected so much. What you maybe can do is split up the hidden and unhidden properties. That would already make a lot of diference.

_________________
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,onMouseOverEvent and
DPI.
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
Dragon
 
Joined: Thu Sep 28, 2006 3:20 pm
Posts: 347
Location: Oklahoma, US
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Sat Feb 19, 2011 11:15 am 
Useful Tool. Bump. This could probably be in the dropin forum

_________________
Hoody! Hoo!

Check out the Record of our Game Sessions.


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Mon Mar 14, 2011 7:13 pm 
Thanks Flak. Back when I was an active participant, I guess this was easy to access via my sig ... alas, I'm on indefinite hiatus from regular participation in MapTool. Hopefully I can get back into it this fall.

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
 Offline
Giant
 
Joined: Thu May 13, 2010 12:52 pm
Posts: 125
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Wed Mar 16, 2011 2:26 pm 
This is a nice tool, is it possible to have the properties display in the order they exist in the tokens instead of alphabetically?

Thanks


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9483
Location: Netherlands
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Thu Mar 17, 2011 3:33 am 
Zandel wrote:
This is a nice tool, is it possible to have the properties display in the order they exist in the tokens instead of alphabetically?

Thanks


Raoden wrote:
Great! I'm glad to hear it's being put to good use.

wolph42 wrote:
so.... suggestion wise :D. I was wondering whether its possible to show the properties unsorted? That is: in the same order as in the settings?

Unfortunately, if I leave out the json.sort(), it still doesn't put them in the order they're defined in Campaign Properties. I would prefer that too. But when I list the default Basic properties, for example, they come out as:

[ "defense", "hp", "strength", "elevation", "wisdom", "dexterity", "charisma", "description", "movement", "ac", "constitution", "intelligence" ]


:wink:

_________________
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,onMouseOverEvent and
DPI.
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
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Thu Mar 24, 2011 2:43 pm 
To paraphrase Wolph's answer, no, it doesn't seem possible to preserve tokens' property ordering.

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8012
Location: Bay Area
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Mon Jul 11, 2011 4:17 am 
I like it. I was just checking it out to see if I'm about to duplicate something that is already out there. Interesting note though, if a prop value has html, it will show the result of the html rather than the text. To output the text, I would just do a replace(var,"<","&lt;"). For example, I have this text:

Code:
<span title="Ranged touch attack"><a href="macro://page@lib:asm/none/Impersonated?spell.acidarrow">Acid Arrow</a></span>

And when I click your link, it just executes the macro instead of editing it. Funny thing is I found an error in my code using this too. The title should be longer, but a ; broke the text.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Fri Dec 18, 2009 2:33 am
Posts: 382
Location: San Diego
 Post subject: Re: Raoden's Quick'n'Dirty Token Manager
PostPosted: Mon Jul 11, 2011 7:16 pm 
Wow, this thing's been up for a year, and suddenly it needs more work? Curse you, aliasmask! :P
aliasmask wrote:
I like it. I was just checking it out to see if I'm about to duplicate something that is already out there. Interesting note though, if a prop value has html, it will show the result of the html rather than the text. To output the text, I would just do a replace(var,"<","&lt;"). For example, I have this text:

Code:
<span title="Ranged touch attack"><a href="macro://page@lib:asm/none/Impersonated?spell.acidarrow">Acid Arrow</a></span>

I will look into that next time I'm messing around with MapTool code ... which I don't get around to very often anymore.

Quote:
And when I click your link, it just executes the macro instead of editing it. Funny thing is I found an error in my code using this too. The title should be longer, but a ; broke the text.

Which link would that be? And what error in your code did you find?

_________________
"Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed."
- G. K. Chesterton

Wonderful HTML/CSS reference * Color Manager * Token Manager 2.0


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 77 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  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