tolua++ command line options
Nevermind, I got it.
Its a good idea to leave your post as it was and then post the solution you found, that way others who run into the same problem will find the answer by searching this forum (or google since google has a tendency to very frequently put gamedev posts high up on its search results)
Here's my .bat file:
The cleaned header file HAS to use the .pkg extension. No idea why, but it doesn't output any contents from the header if you use an .h file. Also, you have to declare and call the initialization function that gets written in the outputted .cpp file, after calling tolua_initialize(), or whatever that command is called.
tolua++.exe -o lua-gluecode.cpp luacommands.pkg
pause
The cleaned header file HAS to use the .pkg extension. No idea why, but it doesn't output any contents from the header if you use an .h file. Also, you have to declare and call the initialization function that gets written in the outputted .cpp file, after calling tolua_initialize(), or whatever that command is called.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement