Questions tagged [luadec]

LuaDec is a decompiler for the Lua language.

4 questions
1
vote
0 answers

I have problem with Luadec, error: bad header in precompiled chunk

I have a problem decompiling a .lua file. I'm using luadec but when I try it say: luadec.exe: file.lua: bad header in precompiled chunk or : not a precompiled chunk I read could be problem of the system's architecture so I tried using 32bit and…
1
vote
0 answers

How to decrypt and decompile luac-file from cocos2d-x framework?

I know that the lua version is stored in the 5th byte of the luac file (the header). Here's the first few bytes of a luac file I have: 6D 6D 64 64 74 32 The 5th byte is 74. Is My Luac file LuaJIT bytecode? I am trying to decompile this file and…
Nam Vu
  • 5,669
  • 7
  • 58
  • 90
0
votes
0 answers

Changing the size of lua numbers in compiled lua script

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…
Stud
  • 521
  • 4
  • 8
0
votes
1 answer

Correctly translate backslashed numbers to symbols?

I just decompiled a file with luadec, it does it well, and, the output not being perfect, it's still usable, but I'm getting a weird string of numbers \198\247\184\181\188\177\177\219\183\161\189\186 that I know for a fact are in Korean language,…
nyanko
  • 147
  • 1
  • 1
  • 9