.lub file decompiler?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

.lub file decompiler?

Post 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?
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: .lub file decompiler?

Post 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.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: .lub file decompiler?

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: .lub file decompiler?

Post 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.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: .lub file decompiler?

Post 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
Post Reply