Guest anique Posted January 26, 2011 Share Posted January 26, 2011 I would like to use compiled files in my addon. like luc in lightdpsmeter. Any help would be appreciated. Я хотел бы использовать скомпилированные файлы на мой аддон. как luc в lightdpsmeter. Любая помощь будет признателен. Quote Link to comment Share on other sites More sharing options...
Setras Posted January 27, 2011 Share Posted January 27, 2011 You need lua 5.0 compiler. You can replace existing files with compiled ones. You don't need to bother about file extensions untill everything is ok inside a file. Quote Link to comment Share on other sites More sharing options...
Nikon Posted January 27, 2011 Share Posted January 27, 2011 Взято где то оттуда (точнее уже не помню): http://www.lua.org/download.html Использовать: LuaC50.exe -o FileName.luc FileName.lua File: lua5_0_3_Win32_bin.zip Quote Link to comment Share on other sites More sharing options...
Setras Posted January 27, 2011 Share Posted January 27, 2011 luac (not luc) but it does not matter for allods online. you can create a batch file that contains luac50.exe -o "%1c" "%1" Place it in luac folder and just drag'n'drop lua files on it to compile them in 1 click (Thx to SLA for pointing me at "%1" =D ) Also you can d'n'd more than one file at once. Quote Link to comment Share on other sites More sharing options...
Nikon Posted January 27, 2011 Share Posted January 27, 2011 Quote: luac (not luc) Да хоть .lucacocoroc Лишь бы потом правильное название файла прописал в AddonDesc Quote Link to comment Share on other sites More sharing options...
Guest anique Posted January 27, 2011 Share Posted January 27, 2011 thank you very much Quote Link to comment Share on other sites More sharing options...
icreator Posted January 27, 2011 Share Posted January 27, 2011 это типа чтобы никто не смог влезть и программу переписать? Quote Link to comment Share on other sites More sharing options...
Setras Posted January 28, 2011 Share Posted January 28, 2011 Да, однако декомпилировав скрипт все равно можно выяснить что и как он делает, однако этого не смогут сделать... Дайте ка прикину... 99.9% игроков Аллодов. Quote Link to comment Share on other sites More sharing options...
Loss Posted January 28, 2011 Share Posted January 28, 2011 С одной стороны это минус то, что код будут скрывать. т.к. этим начинающие создатели аддонов не смогут нормально изучить все, потому как примеры будут скомпилированы. Quote Link to comment Share on other sites More sharing options...
Nikon Posted January 28, 2011 Share Posted January 28, 2011 Прекомпиляция должна еще давать какой то прирост в скорости работы кода (не виджетов) На код того компилятора, который я выложил здесь легко найти декомпилятор, если захотеть Quote Link to comment Share on other sites More sharing options...
ramirez Posted January 30, 2011 Share Posted January 30, 2011 Прекомпиляция дает прирост только к скорости загрузки скрипта, скорость работы остается без изменений. Quote Link to comment Share on other sites More sharing options...
Setras Posted January 31, 2011 Share Posted January 31, 2011 Что самое забавное, так это то что скомпиленный скрипт раз этак в надцать больше по размеру чем оригинал... Quote Link to comment Share on other sites More sharing options...
Recommended Posts