Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Resources and Tools => Topic started by: schlumpf on August 24, 2011, 07:59:03 pm

Title: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on August 24, 2011, 07:59:03 pm
For those wanting an "encryption" for their MPQs, take this.
Code: [Select]
-----------------------------------------------
FuckItUp - Partly fuck up an MPQ to protect it.
 (c) Schlumpf 2011 --  DO NOT DISTRIBUTE.
-----------------------------------------------
>> Usage: ./FuckItUp inputmpq [outputmpq]
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Tigurius on August 24, 2011, 08:13:44 pm
MPQ "encryption" like in StarCraft :P
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Eluo on August 24, 2011, 11:01:27 pm
Oh they use the same strategy?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Everon Mightbane on August 25, 2011, 05:37:58 pm
So, does this mean we can't open it in say MyWarcraftStudio, but WoW can still read it?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Eluo on August 25, 2011, 05:50:19 pm
Yes.
It doeas mean that ;)
No MPQ editor can read the files properly anymore.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on August 25, 2011, 05:55:21 pm
Quote from: "Eluo"
No MPQ editor can read the files properly anymore.
I'm tempted to correct you.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Vel on August 25, 2011, 06:27:30 pm
MPQ archives can be opened in the editor, but ...
removed (Listfile) - file. We will erase all files, path names, for example:

Before:
World  Azeroth  Elwynn  Trees  Elwynntree01.m2
World  Azeroth  Elwynn  Trees  Elwynntree0100.skin

after:
File000483.xxx
File000484.xxx
-----
Do I understand correctly?
-----
similar way to protect Wacraft3 maps.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Eluo on August 25, 2011, 06:47:08 pm
Yes. Only that befor and after is the other way around :D
If you used the program on it ,it deletes the listfile => the paths and filetypes won't get displayed anymore.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Vel on August 26, 2011, 05:49:48 am
Quote from: "Eluo"
Yes. Only that befor and after is the other way around :D
fixed :D
[spoiler:7p0oiznw](http://www.face-palm.ru/picard.jpg)[/spoiler:7p0oiznw]
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: coolguy1 on September 11, 2011, 03:56:23 am
I'm going to have to use this if I end up releasing any of my edits
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: detonatorss on April 07, 2012, 10:05:09 am
and how to decrypt with this tool my own patch because i lost the decripted patch XD
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Steff on April 07, 2012, 03:03:28 pm
You dont will :)
Start again form scratch. And even if there is a way. If we whould give it out then the tool whould be useless.
You can get the ADTs if you just change them a bit in noggit and save them again.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Will on May 20, 2012, 10:08:20 pm
This is v useful. :) thanks
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on August 08, 2012, 05:04:15 pm
Could it be that this is basically "fucking Addons" up ? In .MPQ Files, I mean.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on August 08, 2012, 05:20:20 pm
Quote from: "Ascathos"
Could it be that this is basically "fucking Addons" up ? In .MPQ Files, I mean.
Care to elaborate that question?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on August 08, 2012, 07:06:20 pm
Quote from: "schlumpf"
Quote from: "Ascathos"
Could it be that this is basically "fucking Addons" up ? In .MPQ Files, I mean.
Care to elaborate that question?
As it seems, and in tests I did today, "FuckItUp" removed the listfile from the custom MPQ files properly, but for some reason, implemented Addons in the MPQ were no longer available and working. I assume that you are disagreeing that you can prove, but it's weird Oo
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on August 08, 2012, 07:24:49 pm
Quote from: "Ascathos"
As it seems, and in tests I did today, "FuckItUp" removed the listfile from the custom MPQ files properly, but for some reason, implemented Addons in the MPQ were no longer available and working. I assume that you are disagreeing that you can prove, but it's weird Oo
First of all: Are you able to reproduce this by having a patch including an add-on, starting wow with it, then using this tool and starting wow again, leading to it being broken?

I don't know by heart how WoW determines the addons to load, but the problem here is, that it needs to find files that are not listed anywhere. On models etc, there is some file where the filename is referenced. Therefore, it is possible to load hash(filename) from the mpq.

As there is no list file and there is no list of all addons available, there of course can't be a hash(Interface/Addons/mypersonalunknownaddon/mypersonalunknownaddon.toc) somewhere. It relies on a list file.

You may be able to "fix" this by having an MPQ with  empty files with the right names, which gets loaded before the "corrupted" MPQ containing the correct data. It should be able to find the files as a listfile is present and be able to load the latest version of the files.

This will kind of defeat the "trick" here, though, as you are giving out the filenames with the second MPQ. It might as well be possible to have a partial listfile with only one MPQ.


Which will be better would be integrating the addon into the official UI. This will also prevent the user to disable your add-on. You won't need a listfile then, as those files are referenced by the (frame|glue)xml.toc.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nupper on August 25, 2012, 01:50:29 am
How do i apply this
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on August 25, 2012, 02:03:52 pm
Quote from: "Nupper"
How do i apply this
Apply what to what?

To use the tool, run it with an MPQ as parameter.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 01:50:12 pm
And how i run it? I try it with the cmd but it do not work.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on November 24, 2012, 01:53:58 pm
Quote from: "Nic"
And how i run it? I try it with the cmd but it do not work.
_HOW_ does it not work? _WHAT_ does happen?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 02:50:52 pm
I dont know how i run it correctly... I try to start my cmd and set the path to the file location (location is the folder "Safe").

cd DesktopToolsSafe

So i dont know how i run the tool. I try to make this:

FuckItUp PathtoMPQ PathtonewMPQ

But it do not work.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on November 24, 2012, 02:52:50 pm
Quote from: "Nic"
But it do not work.
What is the expected output? What is the actual output?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 03:13:02 pm
This is my cmd:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:UsersAdmin>cd Desktop

C:UsersAdminDesktop>cd ToolsSafe

C:UsersAdminDesktopToolsSafe>/FuckItUp "C:UsersAdminDesktopToolspatch-I.MPQ" "C:UsersAdminDesktopToolspatch-P.MPQ"
Der Befehl "/FuckItUp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:UsersAdminDesktopToolsSafe>
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on November 24, 2012, 03:21:48 pm
This is not at all a problem coming from the application, but just from you not knowing how to execute an application. Why the fuck is there a / in front of it?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 04:09:46 pm
Without the "/":

C:UsersAdminDesktop>cd DesktopToolsSafe

C:UsersAdminDesktopToolsSafe>FuckItUp "C:UsersAdminDesktopToolspatch-I.MPQ" "C:UsersAdminDesktopToolspatch-P.MPQ"
Der Befehl "FuckItUp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:UsersAdminDesktopToolsSafe>
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on November 24, 2012, 04:10:41 pm
... What about pulling the MPQ into the application ? Possibly unclean way, but it works. Else, copy the mpq into the same folder and pull it into the application. Shouldn't matter, but that's a sureshot way.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 04:22:36 pm
I cannot put the patch on the file:

(http://www7.pic-upload.de/24.11.12/rfjf1gcuvmyt.jpg)

I think files are missing... but i download the OSX build.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on November 24, 2012, 04:27:32 pm
Quote from: "Nic"
but i download the OSX build.
There your problem is: The application is built for OSX while you are using windows..

Why do people don't even spot problems like that themselves? Oo
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on November 24, 2012, 04:41:37 pm
Quote from: "Nic"
I cannot put the patch on the file:

(http://www7.pic-upload.de/24.11.12/rfjf1gcuvmyt.jpg)

I think files are missing... but i download the OSX build.
Note how the file doesn't even have an .exe after it, or is called "Application" (Anwendung in German).
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 05:15:39 pm
Okay and how i run application like these?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on November 24, 2012, 05:21:22 pm
Compile it for Windows or ask someone to do so. That's why I uploaded the source code as well. OSX versions are for OSX, not windows.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Nic on November 24, 2012, 05:27:31 pm
Okay.

/edit Thank you it works... i was confused about this file. The "You must compile it"-hint  help me ;)
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Milly on December 01, 2012, 05:50:11 am
Would anyone be kind enough to tell me how to "compile" this program? <-- Whatever that means O_o?
I've compiled cores for World of Warcraft servers before, but that was a long time ago and honestly I hardly understood the concept of what I was doing in the first place. I'm just really confused here and would love if someone showed me how to do this or did it for me. Thanks.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on December 01, 2012, 01:53:19 pm
Quote from: "Xapzi"
Would anyone be kind enough to tell me how to "compile" this program? <-- Whatever that means O_o?
I've compiled cores for World of Warcraft servers before, but that was a long time ago and honestly I hardly understood the concept of what I was doing in the first place. I'm just really confused here and would love if someone showed me how to do this or did it for me. Thanks.
... Generate with CMake and Compile with Visual Studio (or another C++ application) ?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Milly on December 01, 2012, 02:40:46 pm
Quote from: "Ascathos"
... Generate with CMake and Compile with Visual Studio (or another C++ application) ?

Sorry, but I have literally no idea what you're talking about. What do you mean "generate" and "compile"? These words aren't common knowledge for beginners. Honestly I don't even understand why I can't just open this up with an ".exe" file like every other tool on this website. = And what are these programs you're talking about and how do I use them?

I've tried looking all this C++ stuff up on Google, but I might as well be reading Japanese. And I even checked the FAQs and search feature on Modcraft. Can't find anything regarding this. It's like I'm expected to have a college degree and years of experience when I'm just starting out...

Anyway, if anyone can give me an actual noob-friendly explanation as to what I'm supposed to do with this stuff, I would greatly appreciate it. If not, so be it. Thanks.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on December 01, 2012, 03:21:54 pm
Quote from: "Xapzi"
Quote from: "Ascathos"
... Generate with CMake and Compile with Visual Studio (or another C++ application) ?

Sorry, but I have literally no idea what you're talking about. What do you mean "generate" and "compile"? These words aren't common knowledge for beginners. Honestly I don't even understand why I can't just open this up with an ".exe" file like every other tool on this website. = And what are these programs you're talking about and how do I use them?

I've tried looking all this C++ stuff up on Google, but I might as well be reading Japanese. And I even checked the FAQs and search feature on Modcraft. Can't find anything regarding this. It's like I'm expected to have a college degree and years of experience when I'm just starting out...

Anyway, if anyone can give me an actual noob-friendly explanation as to what I'm supposed to do with this stuff, I would greatly appreciate it. If not, so be it. Thanks.
Practically following these steps...
http://www.trinitycore.info/How-to:Win (http://www.trinitycore.info/How-to:Win" onclick="window.open(this.href);return false;)
Just that you don't need the SQL thingies, create anything, bla bla bla - the process of cmake and vstudio are essential.

Makes me wonder if you used Repacks all until now.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Milly on December 01, 2012, 03:30:00 pm
Quote from: "Ascathos"
Practically following these steps...
http://www.trinitycore.info/How-to:Win (http://www.trinitycore.info/How-to:Win" onclick="window.open(this.href);return false;)
Just that you don't need the SQL thingies, create anything, bla bla bla - the process of cmake and vstudio are essential.

Makes me wonder if you used Repacks all until now.

There was a point in time when I was following guides and successfully compiled a few WoW cores for ArcEMU and Skyfire EMU, but that doesn't mean I learned anything or had any idea what I was doing. I just read the guide. Right now I'm using repacks simply for testing purposes. I don't have a public server atm. Thanks for the info though.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Eatos on December 02, 2012, 08:47:36 pm
Someone asked how to decrypt it.
Atm there is no program for it, but you can decrypt it by self.
You see even tho this tool masks the files and its path, it does not  change their structure at all.
So for example
There is file like this
File0018025.m2 You know it is .m2 file model of something but still dont know which one.Open it in hex 010 editor apply m2 template and then watch the magic in struct filename_ModelName will appear Model name, then again just save it like that.
Currently with this method what is hard to guess are .anim files rest can be decrypted easly with some work :)

So tool is not useless , it does protect your files, but not for people that do have experience with cracking it.
And yes once you have all files decrypted it is easy then to reconstruct whole patch :)
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on December 02, 2012, 09:35:27 pm
Quote from: "Eatos"
Someone asked how to decrypt it.
Atm there is no program for it, but you can decrypt it by self.
You see even tho this tool masks the files and its path, it does not  change their structure at all.
So for example
There is file like this
File0018025.m2 You know it is .m2 file model of something but still dont know which one.Open it in hex 010 editor apply m2 template and then watch the magic in struct filename_ModelName will appear Model name, then again just save it like that.
Currently with this method what is hard to guess are .anim files rest can be decrypted easly with some work :)

So tool is not useless , it does protect your files, but not for people that do have experience with cracking it.
And yes once you have all files decrypted it is easy then to reconstruct whole patch :)
There is no (solid) way to deduce this with a program, though. Also, reconstructing a 300+ MB Patch (un-extracted) would be more hassle than worth under circumstances.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Eatos on December 02, 2012, 10:07:56 pm
Well depends what are you looking for in that patch.If is something very rare and hard to find, then all effort is worthed :)
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Norimar on December 05, 2012, 08:29:53 am
So much trubble,... and thats just because noone upload the windows version of this? x)
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Milly on December 20, 2012, 11:37:28 pm
Is it just me, or does the latest version of Ladik's MPQ Editor open these MPQs up just fine? Everything is exportable too. The only difference is that all the directories are gone and everything is named "File00000001.dbc", etc. Obviously this would make things very difficult for people who want to steal your stuff, but it isn't stopping them from exporting all your precious files and rebuilding them into a fresh MPQ of their own.  Custom skins are extremely easy to steal. Although I imagine it would be a royal pain in the ass to figure out the names of all your ADT files, and then rename them. Anyways, just letting you all know. This is still an extremely useful tool and I'll be sure to use it before publishing any of my MPQs.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on December 20, 2012, 11:52:56 pm
You are seeing fine. That's all the tool does. Nothing can prevent anyone from stealing your data anyway, as the client would not be able to read it as well, then. Removing file names is about everything you can do. (while reconstructing them can be done automatically, btw.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Milly on December 20, 2012, 11:55:36 pm
Oh well, I suppose some protection is better than none. Especially when everybody is always going out of their way to steal their rival's data in the private server community. Even password and IP address farming...
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: iindigo on December 21, 2012, 03:08:17 am
Dumb question… if instead of using the standard Blizzard map IDs you used long, completely arbitrary numbers and used FuckItUp on your patch MPQ, wouldn't it be extremely difficult for someone else to run a server with your patch? I don't know if it would work or not, but it seems like it would since private server map IDs need to match up with their client-side counterparts.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on December 21, 2012, 08:31:41 am
One can still crack that automagically.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on March 17, 2013, 05:51:24 pm
I have no idea why I'm even uploading it, however, as someone requested it (because he was uanble to), I'll just do it... still, you should try doing it on your own. Else, you'll never understand.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Steff on March 17, 2013, 06:12:59 pm
But keep in mind. IT DONT SAVE YOUR WORK REALY!
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on March 17, 2013, 07:48:33 pm
Of course it does not. Nothing can ever do that.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Ascathos on March 17, 2013, 08:58:14 pm
Quote from: "schlumpf"
Of course it does not. Nothing can ever do that.
Not releasing it does, by the definition.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: mariobox on April 28, 2013, 02:01:02 pm
Does anyone knows how to crack this?
If so, please pm me because I want to see if you can crack mine.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: stoneharry on April 28, 2013, 02:40:23 pm
Quote from: "mariobox"
Does anyone knows how to crack this?
If so, please pm me because I want to see if you can crack mine.

You crack it by making your own listfile. You can view what any file is by just by opening it up with 010 editor, etc.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Tidus on March 02, 2014, 11:15:13 pm
Quote from: "Ascathos"
I have no idea why I'm even uploading it, however, as someone requested it (because he was uanble to), I'll just do it... still, you should try doing it on your own. Else, you'll never understand.

Failed to fuck up my mpq archive, but won't say why.  :(
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Skarn on March 03, 2014, 06:29:32 am
Repack your MPQ and try once more.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 04, 2014, 08:07:22 pm
Any chance of updating this tool to work with Cataclysm MPQs?
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Skarn on March 04, 2014, 09:13:05 pm
It will work with any MPQs. MPQ file format have never been changed since classic yet.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on March 04, 2014, 09:16:26 pm
The MPQ format changed multiple times, but yes, it should work. If not, update Stormlib.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 04, 2014, 09:41:50 pm
Hi Skarn,

Thanks for the reply. Just tested this against a WotLK MPQ file and I received the same problem. At this point I'm convinced the issue is on my end. Not sure what is causing it though. I'm running on 64-bit Windows 7. I built the solution with CMake 2.8.12.2 and compiled it with Visual Studio 10.0.

When trying to "FuckUp" a WotLK MPQ, the program runs it's course and at the end of the process it prints "Failed.". With Cataclysm MPQs, the program is unable to open the Cataclysm archive at the end of the process. It simply crashes. Any ideas what could be going wrong? Please ask if you require more specific information to help me troubleshoot this issue.

Edit:
To be more specific, the final output of the program is:

Opening archive C:...patch-4.MPQ ...
Fucking up archive ...
Failed.

With Cataclysm MPQs this doesn't even appear. The program simply crashes.

Thank you,
Epicurus
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 04, 2014, 09:50:23 pm
Hi schlumpf,

Thank you for the reply. I will update Stormlib and report back with my results.

Thanks!
Epicurus
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 04, 2014, 10:20:55 pm
Hi schlumpf,

It would seem that Stormlib is not the cause of this problem. I'm not the savviest window's guy anyway, I'm more tailored towards working in a Linux environment.  Of course, working on Windows has it's benefits, given that I can do all of my model editing, create the MPQs and remove the listfile all from one operating system.

I will switch over to Linux and attempt to compile the source there. I'll report back once I'm done.

Thanks,
Epicurus
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on March 04, 2014, 10:35:12 pm
I never tested it on anything but OS X.
The step failing for you is removing the list file. Sadly, StormLib is bad in matters of error handling (at least in the packaged version). You may want to replace the printf("failed"); with
Code: [Select]
printf ("Failed: %dn", GetLastError());and then look in Stormlib.h, what your error is.

When hacking this together I really didn't care about error handling, sorry.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 04, 2014, 10:47:45 pm
No worries, schlumpf. It's a tool that was intended for personal use, and later shared with the public. It would be foolish of anyone to expect debugging capabilities. Though, you did supply the source which I am grateful for.

The source does not compile on a Linux platform, however. Here is the dump:

Code: [Select]
Linking CXX executable FuckItUp
CMakeFiles/FuckItUp.dir/src/SCompression.cpp.o: In function `Compress_ZLIB(char*, int*, char*, int, int*, int)':
SCompression.cpp:(.text+0x220): undefined reference to `deflateInit_'
SCompression.cpp:(.text+0x23f): undefined reference to `deflate'
SCompression.cpp:(.text+0x269): undefined reference to `deflateEnd'
CMakeFiles/FuckItUp.dir/src/SCompression.cpp.o: In function `Decompress_ZLIB(char*, int*, char*, int)':
SCompression.cpp:(.text+0x2f6): undefined reference to `inflateInit_'
SCompression.cpp:(.text+0x315): undefined reference to `inflate'
SCompression.cpp:(.text+0x333): undefined reference to `inflateEnd'
CMakeFiles/FuckItUp.dir/src/SCompression.cpp.o: In function `Compress_BZIP2(char*, int*, char*, int, int*, int)':
SCompression.cpp:(.text+0x6c4): undefined reference to `BZ2_bzCompressInit'
SCompression.cpp:(.text+0x710): undefined reference to `BZ2_bzCompress'
SCompression.cpp:(.text+0x72c): undefined reference to `BZ2_bzCompressEnd'
CMakeFiles/FuckItUp.dir/src/SCompression.cpp.o: In function `Decompress_BZIP2(char*, int*, char*, int)':
SCompression.cpp:(.text+0x783): undefined reference to `BZ2_bzDecompressInit'
SCompression.cpp:(.text+0x7b9): undefined reference to `BZ2_bzDecompress'
SCompression.cpp:(.text+0x7dc): undefined reference to `BZ2_bzDecompressEnd'
CMakeFiles/FuckItUp.dir/src/SFileAddFile.cpp.o: In function `WriteDataToMpqFile(TMPQArchive*, TMPQFile*, unsigned char*, unsigned int, unsigned int)':
SFileAddFile.cpp:(.text+0x28f): undefined reference to `crc32'
SFileAddFile.cpp:(.text+0x3c0): undefined reference to `adler32'
CMakeFiles/FuckItUp.dir/src/SFileAddFile.cpp.o: In function `SFileAddFile_Init(TMPQArchive*, char const*, unsigned long long, unsigned int, unsigned int, unsigned int, TMPQFile**)':
SFileAddFile.cpp:(.text+0xb5f): undefined reference to `crc32'
CMakeFiles/FuckItUp.dir/src/SFileAttributes.cpp.o: In function `SFileUpdateFileAttributes(void*, char const*)':
SFileAttributes.cpp:(.text+0x975): undefined reference to `crc32'
SFileAttributes.cpp:(.text+0x9d3): undefined reference to `crc32'
CMakeFiles/FuckItUp.dir/src/SFileReadFile.cpp.o: In function `ReadMpqSectors(TMPQFile*, unsigned char*, unsigned int, unsigned int, unsigned int*)':
SFileReadFile.cpp:(.text+0x453): undefined reference to `adler32'
collect2: ld returned 1 exit status
make[2]: *** [FuckItUp] Error 1
make[1]: *** [CMakeFiles/FuckItUp.dir/all] Error 2
make: *** [all] Error 2

I'll switch back to windows and attempt debugging in the manner you've suggested.

Thanks again,
Epicurus
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on March 05, 2014, 12:32:47 am
That's just missing libz / libbz2.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Epicurus on March 05, 2014, 02:18:08 am
Hi schlumpf,

There were several issues here. Since the program is copyrighted, perhaps you will upload a new version based on these simple fixes, perhaps you wont given that the program was intended for OSX. Nevertheless, I will post the solutions I found for others who may experience them.

First issue I had was an outdated version of stormlib. My first attempt at updating stormlib failed because I found a fork rather than the master repository.

Official Stormlib repository: https://github.com/stormlib/StormLib (https://github.com/stormlib/StormLib" onclick="window.open(this.href);return false;)

I updated the stormlib files in your source directory which led to the next issue.

With the latest release of stormlib, the function SFileCompactArchive takes 3 arguments, the third being a boolean. This is easily resolved by supplying the third argument.

As for compiling on Linux, I had to link z and zb2 within CMake and it was able to compile. Thanks for pointing me in the right direction.

Epicurus
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: schlumpf on March 05, 2014, 09:34:04 am
You may just post your modified version here.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: Magnus on May 05, 2015, 12:01:13 pm
I have a windows version and realises that it doesn't work well with the optional 2nd parameter.

Works well:
FuckItUp.exe patch-6.MPQ

Doesn't work:
FuckItUp.exe patch-6.MPQ patch-6.new.MPQ

Error message is:
Failed.

It creates a file with about 99% of the input filesize. But the file is corrupt.
Title: Re: [TOOL] [MPQ] FuckItUp
Post by: YourArthas on May 02, 2018, 02:39:58 pm
Hello can someone make me a .exe of this , I'll use it for our warcraft 3 hd mod release , Armies Of Azeorth