Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Application seems too small to work [Confuses Me]  (Read 3700 times)

0 Members and 1 Guest are viewing this topic.

Ryder17z

    Topic Starter


    Intermediate
  • Thanked: 2
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Application seems too small to work [Confuses Me]
« on: February 20, 2009, 04:10:37 PM »
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...
The cake is a lie...

Dias de verano

  • Guest
Re: Application seems too small to work [Confuses Me]
« Reply #1 on: February 21, 2009, 07:08:01 AM »
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.



« Last Edit: February 21, 2009, 11:01:01 AM by Dias de verano »

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Application seems too small to work [Confuses Me]
« Reply #2 on: February 21, 2009, 10:41:20 AM »
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.
I was trying to dereference Null Pointers before it was cool.

Ryder17z

    Topic Starter


    Intermediate
  • Thanked: 2
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Application seems too small to work [Confuses Me]
« Reply #3 on: February 23, 2009, 04:50:48 AM »
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) ...
The cake is a lie...

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Application seems too small to work [Confuses Me]
« Reply #4 on: February 23, 2009, 09:50:23 AM »
they embed the music in the program. nothing fancy. a 48kbps Mp3 of the length you've described would likely weigh in around 1MB.
I was trying to dereference Null Pointers before it was cool.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Application seems too small to work [Confuses Me]
« Reply #5 on: February 23, 2009, 10:03:44 AM »
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.


Dias de verano

  • Guest
Re: Application seems too small to work [Confuses Me]
« Reply #6 on: February 23, 2009, 11:33:25 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:

Quote
MIDI file size: 20480 bytes, media length: 5 min. 30.923 seconds

That's 20 KB.



BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Application seems too small to work [Confuses Me]
« Reply #7 on: February 23, 2009, 11:51:48 AM »
Oh, I was looking at the wrong filesizes then.

Quote
The 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?
I was trying to dereference Null Pointers before it was cool.

Ryder17z

    Topic Starter


    Intermediate
  • Thanked: 2
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Application seems too small to work [Confuses Me]
« Reply #8 on: February 24, 2009, 06:00:36 AM »
Ah, I see, maybe I should try make a midi player in C++

Could be worth a try
The cake is a lie...