Jump to content

luac_mta binaries for Linux systems


Kernell

Recommended Posts

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
  • 2 weeks later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...