Sign in to follow this  
soarsky

how can I run LUA program

Recommended Posts

hi,guys! now I start to learn LUA. My first LUA program is "hello world":) e01.lua print("hello world"); but I don't know how to execute it. I run "lua e01.lua" in command line. And I also tried to build this program in vc6. But all are failed. Anyone can help me?

Share this post


Link to post
Share on other sites
Lua is an interpreted/compiled scripting language that you can execute useing the packages avalaible at http://www.lua.org/

Depending on the version the code may vary and a fairly decent starting point for setting it up can be found here: http://www.gamedev.net/reference/programming/features/lua/ tho this is for 4.0.1. and version 5.1 is not out. so its slightly dated, and some of the code dosn't work. but if you check out the documentation on lua.org, and check out some other sources you could probobly find by doing a google search you should beable to get it up and running.

Share this post


Link to post
Share on other sites
Hi soarsky. I just finished my own "hello Lua" program. I used this tutorial, which worked perfectly:

http://gamedevgeek.com/tutorials/getting-started-with-lua/


Good luck!

Share this post


Link to post
Share on other sites
I found syph's tutorial useful when I Googled Lua tutorials. Along with his, I also have some more links:
http://www.icculus.org/~theoddone33/lua/
http://www.lua.org/pil/index.html
http://www.lua.org/manual/5.1/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
For what it's worth... there is also a subset of LUA, called gluas, which I think stands for graphical lua subsystem (purely my guess though). It was first developed as a means to make filters for the GIMP in the form of Lua scripts. Artweaver and Project Dogwaffle have added lua scripting too (and also a gui server for it, so it's capable of interactive components like sliders and menus, color pickers and more). Thus you can find more examples of LUA based math at work, algorithms for filters and special fx scripts, etc... at places like the GIMP's website (plugin section), at http://www.artweaver.de, and at http://www.thebest3d.com/dogwaffle/lua

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this