PDA

View Full Version : Early Access - DB.createChild( ) Consider Adding to Known Differences



Minty23185Fresh
April 2nd, 2020, 18:14
My Druid Wild Shapes extension was throwing an "invalid name" error for DB.createChild() in FGU.

It was because I was using this variation of the syntax:
local myNode = DB.createChild(stringNodeName, "");

In FGC, it is acceptable to use an empty string as the second parameter. No error is thrown.

In FGU, it is not.

(For readers of this thread, please note, I'm not soliciting discussion of how to fix this, I already know how to do it. I'm simply reporting "a difference" in behavior between FGC and FGU to the hard working crew of Smiteworks.)

I have searched the FG site as well as the individual Early Access sticky threads for a report of this and didn't see one.

Thanks for listening.

superteddy57
April 2nd, 2020, 20:14
Thank you for the report. I have filed this as FGU-1022

Moon Wizard
April 2nd, 2020, 20:37
Technically, this was never valid; but FGC did not perform parameter checking, just ignored. The fix is to update the ruleset/extension code to leave off second parameter.

Regards,
JPG