Jump to content

[SOLVED][TWO] How to install the Eluna WOTLK engine that is under development


golond

Recommended Posts

Posted

Hi, there's been a buzz recently about Eluna replacing (or being an alternative to?) ScriptDev2 as a scripting option. I'm on the cusp of learning scripting, and since there's going to be a large method shift in the near future, I'm interested in installing what changes have been made so far, even if they're not near production quality yet.

What is the general idea behind installation of the Eluna version of MaNGOS? Is their git a complete compilable version of the source, or does it need to be blended with files downloaded from the MaNGOS repository?

https://github.com/eluna-dev-mangos/ElunaCoreWotlk

Thanks!

Posted

you need to enable eluna / LuaEngine in mangosd.conf file than

last lines in config

###################################################################################################################
# ELUNA SETTINGS
#
#  Eluna.Enabled
#    Enable Enabled Eluna LuaEngine
#    Default: 0 (Disabled)
#         1 (Enabled)
#
###################################################################################################################

Eluna.Enabled = 0

Posted

So, everything compiled without a hitch.

I populated the database from git://github/mangostwo/database and ended up with a version mismatch

[ A ] 12523_01_mangos_db_script_string.sql

[ B ]12562_01_mangos_playercreateinfo_action.sql

the database/_updates/ folder from the mangostwo repo is empty, and the eluna repo's sql/updates/ folder has neither 12523_01_mangos_db_script_string.sql (which I would have expected to be there but don't need), nor do any of the files with a larger sequence number reference 12523_01_mangos_db_script_string.sql in their ALTER TABLE commands, so I don't really have an avenue to take to bring my db up to date.

Any clues? Should I be using an Eluna-specific db that would have different update versions?

Posted

I fudged the db column name in mangos.db_version to allow the last few sql updates with higher sequence numbers to be run. Server is up and running. Thanks for the assistance! Now, on to learning Lua.

Posted

Thanks for the link!

There are some cool ideas there, and the scripts are not super complex. Really, it's exactly the thing I can understand and learn from.

From playing around a bit it seems that MaNGOS expects the lua_scripts folder that will hold the .lua files to be in the working directory from which mangosd is run? Is there a config similar to DataDir and LogsDir that can be used to set that to an absolute path?

Also, running '.reload eluna' from the client chat window hangs the mangosd server somewhere in StartEluna(). You can still run around, but you can't interact with anyone or anything. The last message in the server output is "[Eluna]: Restarting Lua Engine". Is that a known issue?

Posted

atm not support for other " path" but is in planning. About .reload eluna command atm is only works from Ingame Chat "mangosd" console reload crash the server must be fix in next time

(not sure is only wotlk bug atm but i will take a look of reload command this make sice start some problems)

i will make done with rochet and foe classic support on next days i hope than come some more updates for wotlk tbc etc =)

i think you can take a look of functions what mangos supportet https://github.com/eluna-dev-mangos/ElunaCoreWotlk/blob/master/src/game/LuaEngine/LuaFunctions.cpp

and wiki is good place to learn more about lua http://wiki.emudevs.com/doku.php?id=eluna

and you can look for some more examples in my corona repo https://github.com/CoronaCore/LuaScripts

wehn you have a question im here =)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use