lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there any way to decompile a *.lub-file?
Everytime I try it with the luadec.exe, yep its the right version, the executeable crashes.


You can get a good idea of what the code does with "luac -l".


Hi there again.

The output of the lua -l is this:

main <?:0,0> (48 instructions, 192 bytes at 003457E0)
0+ params, 9 slots, 0 upvalues, 0 locals, 17 constants, 0 functions
      1       [-]     GETGLOBAL       0 -1    ; State
      2       [-]     NEWTABLE        1 2 1
      3       [-]     SETTABLE        1 -2 -3 ; "StateName" "INIT"
      4       [-]     GETGLOBAL       2 -4    ; OnOneTimeKeyPressEvent
      5       [-]     NEWTABLE        3 0 4
      6       [-]     SETTABLE        3 -5 -6 ; "Player" "pl_Player1"
      7       [-]     SETTABLE        3 -7 -8 ; "Key" "F1"
      8       [-]     NEWTABLE        4 0 0
      9       [-]     SETTABLE        3 -9 4  ; "Conditions" -
      10      [-]     NEWTABLE        4 0 0
      11      [-]     GETGLOBAL       5 -11   ; MapFlagSetTrue
      12      [-]     NEWTABLE        6 0 1
13 [-] SETTABLE 6 -12 -13 ; "Name" "mf_OC_001_Fire
Emitter_Start"
      14      [-]     CALL            5 2 0
      15      [-]     SETLIST         4 0 1   ; 1
      16      [-]     SETTABLE        3 -10 4 ; "Actions" -
      17      [-]     CALL            2 2 2
      18      [-]     GETGLOBAL       3 -4    ; OnOneTimeKeyPressEvent
      19      [-]     NEWTABLE        4 0 4
      20      [-]     SETTABLE        4 -5 -6 ; "Player" "pl_Player1"
      21      [-]     SETTABLE        4 -7 -14        ; "Key" "F2"
      22      [-]     NEWTABLE        5 0 0
      23      [-]     SETTABLE        4 -9 5  ; "Conditions" -
      24      [-]     NEWTABLE        5 0 0
      25      [-]     GETGLOBAL       6 -11   ; MapFlagSetTrue
      26      [-]     NEWTABLE        7 0 1
27 [-] SETTABLE 7 -12 -15 ; "Name" "mf_OC_002_Fort
ification_Start"
      28      [-]     CALL            6 2 0
      29      [-]     SETLIST         5 0 1   ; 1
      30      [-]     SETTABLE        4 -10 5 ; "Actions" -
      31      [-]     CALL            3 2 2
      32      [-]     GETGLOBAL       4 -4    ; OnOneTimeKeyPressEvent
      33      [-]     NEWTABLE        5 0 4
      34      [-]     SETTABLE        5 -5 -6 ; "Player" "pl_Player1"
      35      [-]     SETTABLE        5 -7 -16        ; "Key" "F3"
      36      [-]     NEWTABLE        6 0 0
      37      [-]     SETTABLE        5 -9 6  ; "Conditions" -
      38      [-]     NEWTABLE        6 0 0
      39      [-]     GETGLOBAL       7 -11   ; MapFlagSetTrue
      40      [-]     NEWTABLE        8 0 1
41 [-] SETTABLE 8 -12 -17 ; "Name" "mf_OC_003_Boss
_Start"
      42      [-]     CALL            7 2 0
      43      [-]     SETLIST         6 0 1   ; 1
      44      [-]     SETTABLE        5 -10 6 ; "Actions" -
      45      [-]     CALL            4 2 0
      46      [-]     SETLIST         1 0 1   ; 1
      47      [-]     CALL            0 2 1
      48      [-]     RETURN          0 1

Maybe anybody knows, why the luadec.exe crahes everytime and can fix it.

Greetz