PDA

View Full Version : Question about code



Artimer1
July 5th, 2023, 00:34
I recognize that this may be an absurd request, but figured I would give it a try anyway:

I was wondering if there is a possibility for a user like me to have access to the code base in some way in order to develop an API for importing and updating player-created fantasy grounds NPCs and rollable tables?

I have created a cool system for myself to generate NPCs and tables with spreadsheets, and its been great to be able to use the text importer for those two things to quickly import them into my campaign. As my campaign has progressed, I am recognizing the potential need for me to push updates to the NPCs and tables I've generated, and instead of reimporting updated versions of them and overwriting them all in their respective tables manually, I have fantasized about being able to just do a few curl commands and have it all taken care of.

Is there any chance that this could be allowed?

Moon Wizard
July 5th, 2023, 00:46
All of that can be done through the existing APIs. There is already a random table rolling system for basic chained table rolling; as well as a story templating system that uses tables to generate random story entries. Similar features not already supported could be generated by building a custom extension that modifies the base core framework to support whatever flavor you like.

Regards,
JPG

LordEntrails
July 5th, 2023, 00:48
The NPCs are stored in XML files that are already accessible to you. LUA is used (along with XML) in the rulesets for logic evaluation (automation etc). That too is already available to you. The core executable, which is accessed via APIS in the rulesets (via LUA) is not accessible, but it's not needed for what you want to do (if I understand correctly your desire).

See here for the Developer Guide: Developer Guide - Fantasy Grounds Customer Portal - Confluence (atlassian.net) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644285/Developer+Guide)

Artimer1
July 5th, 2023, 02:21
Awesome, thanks to both of you