PDA

View Full Version : Accessing Loaded Library Modules through an extension



Ken L
September 2nd, 2016, 20:19
Is this possible.

I recall asking this question ages ago and received a vague 'yeup' of sorts. Now I'm at the point where I can't seem to find any documentation on how to perform such an action, and this is the only blocking obstacle. For my use case, I have a library of spells, and I desire checking a parsed spell name against a known spell reference list to pull datum from.

Ideally I'd like to also be able to check loaded modules as well pull some cursory XML information to validate that such a library can be used.

If it's not possible, then I have a chunk of work I must now discard...

Trenloe
September 2nd, 2016, 21:01
Module data is stored in the FG database format, with a module identifier added after the node id - using @<module name>

See "Module data" in the ruleset modification guide here: https://www.fantasygrounds.com/modguide/database.xcp

Further info here: https://www.fantasygrounds.com/refdoc/DB.xcp#getPath

Details on what you can do with modules (checking they exist, activating them, etc.) is in the "Module" package section of the standard FG ruleset reference developer guide: https://www.fantasygrounds.com/refdoc/Module.xcp