BLF Splitter and Merger

Post utilities designed for Halo 3.
Post Reply
User avatar
miinaturvat
Readers Club





Posts: 75
Joined: Thu Apr 10, 2008 10:04 am

BLF Splitter and Merger

Post by miinaturvat »

Ever get bored of having to extract a usermap from a CON file to edit it with sandbox, then have to put it back in the CON file again?

Not any more!

With the BLF splitter and merger, extracting and injecting BLFs is made easy!

Some examples of BLFs are maps, gametypes and film clips inside Halo 3 CON files.

BLF splitter and merger is attached to this post.
Attachments
BLFSplitrMerge.zip
(12.75 KiB) Downloaded 112 times
Image
User avatar
mxrider108




Renovator Wordewatician 250

Posts: 456
Joined: Thu Jun 29, 2006 6:39 pm
Location: Cary, NC
Contact:

Post by mxrider108 »

Cool! Nice work.
User avatar
Eaton




Enthraller

Posts: 1639
Joined: Thu Jun 14, 2007 4:16 pm
Location: USA

Post by Eaton »

Very useful! :D
Image
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

Not only does this take forever to extract a small file, it doesent even extract files larger then 696320 bytes properly!
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
User avatar
miinaturvat
Readers Club





Posts: 75
Joined: Thu Apr 10, 2008 10:04 am

Post by miinaturvat »

Not only does this take forever to extract a small file, it doesent even extract files larger then 696320 bytes properly!
I tend to use it solely for usermaps and gametypes...

And it's not my fault your computer is slow! Buy some more RAM :D
Image
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

miinaturvat wrote:
Not only does this take forever to extract a small file, it doesent even extract files larger then 696320 bytes properly!
And it's not my fault your computer is slow! Buy some more RAM :D
It has nothing to do with the RAM probably...I didn't take a look at the application and of course neither of the source code but I'm pretty sure you used a loop inefficient.

Loops have more or less a fixed cycling time, which can be speed up immensely if you copy the code inside the loop multiple times.

Code: Select all

for (int c;c<=Size;c++)
{
Br.BaseStream.Location = c
Br.Read()
}
(I know the code is incomplete)
This would take forever...this though would already be five times faster.

Code: Select all

for (int c;c<=Size;c++)
{
Br.BaseStream.Location = c
Br.Read()
c+=1
Br.BaseStream.Location = c
Br.Read()
c+=1
Br.BaseStream.Location = c
Br.Read()
c+=1
Br.BaseStream.Location = c
Br.Read()
c+=1
Br.BaseStream.Location = c
Br.Read()
}
Ugly coding...but you get the picture.

I take everything back if this is not the case in your application.
...left for good
User avatar
miinaturvat
Readers Club





Posts: 75
Joined: Thu Apr 10, 2008 10:04 am

Post by miinaturvat »

Ah. I know what the problem is...

I wrote this in VB for some stupid reason :D

VB is crap. I should've done it in C++
Image
User avatar
LuxuriousMeat





Posts: 824
Joined: Thu Nov 03, 2005 6:43 pm
Location: zzzzzzzzzzzzzzzz
Contact:

Post by LuxuriousMeat »

miinaturvat wrote:Ah. I know what the problem is...

I wrote this in VB for some stupid reason :D

VB is crap. I should've done it in C++
That has nothing to do with it. If you plan on using C++.NET it would be no faster, as all .NET languages are all compiled into the IL and use the same CLR.
Image
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

Patrickssj6 wrote:.........
Or you could goto the clustor and read X (being the filesize) amount of bytes like any sane person :roll:
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
User avatar
Anthony




Translator Connoisseur New Age ONI

Posts: 1001
Joined: Thu Jul 06, 2006 10:19 pm
Location: Whittier, CA
Contact:

Post by Anthony »

grimdoomer wrote:
Patrickssj6 wrote:.........
Or you could goto the clustor and read X (being the filesize) amount of bytes like any sane person :roll:
stupid*

anyone that knows a thing or two about the STFS file system would know thats not how they work... :roll:
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

Anthony wrote:
grimdoomer wrote:
Patrickssj6 wrote:.........
Or you could goto the clustor and read X (being the filesize) amount of bytes like any sane person :roll:
stupid*

anyone that knows a thing or two about the STFS file system would know thats not how they work... :roll:
Yea well he did't take the hash tables into consideration nor does he care so it doesn't matter now.
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

grimdoomer wrote: Yea well he did't take the hash tables into consideration
I must have been so stupid to not include full source code to proof my point.
You just wanted to find something to bash on.
miinaturvat wrote:Ah. I know what the problem is...

I wrote this in VB for some stupid reason :D

VB is crap. I should've done it in C++
Like LuxuriousMeat said, if you mean C++ compiled inside the .NET environment, all languages in that particular environment get compiled into an Intermediate Language called IL.

There are just some fine differences between the compilation of the individual languages into IL which, in this case, don't affect the performance (almost) at all.
...left for good
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

If you don't take the hash tables into consideration you will never be able yo extract or inject a file larger then 696320 bytes.
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

Grimdoomer don't just ignore Anthony proving you wrong. Learn off what he's telling you.
Last edited by Supermodder911 on Tue Jul 22, 2008 12:34 pm, edited 1 time in total.
Image
C Wizzle
User avatar
miinaturvat
Readers Club





Posts: 75
Joined: Thu Apr 10, 2008 10:04 am

Post by miinaturvat »

What is everyone argueing about?

I made a program to extract forge variants and screenshots. It works. End of :)

So what if I didn't make it excellent! I don't really care if it doesen't work for files bigger than 696320 bytes; If you can find a BLF bigger than that, then more power to you :D
Image
Post Reply