Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualsatsujin

Posted 24 November 2013 - 11:07 AM

 


Sorry gOb2 was a typo I did not notice. But the problem seems to be that luanet.import_type("PointClick.GameController") is returning nil and I have no idea why. import_type does not return nil for existing NET references like "Microsoft.XNA.Framework" or "System.Console". The problem seems to come when trying to access or create custom classes in Lua. if gObj is registered with the Lua statemachine in C#, I can access its string type properties for example, but not a custom type. I think this is because custom types register as a black box userdata type in Lua. I hope somebody can help since there is practically zero support for Lua online. There are some sites that discuss how to handle userdata types in Lua of different implementations with C++ but that doesn't really work with C#.

 

Btw, sorry for the empty quote box above. Can't delete it in editor.

 


#1satsujin

Posted 24 November 2013 - 11:04 AM

 


Sorry gOb2 was a typo I did not notice. But the problem seems to be that luanet.import_type("PointClick.GameController") is returning nil and I have no idea why. import_type does not return nil for existing NET references like "Microsoft.XNA.Framework" or "System.Console". The problem seems to come when trying to access or create custom classes in Lua. if gObj is registered with the Lua statemachine in C#, I can access its string type properties for example, but not a custom type. I think this is because custom types register as a black box userdata type in Lua. I hope somebody can help since there is practically zero support for Lua online. There are some sites that discuss how to handle userdata types in Lua of different implementations with C++ but that doesn't really work with C#.


PARTNERS