Page 1 of 1

Pricing Scripts and LUA File I/O

PostPosted: 01 Dec 2010, 19:18
by woogerboy21
Refresh my memory Goblin Hero, did you ever enable the File I/O functionality for the lua scripts in MA? It's been a while since I talked about this and can't remember. I would like to create a pricings script that pulls all pricing information from a local file which would allow people to produce there own prices to import into the application without having to run a web server.

Re: Pricing Scripts and LUA File I/O

PostPosted: 01 Dec 2010, 19:38
by Goblin Hero
Yea, all standard libs are enabled.

Re: Pricing Scripts and LUA File I/O

PostPosted: 01 Dec 2010, 21:14
by woogerboy21
Goblin Hero wrote:Yea, all standard libs are enabled.
Hmm... odd. Whenever I try and use the io.open I always get errors. Are you able to write a quick script and get the MA application to open the file without problems?

Edit:
Forget it, I was trying to open a file and its wasnt local to the magic album application and for whatever reason when I put the complete path to the file in I was still recieving errors when trying to open the file. If the file is in the same directory as the magic album application it opens fine (dont know why it doesnt with full path) :?: