When is a macro trusted?

Please post questions that you think belong here in the parent forum for discussion first. Then use the "Report this Post" function to alert a moderator that the post/thread should be moved. Common thread examples should not include macro programming, but rather user interface issues or usability issues.

Moderators: dorpond, trevor, Azhrei

Forum rules
Do not conduct discussion here. Do that in the parent forum.
Locked
User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

When is a macro trusted?

Post by CoveredInFish »

Inspired by this discussion I tested several combinations of macro location, player/gm, auto-execute and if the macro is player-editable.

Not all combinations seem to be as expected.

I used this macro

Code: Select all

I am [r: if(isTrusted(), "", "not")] trusted.
It was owned by the player client.

Here is my result chart
cif_trust_test.png
cif_trust_test.png (7.12 KiB) Viewed 8315 times

Craig
Great Wyrm
Posts: 2107
Joined: Sun Jun 22, 2008 7:53 pm
Location: Melbourne, Australia

Re: When is a macro trusted?

Post by Craig »

I am at work at the moment so I can't test it, but I believe the player editable flag is ignored on campaign macros isn't it?
If so then the results are what I would expect.
The rules are
  • Anything the GM types into the input box is trusted.
  • Anything a non GM types into the input box is not trusted.
  • Any auto execute macro that is non player editable is trusted.
  • Any auto execute macro that is player editable is not trusted.
  • Any non auto execute macro gets copied into the input box to be edited, so results in one of the first two rules
  • In another 2 months I will be answering this question again :)

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: When is a macro trusted?

Post by Azhrei »

Craig wrote:In another 2 months I will be answering this question again :)
Then perhaps we can get CiF to put his spreadsheet image and the text of your post into the wiki for future generations... ;)

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: When is a macro trusted?

Post by CoveredInFish »

I think I can do that :-) just have to find some spare time.

Maybe the wiki even supports tables better than phpBB, so I might even not use an image to display tabular data :-D

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: When is a macro trusted?

Post by Azhrei »

Great -- thanks!

In the meantime I'm going to move this thread to the WIP-UserFAQ subforum as it does seem to come up periodically. And when CiF has it on the wiki, I'll come back and add a link, trim out the unneeded posts, and lock the thread. :)

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: When is a macro trusted?

Post by CoveredInFish »

I added to the existing Trusted Macro page. Give me feedback if you think something could be done better.

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: When is a macro trusted?

Post by aliasmask »

The values in your chart show up as ✓

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: When is a macro trusted?

Post by CoveredInFish »

It appears as a checkmark here. Page is UTF-8 encoded in my browser (macos, chrome)

Anyone else having problems? I surely can change it to some more basic character...

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: When is a macro trusted?

Post by aliasmask »

Apparently I don't have Dingbats font on my computer.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: When is a macro trusted?

Post by Azhrei »

aliasmask wrote:Apparently I don't have Dingbats font on my computer.
That's surprising. You're running Windows, right? And if that's not Dingbats I don't know what is...!?

:mrgreen:

Okay, I'll wait a couple days to see if we get any other responses, then I'll lock the thread and delete these extraneous posts. :)

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: When is a macro trusted?

Post by aliasmask »

Okay, I'm confused. I only see the "box" character for the check mark in the browser (both chrome and ie8), but maptool does show the check when I use the unicode there.

Apparently I need to update some of my basic fonts. Windows Vista and newer versions which include IPA symbols with Arial, Courier New, Lucida, Tahoma and Times New Roman. I'll see if I can upgrade those fonts.
Last edited by aliasmask on Fri Jan 28, 2011 5:02 pm, edited 1 time in total.

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: When is a macro trusted?

Post by CoveredInFish »

What character encoding shows your browser? IIRC a browser can be set to ignore the webpage specified character encoding...

Clueless if thats not it :(

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: When is a macro trusted?

Post by aliasmask »

There is a bunch of MS products that have the font, but I recently did a reinstall and currently didn't have it. After I downloaded arialuni.ttf, I could then see the check marks. But it doesn't come standard with XP.

Locked

Return to “WIP - User FAQ”