PDA

View Full Version : Module Creation



dellanx
January 10th, 2021, 22:15
How does one get this level of module organization? When I export an NPC module, all I get is "NPCs". Does this require XML editing?


<library>
<testsummon static="true">
<categoryname type="string"></categoryname>
<name type="string">testsummon</name>
<entries>
<npc>
<librarylink type="windowreference">
<class>reference_list</class>
<recordname>..</recordname>
</librarylink>
<name type="string">NPCs</name>
<recordtype type="string">npc</recordtype>
</npc>
</entries>
</testsummon>
</library>


What i don't understand is NPCs may be changed to NPC 1, NPC 2, etc...


42771

Kelrugem
January 10th, 2021, 22:24
Yeah, I think such things are done directly in xml :)

By the way, you may want to cut down your screenshot; one can see your campaign password there :D (because you took a screenshot of all your monitors, also with your FB page and the conversations there)

dellanx
January 10th, 2021, 22:27
Yeah, I think such things are done directly in xml :)

By the way, you may want to cut down your screenshot; one can see your campaign password there :D (because you took a screenshot of all your monitors, also with your FB page and the conversations there)

Opps thought I trimmed that thanks!

Talyn
January 10th, 2021, 22:31
[deleted body content]

dellanx
January 10th, 2021, 22:34
Aside from "hi, here's my password" that was waaaaaaaay too big a shot anyway. :) Thanks for paring it down to something a bit more manageable.

The library category is literally in the export dialog though:

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=42772&stc=1&d=1610317853

Unless you're talking about breaking down the NPCs per level in which case, yes that'd be an XML job.

42772

May one have more then one category per module?

Talyn
January 10th, 2021, 22:39
No, and I think I misunderstood what you were asking originally since the screenshot was so huge and you copied the library text so... anyway the category that you set in the export dialog is the text category in your library page and there's only one of those.

Could you post a more concise example of what you're trying to do? There are a couple list types already in FG that you could point to (still an XML job) or create a custom list. I do that all the time for practically every project I work on. Some lists are easy (FG does all the hard work) where some of the older list types are fully manual (you have to build each entry yourself) which is still ... "easy" it's just time-consuming and tedious.

dellanx
January 10th, 2021, 22:51
No, and I think I misunderstood what you were asking originally since the screenshot was so huge and you copied the library text so... anyway the category that you set in the export dialog is the text category in your library page and there's only one of those.

Could you post a more concise example of what you're trying to do? There are a couple list types already in FG that you could point to (still an XML job) or create a custom list. I do that all the time for practically every project I work on. Some lists are easy (FG does all the hard work) where some of the older list types are fully manual (you have to build each entry yourself) which is still ... "easy" it's just time-consuming and tedious.

I export a Module "test-summon"

42774

The Astral Deva and Barbed Devil (hamatula) are organized under NPCs. I would like there to be Summoned NPC 9 for Astral Deva and Summoned NPC 8 for Barbed Devil (hamatula).

Just like in this module: Summonable Monsters.mod here (https://www.fantasygrounds.com/forums/showthread.php?21627-Pathfinder-Summonable-Monsters-Nature-s-Ally-amp-Familiars-Modules). The problem with that module is that the special abilities are not parsed. I am able to do that, but I would like to organize my summoned monsters by spell type.

Thanks

Talyn
January 10th, 2021, 22:59
Oh, gotcha. What Blackfoot did was create separate XML lists for each summon level, which was really the only way to do it back in 2013. What I'd probably do today is add a custom tag to each monster entry then code a single reference_groupedlist to have FG create the list and categorize them for me on the fly. Either way it's six of one, half-dozen of the other, and it's working in the XML no matter what.

Something along the lines of:



<summonlevel type=string">Summon Monsters 8</summonlevel>


which I would manually add to each NPC once it's been exported.

dellanx
January 11th, 2021, 00:10
Not getting very far, came up with this, but something is wrong:



<name type="string">NPCs</name>
<recordtype type="string">npc</recordtype>
<reference_list type="string">summonlevel</reference_list>



and



<summonlevel type="string">Summon Monsters 8</summonlevel>
<name type="string">Barbed Devil (hamatula)</name>


Thanks

dellanx
January 11th, 2021, 00:34
Oh, gotcha. What Blackfoot did was create separate XML lists for each summon level, which was really the only way to do it back in 2013. What I'd probably do today is add a custom tag to each monster entry then code a single reference_groupedlist to have FG create the list and categorize them for me on the fly. Either way it's six of one, half-dozen of the other, and it's working in the XML no matter what.

Something along the lines of:



<summonlevel type=string">Summon Monsters 8</summonlevel>


which I would manually add to each NPC once it's been exported.


How and where would I add a " custom tag to each monster entry"?

is there an example of a reference_groupedlist?

dellanx
January 11th, 2021, 10:17
Would this work as a tag for the NPCs?

42780

Talyn
January 11th, 2021, 15:47
No, that'll just make a huge mess of the NPCs by Type list and using that method would also require a Lua script (extension) to sort everything to populate a list.

dellanx
January 11th, 2021, 19:13
No, that'll just make a huge mess of the NPCs by Type list and using that method would also require a Lua script (extension) to sort everything to populate a list.

Talyn, This is cool, love it (https://www.fantasygrounds.com/forums/attachment.php?attachmentid=17463&d=1484639214).

Talyn
January 11th, 2021, 19:20
Check Discord :)

dellanx
January 11th, 2021, 22:21
Check Discord :)

I posted a LIST, how does that look?

dellanx
January 14th, 2021, 23:23
Finished Summoned Creatures Level I to V (Updated).

Screenshots

42882
42883

dellanx
January 17th, 2021, 00:33
Just completed needs your magic touch Talyn!


42907