wc3edit.net

United Warcraft 3 map hacking!
It is currently April 19th, 2024, 8:28 pm

All times are UTC


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.



Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Listfile Merger
PostPosted: June 25th, 2009, 10:06 pm 
Offline
Senior Member

Joined: February 15th, 2009, 9:08 pm
Posts: 185
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.

Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 26th, 2009, 2:59 pm 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
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


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 26th, 2009, 4:56 pm 
Offline
Senior Member

Joined: February 15th, 2009, 9:08 pm
Posts: 185
Well now I feel kind of stupid


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 26th, 2009, 5:03 pm 
Offline
Spice Pirate
User avatar

Joined: January 29th, 2009, 5:35 pm
Posts: 949
Location: Canada
Title: LHC
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.
Quote:
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?
Quote:
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??
Quote:
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?
Quote:
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 26th, 2009, 9:19 pm 
Offline
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 2247
Location: Melbourne
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!


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 27th, 2009, 1:04 am 
Offline
Forum Drunk
User avatar

Joined: January 17th, 2007, 4:22 pm
Posts: 2903
Location: Darmstadt, Germany
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


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 27th, 2009, 4:54 am 
Offline
Senior Member

Joined: February 15th, 2009, 9:08 pm
Posts: 185
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?


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 27th, 2009, 5:04 pm 
Offline
Spice Pirate
User avatar

Joined: January 29th, 2009, 5:35 pm
Posts: 949
Location: Canada
Title: LHC
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.

_________________
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.
Quote:
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?
Quote:
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??
Quote:
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?
Quote:
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that


Last edited by Ken on June 28th, 2009, 12:27 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 27th, 2009, 9:06 pm 
Offline
Senior Member

Joined: February 15th, 2009, 9:08 pm
Posts: 185
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.


Top
 Profile  
 
 Post subject: Re: Listfile Merger
PostPosted: June 27th, 2009, 10:29 pm 
Offline
Spice Pirate
User avatar

Joined: January 29th, 2009, 5:35 pm
Posts: 949
Location: Canada
Title: LHC
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.
Quote:
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?
Quote:
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??
Quote:
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?
Quote:
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)