.lub file decompiler?
Moderator: Moderators
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
.lub file decompiler?
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?
- Firefang
- Major

- Posts: 518
- Joined: Mon Nov 15, 2010 8:55 pm
- Location: California
Re: .lub file decompiler?
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.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: .lub file decompiler?
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.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: .lub file decompiler?
Which ones have you tried? Links?MileHighGuy wrote:... none of them seem to work with the version of .lub/.lua that battlefront 2 uses.
There was a discussion involving *.lub files here some time ago.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: .lub file decompiler?
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
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
