Jump to content
  • Advertisement
Sign in to follow this  
gamer_1234

How to set up Lua

This topic is 4594 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

I have never used Lua before, and I just downloaded the latest version of it - 5.0.2. I'm a little confused on what to do with all of the files, and how to set it up so i can begin writing scripts, can anyone help me get set up? Thanks for any help given.

Share this post


Link to post
Share on other sites
Advertisement
Thanks for your help Gaenor, however I have already read this article, I was more more curious on how to set up Lua as in the compiler and the interpretor using the files that are given in the 5.0.2 folder.

Share this post


Link to post
Share on other sites
Using Lua is pretty simple if you make sense of using the stack offsets.

There are plenty of tutorials across the web and gamedev. I can't remember the location but there's a site with Visual Studio projects already setup.

I have a more advanced question for experienced users.

Does anyone have experience using metamethods __index with light user data?

I'm trying to override the "." operator to do a lookup into my property system.

__newindex works.

__index does not.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!