It is currently 10 Nov 2024, 19:59
   
Text Size

Pricing Scripts and LUA File I/O

Moderators: charmer, CCGHQ Admins

Pricing Scripts and LUA File I/O

Postby 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.
User avatar
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

Postby 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.
User avatar
Goblin Hero
Site Admin
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

Postby woogerboy21 » 01 Dec 2010, 21:14

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) :?:
User avatar
woogerboy21
HQ Team Member
 
Posts: 1136
Joined: 19 Jul 2009, 00:15
Location: USA
Has thanked: 21 times
Been thanked: 152 times


Return to Magic Album

Who is online

Users browsing this forum: No registered users and 3 guests

cron

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 3 guests

Login Form