Listfile Merger

Any tool that you think is useful, make a thread here and upload it.

Moderator: Cheaters

Forum rules
While crediting should be allowed, please keep down the advertising. If you know who it's from, and they have a website, please link to it as a basic courtesy.
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Listfile Merger

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by storyyeller on June 27th, 2009, 9:57 pm, edited 1 time in total.
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Listfile Merger

Post 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!
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Listfile Merger

Post by storyyeller »

Well now I feel kind of stupid
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: Listfile Merger

Post 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
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Listfile Merger

Post 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...
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Listfile Merger

Post by Dekar »

Sounds more like it didn't find all duplicates XD
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Listfile Merger

Post 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?
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: Listfile Merger

Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by Ken on June 28th, 2009, 12:27 am, edited 3 times in total.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Listfile Merger

Post 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.
User avatar
Ken
Spice Pirate
Posts: 862
Joined: January 29th, 2009, 5:35 pm
Title: LHC
Location: Canada

Re: Listfile Merger

Post 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.
Spoiler:
xkiska wrote:BARTIMEAUS is more understandable then u
Senethior459 wrote:Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:We laughed, we cried. Trashed.
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that