Jump to content
  • Advertisement
Sign in to follow this  

New to Lua, got a problem - "compat-5.1.lua:12: attempt to index global string'"

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

Hey everyone, I've got a problem. I've integrated Lua scripting into my game engine (or atleast, started to) and currently have console input-output and functions working. But when I load some scripts, I get the error "compat-5.1.lua:12: attempt to index global `string' (a nil value)" I do have compat-5-1 loaded as a package, the script references it and it fails. I copied the code from the bin directory of luainterface 1.3.0. Thanks :) [Edited by - CadeF on March 1, 2006 2:00:01 AM]

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!