AnniXa Posted May 14, 2012 Share Posted May 14, 2012 Hey, i want to use the lugi thing for a server application wich is not using leadwerks at all. I found this on blitzmax forums: http://www.blitzbasi...s.php?code=2579 its from joshk i tried it with the following: Include "glue.bmx" 'the generated gluecode Global lua:TLua = New tlua 'create the tlua type lua.dostring(str) Type test {expose} Method foo() Print "say ausgefuehrt" End Method End Type the content of the str string is this: (moved it out for better reading) print("test:") local dings = NewTest() dings.foo() the result that i got is: test: Lua error: [string "print("test:")..."]:3: attempt to index local 'dings' (a function value) executing a lua script works fine, but i the object pushing ist not working Dies someone knows what i made wrong? edit: it looks like i just made an . instead of an : so nevermind this thread, and sorry for bugging. Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.