Find the correct Lua Compiler - New World

Programming related discussions related to game research
Pepita
Posts: 36
Joined: Sun Sep 30, 2018 1:58 pm

Find the correct Lua Compiler - New World

Post by Pepita »

Greetings,

so new World using LUA Files, currently they using Lua Compiled Files ("LuaQ Header"). However, they still have propper LUA Files in as well, sadly I was not able to recompile the Source File to LUA Bytecode, since they use a different compiler.

I am curious if anyone can help me to Compile the files propperly so the game will accept them?

I uploaded both files as refference:

https://www36.zippyshare.com/v/OdnQilat/file.html
https://www36.zippyshare.com/v/BuaqbayZ/file.html
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: Find the correct Lua Compiler - New World

Post by atom0s »

Based on the start of the header, it shows LuaQ which is usually Lua 5.1.x. The Q is 51 in hex, which is the LUAC_VERSION id that it was compiled with.
The next 0 is the LUAC_FORMAT which is standard to be 0.

The rest of the header looks normal. The only difference is there is a 03 00 at the start of the file that is normally not there. So you may need to manually add that back after you recompile the Lua.
Pepita
Posts: 36
Joined: Sun Sep 30, 2018 1:58 pm

Re: Find the correct Lua Compiler - New World

Post by Pepita »

Got it working with a real Lua Compiler thanks :) 5.1 was the Hint I needed.