PDA

View Full Version : Question about notes



madman
October 27th, 2010, 00:21
I have been messing around with making notes sharable, with no luck at all. Can someone point me to the changes i need to affect. i use the d20_JPG, and would be adding it to an extension.

Community life raft please.

Chris

saithan
October 27th, 2010, 00:37
I could be wrong on this but i noticed that I can have entries in the db notes show for other players by using addHolder.
https://www.fantasygrounds.com/refdoc/databasenode.xcp#addHolder

Moon Wizard
October 27th, 2010, 01:54
Essentially, there are 3 parts you would need to create a "public" notes option.

First, you need a check box or other flag to indicate whether a note should be public.

Second, you need to hook into the onLogin event to share any existing public notes with the user who just logged in. (i.e. addHolder)

Third, you need to capture a value change event when the note is set to public, so that you can share the recently public note with all logged in users.

Note: All the events need to be captured and handled on the host.
Note 2: Make sure that you do not change the owner of the node while you are doing this. Check to see if the node is owned by the user before using addHolder.

Hope that helps,
JPG

Moon Wizard
October 27th, 2010, 01:54
The CallOfCthulhu ruleset actually implements a public notes mechanism, albeit in a slightly different method.

Cheers,
JPG

StuartW
October 27th, 2010, 06:50
The Base Ruleset has a shared notes facility (using a similar approach to CoC and BRP) and is free-to-reuse IP.

Stonewyvern
October 27th, 2010, 23:00
The Base Ruleset has a shared notes facility (using a similar approach to CoC and BRP) and is free-to-reuse IP.

Is that incorporated in the basic Ruleset or something I would have to download seperate. Having the ability to write notes, both open to the everyone and hidden, would be invaluable.

StuartW
October 27th, 2010, 23:07
The Base Ruleset is available on the FG Wiki, and is separate from the d20/bundled rulesets. It does, however, allow you to examine and replicate the notes mechanism if you wish.

The best answer would be for Smiteworks/JPG to build this stuff (or a variant thereof) into the bundled rulesets, but I should imagine it would be some way down a very long list of requests...

Stuart

Bidmaron
March 13th, 2011, 06:56
What say you, Smiteworks? Will we see this anytime soon?

madman
March 13th, 2011, 21:37
I have the notes working on the gm side.
But the players can no create a new note. I assume this is because something has a name that is not the same between d20_jpg and Base rulset.

Not finding a fix, hope to soon though.

Chris

Moon Wizard
March 14th, 2011, 02:06
Notes can currently be shared by the GM by opening the note, right-clicking and selecting the "share" menu item.

While this feature is on the wish list, it is not currently scheduled. I think it could be implemented via an extension if someone wanted to take the time to research and build.

Regards,
JPG