Support Lua Engine
Is there possible that lua engine to stay with sd2 style?
I mean would it be a help or a pain in the down side? Cause I saw mangos doing some preparation for that engine and I don't know what to think...or how to think!... A Light in this matter your me nice... Thank you in advance |
lua has often been suggested, and equally often (that is each time) rejected.
|
=)) does it have any advandages? or disadvantages?
|
Цитата:
I personally think it would be great if mangos supported some kind of scripting language (not necessarily Lua) in addition to C++ scripting. |
I modified the old lua engine a year ago under mangos-zero (sd2-like writing, hot reload)
If interested, I can get the patch for the mangos-zero for further porting to other branches and development. |
Цитата:
|
it would be nice to have a simplier language to script as alternative over c++, mangos currently system.
Mayss please keep it english as much as possible... Thank you |
i see no reason to add some additional scripting like language.
|
well it's only an opinion and this is only a simple question and subject.
I was thinking to give user an other alternative to script a boss/fight/event in a simplier way. Many ppl don't understand C++. Maybe there is something outthere to be as an alternative to c++ |
Цитата:
how can they write scripts? |
world doesn't turns around c++
|
For writing basic scripts not need know all c++ power features.
It's possible code base at existed similar examples in existen scripts. At this level no big difference coding in any language, so i also not see reason adding another scripting language just for avoid people learn basic c++ coding. |
well there is no need ... as you said... there are so many examples that you don't really need to know c++
|
and we have perfectly fine EventAI and DB scripting for the simple stuff.
So infact Lua would be reasonable for the scripts that are too complicated for EventAI and simple enough for Lua. 1) These are very few! 2) This might draw people from SD2 3) This might draw people from EventAI 4) This would only drain the simple scripts from SD2 away, which will result in SD2 only holding complicated scripts, which will make it even more difficult for newbees to start with SD2 (which we already made more complicated by removing gossip scripts) 5) It will require maintenance in the core 6) Lua scripts itself will require maintenance (overhead like forums etc..) |
Цитата:
https://github.com/Salja/server/commits/master |
Возможно у этой темы будет продолжение. Поскольку в кеше клиента появились скрипты сценариев (SceneScript.adt).
Код:
REPLACE INTO scene_script VALUES ('ruRU', 9422, 'Silvermoon 5.1: zto - One Last Grasp - Init', '---------------------- |
Вот нашел случайно реализацию скриптов на Lua https://github.com/ElunaLuaEngine.
форки: WotLK TBC Classic Привязка скриптов: https://github.com/ElunaLuaEngine/Eluna Сами скрипты: https://github.com/ElunaLuaEngine/Scripts |
Текущее время: 08:06. Часовой пояс GMT +3. |
ru-mangos.ru - Русское сообщество MaNGOS