PDA

View Full Version : RFI - Auto-Loading Default Campaign Data



dulux-oz
October 5th, 2015, 06:46
Hi Guys,

What's the best way of getting large amounts of default data into a new Campaign (ie into the db.xml file)?

I'm currently considering two options:

Have the data in an LUA file as a series of LUA arrays and load the arrays into the db.xml on campaign start.
Have the data in a Module and auto load the Module on campaign start, plus prevent the Module from being unloaded.


Which is the best, or are there other ways I haven't considered?

Thanks

Moon Wizard
October 5th, 2015, 18:13
I think that the data module approach is problematic with the current FG client. You would have to override all of the module activation code to prevent unloading by the GM and force that the players be allowed to load as well. If you didn't do that, then you would run into issues.

Whilst the Lua loading approach is not a standard data format, this is the approach that I've used to have data tied to extensions and rulesets.

JPG

dulux-oz
October 6th, 2015, 01:36
Cool - thanks Moon