Answer» Over my years trying to write useful programs, I have always wondered about 2 things..
But first lets have at least some background information so you know what this is all about..
I have some unofficial Patching tools for a few apps, as example a screen saver that i don't even like, but that's not the point...
Most of these tools has 1 major thing to do, Replace EXE, DLL and/or some INI files
If I look how the "patching" is being done by these 3 different examples I got, I can SEE this:
1 PatchM12.EXE Size=119.94Kb Contains: M12.exe Size=8,93Mb M12.DLL Size=2,14Mb Extras Plays music file after user specifies Application's folder (Example C:\Program\M12\) (The music that the user will hear is definitely not MID/MIDI, its 3:47 in length and it contains human voices)
2 PatchWR.EXE Size=189.94Kb Contains: WR.exe Size=2,33Mb WR.DAT Size=6,94Mb Extras Plays music file after user opens this Patcher (The music that the user will hear should be MID/MIDI, since it is only instrumental and it sounds just like any MID music)
3 Patch_Wolf.EXE Size=249.78Kb Contains: Reg.exe Size=12.75Mb REG.DLL Size=4,56Mb REG.ini Size=2Kb Extras Plays music file after user opens this Patcher (The music that the user will hear is defently not MID/MIDI, its 4:16 in length and it contains female singing)
Now the things I would like to know is these :
1: How do they make the music fit in a way too small file and play it in Real-Time ?
2: How do they compress the DLL/EXE files so hard ? (The filesizes mesured could be wrong, but i don't think so)
Any useful help will be appreciated
NOTE: I'm not uploading the patches, because they are for games playable on Win95, so I don't think anyone will pay attention to them
Edit: EXCUSE me, some misspelling, but who cares as long as you can read it...1. Midi files are just lists of numbers; they can be very small. A midi player written in assmbler can be a few HUNDRED bytes in size.
2. The exe and dll files need only contain the patching code, plus blank space (which compresses very well!). They can get the rest of what they need from the official installed version.
Those sure look like cracks, which is against CH policy.
Most "executable compressors" achieve a compressed size around 25-30% of the original size, which makes me think that your files are merely patching apps plus - only - the patching code which is to be inserted into the official exe or dll files. This is, in fact, what "patching" means.
I've never used a legit patch program that had music, with vocals or otherwise.
And yet 90% of the keygens and cracks I've seen use some form of TERRIBLE terrible music that sounds like a goat being castrated. Don't ask for details on that.BC, I know they can sound awful, but I just wanted to know how they made the music
by the way, I never used illegal copies of anything yet...
The only thing I have used is a nocd patch for a game that I already own, becuase the disc is too damaged to be played with, but installation works...
* Ryder17z tries to remain clam thinking why he havent started doing what many others are doing (Downloading from Illegal sites) ...they embed the music in the program. nothing fancy. a 48kbps Mp3 of the length you've described would likely weigh in around 1MB.Your sound card will accept MIDI commands. These are instructuons, not compressed waveforms. For more infromation pleae read this link: http://en.wikipedia.org/wiki/Musical_Instrument_Digital_Interface Notice there is nothing illegal about using MIDI, Per Se. If the MIDI script is from modern composition that is copyrighted, then there would be a possible legal issue.
Quote from: BC_Programmer on February 23, 2009, 09:50:23 AM a 48kbps Mp3 of the length you've described would likely weigh in around 1MB. The biggest file size he quoted was 249 KB. And we're talking MIDI here.
Google told me of a ABBA tune:
QuoteMIDI file size: 20480 bytes, media length: 5 min. 30.923 seconds That's 20 KB.
Oh, I was looking at the wrong filesizes then.
QuoteThe music that the user will hear is defently not MID/MIDI, its 4:16 in length and it contains female singing Probably just "choir ahhs" maybe?Ah, I see, maybe I should try make a midi player in C++
Could be worth a try
|