Jump to content
  • Advertisement
Sign in to follow this  
medevilenemy

lua dofile issue

This topic is 2720 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 am trying to call luaL_dofile, passing it a string containing "test.lua" which is the name of a file in the application's directory. The call doesn't seem to work (Just to make sure my VM was initialized properly, I tried a luaL_dostring on a function I bound and it worked properly). Any ideas what is wrong? (I have also tried passing the string directly in to luaL_dofile with no success)

Share this post


Link to post
Share on other sites
Advertisement
I might try passing the full directory just to be sure that it isn't an issue with the relative directory. Other than that I'm not sure what would be wrong. I've used this function and it worked fine.

edit:
Also are you getting any error codes?

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!