PDA

View Full Version : Export Question



Bidmaron
March 6th, 2014, 03:59
The documentation on Export says:

function export( name, category, author, filename, thumbnail, nodes, tokens )
Note: Rulesets with compatibility version less than 3.0 expect a different set of parameters (name [string], file [string], author [string], nodes [table], nodes [table], nodes [table], thumbnail [string]).

Exports a set of database nodes, images and tokens to a Fantasy Grounds compatible data module.

Parameters

name (string)
The visible name of the new module.
category (string)
The category of the new module.
author (string)
The author of the new module.
filename (string)
The file name of the new module.
thumbnail (string)
The file name of the thumbnail graphic which should be used for the module.
nodes (table)
A table of string values indicating the database node identifiers for the nodes which should be exported.
tokens (table)
A table of string values indicating the file names for the tokens which should be exported as host module data.

What exactly is the category parameter intended to be (I think that is the window category tab at the bottom of a window where the data is to be filed, but just want to make sure)? How do you export images using this call programmatically?
Lastly, what are the three node parameters under the prior-to-3.0 call?

Griogre
March 6th, 2014, 08:26
The category parameter effects how library modules are grouped in the left pane of the library list. The don't have any effect on adventure modules that I am aware of. The categories in the screen below are 4E Core, 4E Dungeon Master's Supplement, and 4E Player's Supplement.

https://i105.photobucket.com/albums/m222/Griogre/Catagory_zps9bb70213.png

The nodes are the checkboxes in the export window. The old three nodes were client, db and common (I don't remember the order).

Bidmaron
March 7th, 2014, 02:33
Thanks, Griogre.