D
D
DeadAndDieFox2021-02-16 01:05:37
Lua
DeadAndDieFox, 2021-02-16 01:05:37

How to compile previously decompiled lua script?

I was tormented with a script from an old toy and in the end I was able to open it. I studied what is in it and threw the decompiled code into its source directory. But that's bad luck, the game starts only with the source encrypted code, because if you shove back the non-decompiled code, then everything works. I already found out that the code was made on lua 5.1, but I could not crypt it with the found programs in the same form. Is there really no way to modify the script so that the game "eats" it?
602af021d0cdc179105851.png
602af02abfdbd083806756.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Fott, 2021-02-17
@dimkafmlovediankafm

You used juaJIT's decompiler, it's very bad. For decompilation, it is better to use Python, there the code is much better.
The script after decompilation goes in a non-working state. If you want to change something and the game "ate" the script, you need to completely rewrite the non-working code.
And if after rewriting you want to "hide" the code - use the usual juajit compiler. If you directly "hide hide" - obfuscation and protectors to help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question