Some LUA questions
BlitzMax Forums/BlitzMax Programming/Some LUA questions
| ||
Hi, i have a few LUA questions. I hope someone can help. 1.) How can i write something from BM into a LUA variable so i can use the variable in LUA? 2.) How can I change the path, LUA is searching for files when i do a loadfile in LUA 3.) Is there a way to find out in which line and what kind of error occured in a LUA script? At the moment my BM programm crashes when there is an error in the LUA script. Greetings Mirko |
| ||
1.lua_pushstring( ls, "yourVariable" ) ' Push the new value here, like.. ' lua_pushstring( ls, "foobar" ) lua_settable( ls, LUA_GLOBALSINDEX ) 2. It's relative to the application's root, so figure out where something is from there. 3. It's always written error information to the console for me, so I can't help you there. |