You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After requiring 'libMalmoLua', if we init a new variable like 'a=AgentHost()', and then simply 'print a', or if you type in an interactive environment ' AgentHost() ', which will try to print the output, the program will crash and quit Lua.
This is possibly because something like a __ tostring() __ function is undefined, but I'm not sure.
The text was updated successfully, but these errors were encountered:
It's true that there are no tostring() methods defined for the Malmo objects, though I'm seeing this, rather than the crash you report:
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require 'libMalmoLua'
> a=AgentHost()
> print(a)
No such operator defined
stack traceback:
[C]: ?
[C]: ?
[C]: in function 'print'
stdin:1: in main chunk
[C]: ?
>
I'll look into adding tostring() methods to our bindings but for now the workaround is just not to try to print them...
Ubuntu 14.04
After requiring 'libMalmoLua', if we init a new variable like 'a=AgentHost()', and then simply 'print a', or if you type in an interactive environment ' AgentHost() ', which will try to print the output, the program will crash and quit Lua.
This is possibly because something like a __ tostring() __ function is undefined, but I'm not sure.
The text was updated successfully, but these errors were encountered: