Using lua?
Its been awhile since I've done an update, noticed on my quest update a ton of quests going from perl to lua.
I tried to search the forums for a guide of if/what we need to do. Do I need to download anything new? Do I need to change anything? I did notice a new checkbox in CMAKE for perl and lua...I checked both? Seemed to compile fine. But, do I need an API to download or something? I noticed somewhere there said something of 5.1 vs. 5.2. If so, do we need Rel 1, Rel 2? Does it matter? Didn't see anything in the news either. |
yes you can checked both Lua and Perl. for lua to work. just need to put lua51.dll into your server folder. and lua_modules folder that comes with the quest svn. just put that in the server as well as that acts like a plugin for lua. more information about this here:
http://www.eqemulator.org/forums/showthread.php?t=37008 |
Quote:
|
I downloaded the dll...which folder does it need to be put in?
The download came 3 main things: 1) lua5.1.dll 2) lua5.1.lib 3) /include folder I looked at the wiki and the link...neither really tell about how to do setup for the non-lua people. Thanks |
For Windows, everything you need is in the dependencies folder. The shortcut URL is http://eqemu.github.io/
edit: after downloading the dependencies, extract them to the dependencies folder created in the location your checked out the source repo. I do not build linux servers so no idea there. update the git repo Delete your CMAKE cache. Rebuild CMAKE with Lua and Perl Build your solution and copy executables like normal. the default quest folder is renamed global you need to move the lua_modules folder to the root of the directory just like the plugins folder copy the lua51.dll from the dependencies folder to your root server folder. |
Quote:
I rewrote PoTime because it desperately needed it. I chose to use Lua because I wanted to learn it as well as help ensure it works right. Robregen did the Qeynos area stuff for the same reason. Like any other new feature it had issues and KLS was awesome in working them out with us. |
I'm just sad that you guys removed the perl quests from the svn.
Why not just leave them since the system defaults to lua if you compile with it and falls back to perl if not. |
You can still pull them from the repo, not like they're gone.
|
Quote:
|
With the help of this and another thread, I recently updated my build to use both LUA and PERL successfully. Using the guide from here as a baseline:
http://www.eqemulator.net/wiki/wikka...rverSetupGuide Differences/additions: 1. Download and extract the dependencies from here rather than the one in the guide to get the boost and lua files. 2. When running CMake, check the EQEMU_BUILD_LUA option in addition to the already checked EQEMU_BUILD_PERL option. 3. Copy the lua_modules folder in C:\EQ\EQEmuServer\quests to the root C:\EQ\EQEmuServer folder. 4. Copy the lua51.dll file from C:\EQ\Source\dependencies\luaj_x86\bin folder to the root C:\EQ\EQEmuServer folder. 5. Launch and enjoy. |
Ok it seems my LUA stuff is still not working after all. No dialog works and hand-ins for NPCs get eaten. I built the server fine with LUA and PERL options, no errors. I added the lua51.dll to the root EQEmuServer folder. I also copied the lua_modules folder to the EQEmuServer folder so there is a C:\EQ\EQEmuServer\lua_modules folder with 5 files in it. Is this correct? Any thoughts or help on fixing it would be greatly appreciated. Thanks!
|
Aaaaand I figured out the problem, which was totally unrelated to the setup of LUA. The process I posted a couple of posts up still stands and works.
|
All times are GMT -4. The time now is 07:17 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.