PDA

View Full Version : Error in the lua Api Documentation



chillhelm
September 17th, 2020, 13:27
The DB.deleteChildren() function in the lua api is not correctly documented.
Both in the old API reference https://www.fantasygrounds.com/refdoc/DB.xcp#deleteChildren and the Unity API reference https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4063529/DB
the function DB.deleteChildren is supposed to take 1 parameter. When you try to call it like that, you get an error on the console, claiming that a necessary 2nd parameter is missing.

Cheers,
Chillhelm

Moon Wizard
September 17th, 2020, 17:24
The second API reference should be the one used going forward. I've updated that one; and I'm also going to patch the clients to support a single databasenode parameter in future builds. Currently, only string paths are supported as a single parameter.

Regards,
JPG

chillhelm
September 17th, 2020, 18:49
Thank you very much.

> Currently, only string paths are supported as a single parameter

Ahh, thats good to know.