Jump to content
  • Advertisement
Sign in to follow this  
soarsky

how can I run LUA program

This topic is 4393 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!