Kernell Posted September 2, 2013 Share Posted September 2, 2013 DIAGNOSTIC: *** #1003 CLIENT SCRIPT ERROR: rp_nametags\Shared\utils.lua is invalid and will not work in future versions. Please re-compile at [url=https://luac.multitheftauto.com/]https://luac.multitheftauto.com/[/url] DIAGNOSTIC: *** #1003 CLIENT SCRIPT ERROR: rp_nametags\Shared\class.lua is invalid and will not work in future versions. Please re-compile at [url=https://luac.multitheftauto.com/]https://luac.multitheftauto.com/[/url] DIAGNOSTIC: *** #1003 CLIENT SCRIPT ERROR: rp_nametags\Shared\CVector.lua is invalid and will not work in future versions. Please re-compile at [url=https://luac.multitheftauto.com/]https://luac.multitheftauto.com/[/url] I have SVN server and post-commit hook (bash script) with auto compiling client-side scripts (over 100 files). On https://luac.multitheftauto.com/api/ I found only the binary for Windows, where to get luac_mta source code or binary for Linux? P.S. curl does not offer Link to comment
MTA Team ccw Posted September 8, 2013 MTA Team Share Posted September 8, 2013 Linux luac_mta is now available at https://luac.multitheftauto.com/api/ Link to comment
Kernell Posted September 21, 2013 Author Share Posted September 21, 2013 Thanks. Can you add an option to skip the already encrypted files? It's not very convenient when you need to compile a big amount of scripts. for i in `find $DIR/ -name *.lua`; do luac_mta -b -e -o $i $i done So I get a file with "Already encrypted." Link to comment
MTA Team ccw Posted September 21, 2013 MTA Team Share Posted September 21, 2013 You can check for the encrypted file id of 'MvbR'. (Similar to 'LuaQ' used in plain compiled scripts). Check in two places in case there is a unicode BOM like this: for i in `find $DIR/ -name '*.lua'`; do read -r -n8 c <"$i" if [ "${c:1:4}" != "MvbR" \ -a "${c:4:4}" != "MvbR" ]; then luac_mta -b -e -o $i $i fi done Link to comment
Kernell Posted September 21, 2013 Author Share Posted September 21, 2013 This is a very hard process for server #post-commit example cd /path/to/project /usr/bin/svn revert --recursive ./ /usr/bin/svn update for i in `find ./ -name '*.lua'`; do luac_mta -b -e -o $i $i done This works faster Link to comment
MTA Team ccw Posted September 21, 2013 MTA Team Share Posted September 21, 2013 Then you must have tested it incorrectly, because doing nothing is faster than luac_mta. I suspect you had the 'find' command searching the whole hard drive instead of just the current directory. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now