Lua for dummie
Hi all folks !! Please , can someone make me a little guide for this myself dummie about lua , will mean :
1- Wich Lua version i need download and install and how to install ? 2- What i need to do for Cmake find the proper things about lua ? My system is win 7 32x Many thanks |
For version, currently lua 5.1 is supported, 5.2 has some API breakage and it hasn't been updated since most distros haven't updated their package versions yet. The other stuff, I'm not 100% sure on Windows :P
|
Lua for Windows: 5.1.4-46
http://code.google.com/p/luaforwindows/downloads/list Install it and CMake will find it. Then just copy the 5.1 dll into your eqemu folder. |
I am also a dummie when it comes to Lua.. where do you get Boost ? :)
|
Boost libraries are linked in the threads below or you can get newest dependencies at www.boost.org (1.55)
|
http://eqemu.github.io/
Get: WindowsDependencies_x86.zip Put the contents into your dependencies folder and CMake will look there first. |
Thank you for the links KLS and Joligario
Got lua up and working.. time to learn how to use it :) |
Ok , got it all working so fine !!! Great !!
Thanks !! |
Quote:
onbeforeunload = function() {}; |
I have a question about getting Lua to work. I am sure that I am missing something simple, but I downloaded and installed Lua, copied lua.5.1.dll into my builds directory, copied the dependency folders into my dependencies folder, marked build Lua in cmake and generated the build files, recompiled, and copied the new binaries into my build folder. When I log into the game though, and NPCs with Lua scripts are still unresponsive, but will at least face you when hailed. Anyone know what I am missing?
|
Did you make sure to put all the lua folders into the correct directories? Can't think of the names right now because I'm not on my computer. I got the files from the newest quest repository
|
lua_modules
|
I have a folder in my quests called lua modules, and it has a few scripts in it. Is there more I am supposed to do with it? Additionally, although I have boost downloaded and in the dependencies, CMake says Boost_DIR-NOTFOUND when I generate, if that could be an issue.
Simple fix. I looked at http://www.eqemulator.org/forums/showthread.php?t=37438 and saw that you just need to copy the lua_modules into your server directory. Thanks, everyone! |
lua_modules goes in the root of your server folder just like quests and globals.
Additionally, there was zero reason to install Lua. If you use the dependencies as specified in the guide you will have everything you need. |
All times are GMT -4. The time now is 10:34 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.