Jump to content
  • Advertisement
Sign in to follow this  
Wibbs

Problem with LuaInterface

This topic is 3147 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 all, I'm trying to set up my scripting environment with Lua, and I'm coming up with an error I understand, but don't know how to solve. In my Init.lua script, I have the line: require ('luanet') so that I can import the necessary .net assemblies etc. However, when I try to run my script from my game it throws an exception with the message: error loading module 'luanet' from file 'C:/Program Files/Lua/5.1/clibs/luanet.dll': %1 is not a valid Win32 application. I am confused by this, as I've had a small test application running that interfaced fine, and I haven't changed anything in the C:/Program Files/Lua/5.1/clibs directory since then. Also, if I run Init.lua directly from SciTE, the lua editor I'm using, it works fine with no errors. I would appreciate any help with this, as it's got be stumped. Thanks, Wibbs

Share this post


Link to post
Share on other sites
Advertisement
Hmmmm,

Well I seem to have fixed it by removing the require line altogether, and it still seems to understand luanet.load_assembly but I have no idea...

Share this post


Link to post
Share on other sites
Quote:
Original post by Wibbs
require ('luanet')


Just an unimportant little bit of picky info: In lua, if the only argument to a function is a literal string or table constructor, no need for parens!

require 'luanet'

lua is really neat like that. Have fun!

BTW, this is not whats causing the problem and will not fix it

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!