PDA

View Full Version : How can I access external files?



Moon Wizard
November 14th, 2007, 07:57
After working on the PCGen output sheets to allow PCGen data to be exported to an XML file, which can then be pasted into the db.xml file; I thought that I would work on improving the whole PCGen -> FG2 migration process. Ultimately, I would like to have a directory where output files can be placed that FG2 could access and import data files.

However, I can't seem to find any functions which allow me to access external files from a LUA script. All of the libraries I've tried do not appear to be loading ("os", "io", "lfs").

Does anybody have any ideas how to access an arbitrary external file from a FG2 LUA script?

Thanks,
JPG

Griogre
November 14th, 2007, 23:56
The designers choose to exclude external file IO via LUA for security reasons.