Topic: help to add pvpgn-lua-scripts for pvpgn
you how to add the script to lua for pvpgn
thanks for your help and time
regards
PvPGN Community Forums |
forums.pvpgn.pro → [EN] Research & Development → help to add pvpgn-lua-scripts for pvpgn
you how to add the script to lua for pvpgn
thanks for your help and time
regards
Lua implementation is not fully ready yet. I will write a quick guide when it is finished.
Dante, now you can become a beta tester of the next version of PvPGN!
On Linux you have to add a new cmake directive "-D WITH_LUA=true", and install Lua with "apt-get install liblua5.1-0-dev" (I updated the article).
On Windows you have to download lua5_1_5_Win32_dll8_lib.zip and add a path to these files into vc++ project's "include" and "libraries".
I will update Magic Builder soon to support Git and Lua.
There is a Trivia Quiz Game is implemented in Lua (command /quiz) - it can be interested for any users.
Dante, now you can become a beta tester of the next version of PvPGN!
On Linux you have to add a new cmake directive "-D WITH_LUA=true", and install Lua with "apt-get install liblua5.1-0-dev" (I updated the article).
On Windows you have to download lua5_1_5_Win32_dll8_lib.zip and add a path to these files into vc++ project's "include" and "libraries".
I will update Magic Builder soon to support Git and Lua.There is a Trivia Quiz Game is implemented in Lua (command /quiz) - it can be interested for any users.
harpywar help please, / quiz unknown command
thanks harpywar
regards
If you have no errors in bnetd.log then you didn't enable Lua support on PvPGN compile.
Make sure you use code from the repository https://github.com/HarpyWar/pvpgn and directory with Lua scripts exists according to "scriptdir" path in bnetd.conf
If you have no errors in bnetd.log then you didn't enable Lua support on PvPGN compile.
Make sure you use code from the repository https://github.com/HarpyWar/pvpgn and directory with Lua scripts exists according to "scriptdir" path in bnetd.conf
wonderful work harpywar, thanks
what is program in that screenshot?
i want that
Круто! Для варкрафта тоже самое проделывать нужно?
XOM91K, Lua работает сам по себе в "виртуальной машине", неважно для каких игр. Я добавил вызовы многих значимых pvpgn функций, чтобы они были доступны из Lua скриптов. Манипуляциями с ними можно достичь очень интересных результатов. Любые команды, которые получают текст от игрока и посылают текст обратно делаются на "ура". К слову, сейчас почти все команды из command.cpp возможно реализовать и на Lua.
Перезагружать "виртуальную машину" можно командой /rehash lua. Таким образом, сделанные изменения в скриптах можно очень быстро проверять. Без перезапуска всего сервера, и тем более без его перекомпиляции.
Добавлено: 30.05.2014 15:16
what is program in that screenshot?
i want that
Starcraft: Brood War in window mode.
forums.pvpgn.pro → [EN] Research & Development → help to add pvpgn-lua-scripts for pvpgn