Sign in to follow this  

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

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

This topic is 4310 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.

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