RPTools.net

Discussion and Support

Skip to content

It is currently Sat Nov 18, 2017 12:27 pm 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Dragon
 
Joined: Tue Apr 20, 2010 7:22 pm
Posts: 600
 Post subject: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sat Apr 22, 2017 4:27 pm 
We started a new game last night, using a framework I wrote for 1.3.91. But we've upgraded to 1.4.0.5 and we noticed some weird outputs to the chat window.

For example, in the older version, if you rolled a save, only the player and the DM would see that you had made a saving throw. However, in 1.4.0.5, the same macro outputs a blank string to all the other players.

I distilled the macro down to its simplest form and its just...

Code:
[g,s : "rolls a save: "]


Again, in 3.91, this code just sent to the GM and the token owner, no output at all to the other players. But 1.4, the other players are getting a blank output in their chat windows.

Is there some fundamental difference between the versions that I need to account for?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sat Apr 22, 2017 6:11 pm 
I don't see that behavior in 1.4.1.7. The most common reason for blank output is use of comments <!-- comment --> in your code which forces blank output. It's not really blank though. It's just that html comments are not shown. You can see what your "blank" output is by saving the chat log and looking at it.

_________________
Downloads:


Top
 Profile  
 
 Offline
Dragon
 
Joined: Tue Apr 20, 2010 7:22 pm
Posts: 600
 Post subject: Re: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sat Apr 22, 2017 6:18 pm 
Yep, I get that about the comments, have been bitten by that i the past.

But in the example I've given below, my macro is literally just that one line...

[g,s : "rolls a save: "]

Now, its called form a macro link, like so...

[h: link = macroLinkText("Actions@Lib:PC_CombatMacros", "all", "", "selected")]

All the player macros are called from buttons on an XML form, filtered through the "Actions" macro to determine what specific macro to call.

...and I know the output there is "all" but that what was all working in ver.89 and i'm only now having problems with it in 1.4.0.5

I fear I'm going to have to re-write tons of this framework to get the chat output to work properly.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sat Apr 22, 2017 6:36 pm 
Well "all" will output to all even without output. Just the nature of the beast. I recommend doing none, passing a list of ppl to output too and use broadcast.

_________________
Downloads:


Top
 Profile  
 
 Offline
Dragon
 
Joined: Tue Apr 20, 2010 7:22 pm
Posts: 600
 Post subject: Re: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sat Apr 22, 2017 6:55 pm 
sigh, so basically, having to re-write EVERYTHING that had been previously working in .89. Because I didn't use broadcast for anything in 89 and everything worked just fine, by specifying "s", "g", or "r" in the roll options.

So, if I go that route, is there a way to output the token's portrait to the chat window? Normally broadcast doesn't show that.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7947
Location: Bay Area
 Post subject: Re: Output differences between 1.3.91 and 1.4.0.5
PostPosted: Sun Apr 23, 2017 2:57 am 
I recommend taking a look at my starter lib token: viewtopic.php?f=20&t=25531&p=255459#p255459

I basically use this when starting a new project. It includes a generic output macro with additional options for output like "other" and "owner", some basic debugging macros and turns all your macros in to UDFs.

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 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 4 users online :: 2 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: DreadKatak, Google [Bot] and 2 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman