Page 11 of 12

Re: Legend of Grimlock [.dat file]

Posted: Sat Jun 09, 2012 11:39 pm
by lostprophet
Any news, any hope on the missing .lua files to be reversed? :) (Hopefully) No one will answer, because everyone's on the beach by now :D

Re: Legend of Grimlock [.dat file]

Posted: Sun Jul 15, 2012 6:32 pm
by Smash15195
Someone can explain how to decompiling ?

I use luajit to get a bytecode file it's ok but after ? How to get a editable *.lua with it.

Video posted by Ekey not work anymore :(

Thanks.

Re: Legend of Grimlock [.dat file]

Posted: Mon Jul 23, 2012 3:20 pm
by Smash15195
No one knows ?

Re: Legend of Grimlock [.dat file]

Posted: Mon Jul 23, 2012 4:02 pm
by lostprophet
Smash15195 wrote:No one knows ?
I still have the tutorial video, I can upload it today :)

Re: Legend of Grimlock [.dat file]

Posted: Mon Jul 23, 2012 7:01 pm
by Smash15195
pls thanks

Do you have the decompiled *.lua ?

Re: Legend of Grimlock [.dat file]

Posted: Mon Jul 23, 2012 9:17 pm
by Ekey
Smash15195 wrote:pls thanks

Do you have the decompiled *.lua ?
It is better to wait for the official release Level Editor with Lua API.

Re: Legend of Grimlock [.dat file]

Posted: Mon Jul 23, 2012 11:02 pm
by Smash15195
you think we can translate the game with it ?

Re: Legend of Grimlock [.dat file]

Posted: Tue Jul 24, 2012 7:21 am
by Ekey
Maybe

Re: Legend of Grimlock [.dat file]

Posted: Wed Jul 25, 2012 7:42 pm
by KDraka
lostprophet wrote:
Smash15195 wrote:No one knows ?
I still have the tutorial video, I can upload it today :)
Thank you. I'm waiting for you. I really want to translate this game. (: :]

Re: Legend of Grimlock [.dat file]

Posted: Thu Jul 26, 2012 4:51 am
by lostprophet
KDraka wrote:
lostprophet wrote:
Smash15195 wrote:No one knows ?
I still have the tutorial video, I can upload it today :)
Thank you. I'm waiting for you. I really want to translate this game. (: :]
Yeah, my bad, here you go, sorry for the delay :)

Code: Select all

http://www20.zippyshare.com/v/34753967/file.html

Re: Legend of Grimlock [.dat file]

Posted: Thu Jul 26, 2012 1:45 pm
by Smash15195
i gonna watch that, thx.

Re: Legend of Grimlock [.dat file]

Posted: Tue Aug 21, 2012 11:20 am
by twisted
Does anyone know what this is converted back to luajit?

Code: Select all

-- BYTECODE -- script1.luac:0-0
0001    GGET     2   0      ; "Managers"
0002    TGETS    2   2   1  ; "perfhud"
0003    MOV      3   2
0004    TGETS    2   2   2  ; "update"
0005    MOV      4   1
0006    CALL     2   1   3
0007    GGET     2   3      ; "Boot"
0008    MOV      3   2
0009    TGETS    2   2   4  ; "foundation_update"
0010    MOV      4   1
0011    CALL     2   1   3
0012    GGET     2   0      ; "Managers"
0013    TGETS    2   2   5  ; "transition"
0014    MOV      3   2
0015    TGETS    2   2   2  ; "update"
0016    MOV      4   1
0017    CALL     2   1   3
0018    GGET     2   0      ; "Managers"
0019    TGETS    2   2   6  ; "changelog"
0020    MOV      3   2
0021    TGETS    2   2   2  ; "update"
0022    MOV      4   1
0023    CALL     2   1   3
0024    RET0     0   1
The closest I can get for the first part is

Code: Select all

Managers.perfhud:update()
which translates to:

Code: Select all

0001    GGET     0   0      ; "Managers"
0002    TGETS    0   0   1  ; "perfhud"
0003    MOV      1   0
0004    TGETS    0   0   2  ; "update"
0005    CALL     0   1   2
0006    RET0     0   1
which is missing a MOV.

Re: Legend of Grimlock [.dat file]

Posted: Tue Aug 21, 2012 2:59 pm
by Ekey
Byte Code MOV added after you write next code which begins command Boot

Code: Select all

Managers.perfhud:update()
Boot bla bla bla

Re: Legend of Grimlock [.dat file]

Posted: Tue Aug 21, 2012 4:38 pm
by twisted
Still missing a MOV

Code: Select all

0001    GGET     0   0      ; "Managers"
0002    TGETS    0   0   1  ; "perfhud"
0003    MOV      1   0
0004    TGETS    0   0   2  ; "update"
0005    CALL     0   1   2
0006    GGET     0   3      ; "Boot"
0007    TGETS    0   0   4  ; "foundation_update"
0008    CALL     0   1   1
0009    RET0     0   1
also the bytecode values appear to be very different eg

Original:

0001 GGET 2 0 ; "Managers"
0002 TGETS 2 2 1 ; "perfhud"

New:

0001 GGET 0 0 ; "Managers"
0002 TGETS 0 0 1 ; "perfhud"

Re: Legend of Grimlock [.dat file]

Posted: Tue Aug 21, 2012 4:52 pm
by Ekey
Obviously invalid decompiled code. Anyway i decompiling only basic scripts and can't help u.