Page 1 of 2

Listfile Merger

Posted: June 25th, 2009, 10:06 pm
by storyyeller
I had trouble finding a listfile merger, so I decided to write my own. It's something I threw together in about an hour, so don't expect any bells and whistles.
Anyway, I figured that I should upload it so other people can use it to. At the very least, I could get some feedback about my programming skills, or lack thereof.

Features:
Merge one or more listfiles
Duplicates are automatically removed and the list is sorted alphabetically
It also strips leading and trailing spaces.

I also included the source code

Re: Listfile Merger

Posted: June 26th, 2009, 2:59 pm
by Senethior459
Uhh... Ladik's MPQ Editor has a utility for doing this. Click the Tools menu at the top, and choose Merge Listfiles...

Oh well. Thank you for making this!

Re: Listfile Merger

Posted: June 26th, 2009, 4:56 pm
by storyyeller
Well now I feel kind of stupid

Re: Listfile Merger

Posted: June 26th, 2009, 5:03 pm
by Ken
Don't, yours works better. I tested merging my file with yours using both mergers, and yours was significantly larger. I think I'll be using it from now on. :D

Re: Listfile Merger

Posted: June 26th, 2009, 9:19 pm
by Ozzapoo
FatherSpace wrote:Don't, yours works better. I tested merging my file with yours using both mergers, and yours was significantly larger. I think I'll be using it from now on. :D

I'm not sure that's a good thing...

Re: Listfile Merger

Posted: June 27th, 2009, 1:04 am
by Dekar
Sounds more like it didn't find all duplicates XD

Re: Listfile Merger

Posted: June 27th, 2009, 4:54 am
by storyyeller
I think the difference is that mine is caps sensitive

Wheras Ladik's will happily count stuff like this as a duplicate and delete it
(1)TheDeathSheep.w3m
(1)thedeathsheep.w3m


I always assumed listfiles were case sensitive. Am I wrong?

Re: Listfile Merger

Posted: June 27th, 2009, 5:04 pm
by Ken
I don't think they are, but I could be wrong. Better safe than sorry.

btw, if anyone wants a thing with GUI (but epic fails with unicode characters) you can try mine. :D

It works just the same as storyyeller's, but it's not a console program, and it converts unicode characters beyond U+10FFFF will be pwnt into those annoying box characters.

And if you don't choose an output file, it just saves it to "output.txt" in the same folder the program is in.

EDIT: Oh yeah, and if it crashes for any reason, send me a PM with a screenshot of the debug message.

Re: Listfile Merger

Posted: June 27th, 2009, 9:06 pm
by storyyeller
I just tested it, and it isn't case sensitive, in case anyone was wondering.


I just edited the first post with a new version that ignores case. It also strips leading and trailing spaces.

Although it's a console application and a bit clumsy to use, it does have one advantage. It doesn't require .net. And I included the source code if you want to recompile it yourself.

Re: Listfile Merger

Posted: June 27th, 2009, 10:29 pm
by Ken
Fair enough, I guess. But I like my .NET dependency... :(

I guess I should update my tool similarly... For cases, at least. And I'm fixing a crash if output file = one of the input files.