SWBFGamers

Gaming for the Original SWBF1 and SWBF2/other games => Star Wars Battlefront (2004 Original) => Topic started by: boomjohnson on June 03, 2014, 03:28:18 PM

Title: How to 'unpack' a common.lvl file
Post by: boomjohnson on June 03, 2014, 03:28:18 PM
Hi

Just wanted to ask how I can 'unpack' a common.lvl file. I just wanted to take some off the .tga crosshairs out : )
Title: Re: How to 'unpack' a common.lvl file
Post by: Led on June 03, 2014, 04:32:45 PM
It would be much easier to re-pack it with what you want in it.  Please refer to the mod tools tutorials  :cheers:

Let us know if you have any questions.
Title: Re: How to 'unpack' a common.lvl file
Post by: MileHighGuy on June 03, 2014, 04:34:15 PM
download this

http://starwarsbattlefront.filefront.com/file/LVL_Extractor;32428

unzip the file

make a bat file the points to the directory that extract.exe is located in

it should have this in it:

cmd -c cd <put your directory here>

an example directory would be C:\Users\Username\Desktop\extract

then save the bat

put the common.lvl file in the folder

open the bat and type "extract common.lvl" (no quotes)

it will spit out the textures in the form of dds files. Done!

I just found this out today

EDIT: it also spits out lua file as lub files... I'm not sure how to view these, they have a bunch of NULL symbols when i open them with notepad++. maybe a hex editor would work.
Title: Re: How to 'unpack' a common.lvl file
Post by: Led on June 03, 2014, 04:38:59 PM
The extractor is nice to get the tgas, but it won't remove them from common.lvl.
Title: Re: How to 'unpack' a common.lvl file
Post by: MileHighGuy on June 03, 2014, 04:40:07 PM
oh, i thought he meant he wanted to get a copy of them for himself..
Title: Re: How to 'unpack' a common.lvl file
Post by: Led on June 03, 2014, 04:44:46 PM
local link:
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=1145
Title: Re: How to 'unpack' a common.lvl file
Post by: boomjohnson on June 03, 2014, 04:59:00 PM
sorry for not being clear guys,

milehighguy is right though - i just want to get a few .tgas out of this common.lvl file so i can munge them into my own one
Title: Re: How to 'unpack' a common.lvl file
Post by: Led on June 03, 2014, 05:05:15 PM
no worries, good luck!
EhPortal 1.34 © 2024, WebDev