Page 1 of 1

.lub file decompiler?

Posted: Tue Jun 03, 2014 8:52 pm
by MileHighGuy
I'm trying to find a .lub file decompiler but none of them seem to work with the version of .lub/.lua that battlefront 2 uses. Does anyone know of a decompiler that can decompile the right version, 4.0 I think?

Re: .lub file decompiler?

Posted: Tue Jun 03, 2014 11:29 pm
by Firefang
I don't believe one exists since it would probably have to be made from the battlefront munger files. You can however, use a hexeditor to see the text used. It doesn't give you format, but you can see things like units loaded and other text code.

Re: .lub file decompiler?

Posted: Tue Jun 03, 2014 11:43 pm
by MileHighGuy
Well I thought it might exist because I have seen lub decompilers for 5.0 for other games. Hex editing is good, I also found you can see the contents with the luac.exe (from ToolsFL folder in the modtools) using "luac -l filename.lub" in the command line.

Re: .lub file decompiler?

Posted: Wed Jun 04, 2014 5:36 am
by AceMastermind
MileHighGuy wrote:... none of them seem to work with the version of .lub/.lua that battlefront 2 uses.
Which ones have you tried? Links?

There was a discussion involving *.lub files here some time ago.

Re: .lub file decompiler?

Posted: Wed Jun 04, 2014 10:07 am
by MileHighGuy
I have tried luadec and chunkspy so far. They both don't like the old versions. And they are the only ones I could find.

EDIT: The error I am getting is size of number is 8 but read 4, for both chunkspy and luadec. I will try the Lua50to51 thing.

EDIT: I am confused as to how to get chunkspy to give the report that the video shows