SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: Cmd_Smith on June 03, 2015, 12:01:20 PM

Title: Decompile Existing Mod?
Post by: Cmd_Smith on June 03, 2015, 12:01:20 PM
Is there a way to decompile an existing BFII mod? I solely want to look at the files for a few weapons and units from a mod that I have in my addon folder. So is there any decent .lvl decompiler to unwrap the files so I can take a look?
Title: Re: Decompile Existing Mod?
Post by: Led on June 03, 2015, 12:30:00 PM
No, not really.
Title: Re: Decompile Existing Mod?
Post by: Cmd_Smith on June 03, 2015, 12:31:40 PM
:/ No way to extract textures?
Title: Re: Decompile Existing Mod?
Post by: Led on June 03, 2015, 12:44:50 PM
Quote from: Cmd_Smith on June 03, 2015, 12:31:40 PM
:/ No way to extract textures?

textures may be possible, but I am not aware of any automatic tool.
Title: Re: Decompile Existing Mod?
Post by: Cmd_Smith on June 03, 2015, 12:48:25 PM
Could you maybe walk me through the process?  :rofl:
Title: Re: Decompile Existing Mod?
Post by: Led on June 03, 2015, 01:28:05 PM
1) Examine Riley's pages (search downloads). 

2)  Write your own lvl extractor.

3)  Enjoy.
Title: Re: Decompile Existing Mod?
Post by: Viathan on June 03, 2015, 01:29:50 PM
Hey,

if you want to extract just textures from .lvl files, there is a .lvl extractor.
It delivers .dds files and you can convert them online (http://image.online-convert.com/convert-to-tga) or using photoshop or something like that into .tga files.

.lvl Extractor (https://www.dropbox.com/s/lhofc6yok5r4xe7/LvL_Extractor.zip?dl=0)

Edit:
Extract the zip archive to any place on you computer, go into the directory (explorer) and press SHIFT + Rightclick. Theres a command "open cmd here" or something similar. Type in the name of the extracter.exe => extract.exe and then space and the .lvl name of your file

(or drag the .lvl file and drop it on the extract.exe)
Title: Re: Decompile Existing Mod?
Post by: Cmd_Smith on June 03, 2015, 01:47:21 PM
Quote from: Vîathan on June 03, 2015, 01:29:50 PM
Hey,

if you want to extract just textures from .lvl files, there is a .lvl extractor.
It delivers .dds files and you can convert them online (http://image.online-convert.com/convert-to-tga) or using photoshop or something like that into .tga files.

.lvl Extractor (https://www.dropbox.com/s/lhofc6yok5r4xe7/LvL_Extractor.zip?dl=0)

Edit:
Extract the zip archive to any place on you computer, go into the directory (explorer) and press SHIFT + Rightclick. Theres a command "open cmd here" or something similar. Type in the name of the extracter.exe => extract.exe and then space and the .lvl name of your file

(or drag the .lvl file and drop it on the extract.exe)

Thanks man! Works like a charm... although, when I open the files, it says some of them are corrupted/too large. I double they are too large.. why are they corrupted?
Title: Re: Decompile Existing Mod?
Post by: Phobos on June 03, 2015, 02:11:57 PM
Quote from: Cmd_Smith on June 03, 2015, 01:47:21 PM
Thanks man! Works like a charm... although, when I open the files, it says some of them are corrupted/too large. I double they are too large.. why are they corrupted?
i tried this on BF2 lvl files before and got the same error. the extractor is designed for BF1 so im not sure if its 100% compatible. maybe there is a fix?

there is also battlebelks 010 editor script texture extractor but it also was designed specifically for BF1
Title: Re: Decompile Existing Mod?
Post by: Cmd_Smith on June 03, 2015, 02:33:40 PM
Luckily, the files I wanted to see weren't corrupted XD
EhPortal 1.34 © 2024, WebDev