Pricing Scripts and LUA File I/O
by Goblin Hero
Moderators: charmer, CCGHQ Admins
Pricing Scripts and LUA File I/O
by woogerboy21 » 01 Dec 2010, 19:18
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.
-
woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Pricing Scripts and LUA File I/O
by Goblin Hero » 01 Dec 2010, 19:38
Yea, all standard libs are enabled.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
-
Goblin Hero - Site Admin
- Posts: 1994
- Joined: 23 Oct 2005, 09:37
- Location: Russia
- Has thanked: 222 times
- Been thanked: 353 times
Re: Pricing Scripts and LUA File I/O
by woogerboy21 » 01 Dec 2010, 21:14
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?Goblin Hero wrote:Yea, all standard libs are enabled.
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)
-
woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests