🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SDL + Lua

Started by
1 comment, last by MatrixCubed 20 years, 9 months ago
Hey all, After a myriad of errors, an hour of searching on the ''net, and a little bit of dirty work, I''ve gotten my SDL/Lua application to compile/link/execute. The main problem was that the documentation for Lua is pretty scarce (not to mention the obscurity of VC6 projects set up to recompile the source); if you get stuck with baffling linker errors, the reason would be that your distribution of Lua is not compiled with multithreading options. To save some hassle, if you''d like precompiled lib files, or the projects I used to rebuild your own Lua libraries, drop me a line. Cheers. MatrixCubed
http://MatrixCubed.cjb.net
Advertisement
I would say that a very sweet book for scripting of all types is: Game Scripting Mastery
You may want to purchase that book, but understand that it isn''t a fun read at times... in terms of it takes some effort to keep pushing through it the more you get into it.. but the book is amazing front to back. +) I also mention this book because they talk about lua, phython and other languages and also create your own scripting language capable of multithreading etc.

You may also want to search for free engines that use lua.
I remember downloading ''GreatEngine'' (i think at nehe), which uses lua =) also has some lua class setup going with a little understood trickery. +)

Hope this helps,
Andy
The problem with Lua is that some people demanded pre-compiled binaries, so they were given them. But the people who made them obviously knew all the issues with different threading models and didn''t think much about the problems, whereas all the people who tried to use these binaries in a default MSVC project were getting various errors or warnings. Coupled with the fact that compiling Lua on any non-Windows platform is a snap due to how few files are involved, little documentation has become available on this. If you recognise the problem, it''s trivial to fix, and if you don''t, it''ll take a while.

People may have some luck looking here: http://lua-users.org/wiki/BuildingLua, or here: http://jove.prohosting.com/~philho/softwares/PhiLhoSoft/Lua/index.html.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

This topic is closed to new replies.

Advertisement