Jump to content




Lua



  • You cannot reply to this topic
7 replies to this topic

#1 Rougeminner

  • Members
  • 151 posts

Posted 28 September 2014 - 09:46 PM

I have looked everywhere and i can't find out how to run a lua script on my mac. I know this is way out in left field and has nothing to do with CC but i need help. i can run the lua 'shell' which is like the lua program in CC but i can not load the file in either of them i can't execute it period.

please help.

Edited by Rougeminner, 28 September 2014 - 09:48 PM.


#2 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 28 September 2014 - 10:41 PM

First off, this isn't really the right spot, but don't worry, a moderator will probably move it soon.

What are you trying to do? If you're wanting to make CC programs without running Minecraft then you want an emulator. Take a look the general section, there are quite a few. I've also got a standalone one for Mac I can give you if you PM me.

If you just want to run Lua and not the CC APIs. If so it shouldn't be too hard, take a look at these sites:
http://stackoverflow...ll-lua-on-macos
http://www.lua.org/download.html

Edited by oeed, 28 September 2014 - 10:41 PM.


#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 28 September 2014 - 10:57 PM

Moved to General.

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 29 September 2014 - 12:47 AM

I just use repl.it, a web-based interpreter.

#5 Rougeminner

  • Members
  • 151 posts

Posted 01 October 2014 - 05:56 AM

thank you lyqyd i didn't know where this belonged.
@oeed I am trying to run real lua with out any emulators. I have tried many CC emulators and non of them worked for me. so before i moved on to Swift i figured i would try Lua. i have completely installed lua on my mac.

#6 mistertimn

  • Members
  • 34 posts
  • LocationVancouver, BC

Posted 05 October 2014 - 07:14 PM

I write Lua scripts in Sublime Text 2 on my Mac, and you can just execute the scripts in Terminal. Just navigate to the directory where you have your script with 'cd <directory>' and run it with 'lua <filename>'.

#7 electrodude512

  • Members
  • 167 posts
  • LocationEastern USA

Posted 05 October 2014 - 10:41 PM

View Postmistertimn, on 05 October 2014 - 07:14 PM, said:

I write Lua scripts in Sublime Text 2 on my Mac, and you can just execute the scripts in Terminal. Just navigate to the directory where you have your script with 'cd <directory>' and run it with 'lua <filename>'.

But you have to install lua before that will work. Also, you might want lua 5.1 and not 5.2, because that's what CC uses.

#8 mistertimn

  • Members
  • 34 posts
  • LocationVancouver, BC

Posted 05 October 2014 - 10:53 PM

View Postelectrodude512, on 05 October 2014 - 10:41 PM, said:

-snip-

I'm pretty sure that OS X comes with Lua installed. The Lua.org website says that 'If you use Linux or Mac OS X, Lua is either already installed on your system or there is a Lua package for it.' I don't recall if I had to install anything when I starting programming.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users