My goal is to decompile, modify and recompile a lua script. I can do this easily expect that the header of the resulting binary file changes from the original one. The binary chunk I decompile starts with the following header:
1b4c 7561 5100 0104 0804 0400
The header in the generated file is:
1b4c 7561 5100 0104 0804 0800
As you can see the only thing that changes between them is the value of Size of lua_Number
(source, see page 7)
I've tried changing the target platform and even the version but couldn't get the correct header in the end. Is there by any chance a way to set this as an option in some way?