Jayceon Posted June 14, 2017 Share Posted June 14, 2017 Hello reader. I tried today to compile one big lua file (2 to 5 MB) but every luac compiler return error. I tried the https://luac.multitheftauto.com/ and the Windows batch file, but the result not changed. Thanks any answer. Link to comment
Addlibs Posted June 14, 2017 Share Posted June 14, 2017 Are you sure that there are definitely no syntax errors or whatever in that file? The compiler will return an error if the code isn't correct, maybe you're missing an 'end' or something. Try loading the uncompiled file and see if it executes. I'm pretty sure the compiler can process a lot larger files, larger than 5 MB. Link to comment
Jayceon Posted June 14, 2017 Author Share Posted June 14, 2017 No errors. I see other server compiled 5mb lua file (vehiclenodes). The compiler gives this: ERROR Could not read file Link to comment
Moderators IIYAMA Posted June 14, 2017 Moderators Share Posted June 14, 2017 what did you saved in it? You might want to consider splitting it up in multiple files even if it is a large table. Link to comment
Jayceon Posted June 14, 2017 Author Share Posted June 14, 2017 I'm tried to compile vehicle nodes because i'm curious. Link to comment
Discord Moderators Pirulax Posted June 14, 2017 Discord Moderators Share Posted June 14, 2017 Same happened to me, it was bcuz the script contained errors. Link to comment
Moderators IIYAMA Posted June 14, 2017 Moderators Share Posted June 14, 2017 then you should be able to split the file, but indeed strange. Probably because the process took to long to execute and got killed. 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