Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Lua like framewerks without framewerks


AnniXa

Recommended Posts

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 smile.png

 

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 sad.png

 

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.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Facebook Twitter Youtube Github Steam
×
×
  • Create New...