RPTools.net

Discussion and Support

Skip to content

It is currently Fri Jun 23, 2017 10:34 pm 






Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Tue Jul 01, 2008 6:48 pm
Posts: 6237
 Post subject: Re: Bug: Library token duplication
PostPosted: Fri Jan 07, 2011 10:52 am 
The Schnibble wrote:
Azhrei wrote:
... as part of the onCampaignLoad macro execution.


Or at any other time?

I tried typing [setLibProperty("MyProp",1,"Lib:MyLib")] in the chat window while positioned on another map than the one my test library was located, and it duplicated too. The phenomenon seems not to be related to the onLoadCampaign macro.

I only tried library tokens, though, so I didn't know that it happened with any token.


That would support reports I'd received about one of my frameworks: they were getting duplicated Lib:tokens although my onCampaignLoads don't make use of the suspected functions (or they make use of one call, but it's the right one, or whatever).

_________________

What I'm Working On

MapTool Tutorials:
Introduction to Tokens
Introduction to Properties
Introduction to Macro Writing
Introduction to Light and Sight


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Tue Feb 07, 2006 12:55 pm
Posts: 383
 Post subject: Re: Bug: Library token duplication
PostPosted: Fri Jan 07, 2011 11:04 am 
Rumble wrote:
That would support reports I'd received about one of my frameworks: they were getting duplicated Lib:tokens although my onCampaignLoads don't make use of the suspected functions (or they make use of one call, but it's the right one, or whatever).

Yep, spoilt my last game using your slim framework. Hopefully this'll get sorted with b81!!

_________________
D&D qualities are related inversely to those of Poker... and I love both.
http://www.yorkpoker.co.uk


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12068
Location: Tampa, FL
 Post subject: Re: Bug: Library token duplication
PostPosted: Fri Jan 07, 2011 2:16 pm 
The Schnibble wrote:
Azhrei wrote:
... as part of the onCampaignLoad macro execution.

Or at any other time?

Yes. I was simplifying. :|

It happens whenever Wiki: setLibProperty() is called on a Lib: token from a macro that is either (a) on the Campaign panel and the current map is not the one containing the Lib: token, or (b) on a Lib: token on a map that is not the current map and an access is made to a Lib: token on a different map.

In any case, this is fixed in tonight's build. (Wanted to get b81 out last night but RL interfered. It'll be tonight now.)

However, there are other issues. aliasmask said he had similar problems with Wiki: setProperty(), for example. I created a test campaign in which the onCampaignLoad used Wiki: setProperty() on an ordinary token. It functioned properly when the token was on the same map (it updated the property), when the token was on another map (it generated an error), and when the token appeared with the same name on two maps (it updated the one on the current map). No duplication occurred. I tested this with the campaign file saved with each map as the current one (since the current one is restored when a campaign is loaded and I wanted to test running oCL when the Lib: token was not on the current map).

If anyone has a campaign which demonstrates the problem for other MTscript functions, I'd like to have a copy. Please post a link where I can download it. Please reduce it to the smallest possible example that demonstrates the problem.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12068
Location: Tampa, FL
 Post subject: Re: Bug: Library token duplication
PostPosted: Mon Jan 10, 2011 10:35 pm 
Azhrei wrote:
If anyone has a campaign which demonstrates the problem for other MTscript functions, I'd like to have a copy. Please post a link where I can download it. Please reduce it to the smallest possible example that demonstrates the problem.

No replies in the last few days, so I'm going to consider this closed for now.


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

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





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman