home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Supremacy 1
/
Supremacy-1.iso
/
DEMOS
/
C-D
/
DOCDISK.ZIP
/
UTILS.DOC
/
MDPK1991.DOC
< prev
next >
Wrap
Text File
|
1985-11-20
|
17KB
|
347 lines
Mega Depack
===========
v1.991-(v2 reserved for something special!)
===========================================
Coded by Mike Watson
====================
This version finished - 24/08/1992
==================================
------------------------------ the boring bits -------------------------------
This program is public domain and may be distributed on a non profit making
basis by bulletin boards and pd libraries. However it can only go on a
cover disk of a magazine with my permission, the contact address is at the
end of the text.
Note - this documentation MUST be included with the program file if you do
distribute it.
------------------------------- the legal bits -------------------------------
This program has been tested as completely as possible and only makes legal
system calls without any 'hacking around' and as such should not cause any
damage. If for any reason damage is caused then I cannot be held for
responsible for it. You use the program at you're own risk. To guard
against any mishaps you should save the depacked files out as a different
name or in a different folder.
------------------------------ on with the show ------------------------------
Ok folks, what does it do then?? Well a few months ago I had some programs
to put on my hard drive and as usual they were packed. While this is no
bad thing in itself, the depacking time does tend to offset the loading
speed off hard drive, so I unpacked them by hacking around in monst for a
while. Since this was a regular occurance I decided to code a program which
would automate this process and would be of great help to my self as well.
Anyway I eventually wrote routines to unpack everything I had and was so
pleased with the result that I thought other people would like to use it as
well. So mega depack was released as public domain at the end of april 1992
. It went out to a few libraries and also to ST format. Of those however
only Steve of Floppyshop replied to me. He helped in finding all the bugs
in earlier versiosn of the program which had gone undetected so a big thank
you has to go to him
ST format never replied so in july 1992 I sent it to st review who replied
to me the day after I sent it to them. So the cover disk of the september
issue it when it appears. However development of the program did not stop
there though, it went throught more revisions and at about that time I had
two letters from people who had seen earlier versions and had found stuff
it never depacked. Thanks to Keith Frisby and Rob Gilmour for all their
help.
------------------------------ how to use it ---------------------------------
When the program first loads up you will see a little credits page with
the current version number, press space to carry on.
A file selector box will be shown, if you have TOS 1.4 or higher then the
message 'please select file to depack' will be shown on the fileselector
(I tried this on TOS2.06(disk version) but it never worked, perhaps someone
could confirm this).
Select you're file to unpack and the program will load it in and then
determine what it is packed by (if at all). If it is not packed then it
will make a brave attempt at determining if it is packed by something
else. For the curious - you can normally tell a packed program file as it
will have a very small or non existant relocation table whilst packed data
files often have an ascii longword such as 'lsd!' or 'ice!' at the
beginning of the file.
There are three exceptions to the above and concern early version of pack
ice, atom,thunder and all versions of the pompey packer and that is that
data files produced by them cannot be distinguished.
The clashes are - ice 2.0 and 2.2 have header Ice!.
all pompey datafiles have trailer POPI.
atom v3.1,3.3 and thunder 1,2 all have header ATOM.
When this occurs you are given a choice of depackers to use or a chance to
exit. Choose what you think is the right depacker. It will more than likely
crash or produce garbage if it is the wrong choice so save it out as a
different file name and check it. If something is wrong then try again with
another option.
Eventually if a file depacks succesfully a file selector will be shown
which will allow you to select the output filename. Again on TOS 1.4 and
above there is a message 'select filename to save to'. When the file has
been saved you can then load another. Select cancel on the load screen to
exit the program.
-------------------------------- extra bits ----------------------------------
Since the last release of this program, I have substantially rewritten it
and fixed all of the bugs(I hope). This has resulted in the source code
becoming overly large (>100kb) and so I have stopped distributing the
source with the program. If you want the full 68000 source then send a disk
and an sae to the address at the end of this text. The rewrite is also the
reason why I rewrote this doc to reflect all the changes that I have made.
The development of this program will continue for as long as new packers
are released, bugs are discovered or old packers rear their ugly heads. To
ensure this program remains up to date it is up to you the user to support
it, even though I do get a lot of packers sent to me some may well slip
through the net. If mega depack cannot depack a program which is obviously
packed and the program is public domain then please send it to me and I will
attempt to include a routine to handle it. Even better though is if you
could send me the packer (especially if you wrote it!). As this makes it
even easier to code a routine for it.
Ways to spot packed files :-
Mega depack may say that it could be packed.
The file was packed by yourself.
It displays a mesage when loaded e.g 'blah packer v555555 depacking'.
Flashes the colours in a hypnotic fashion.
Other plans for the program which are already semi under way are :-
GEM version installable as an accessory and hopefully cpx(I'm waiting on
some info from Atari for this). Interface is coded the depacking stuff
will be hooked up to it soon!
Batch unpack - specify a path and sit back and watch it go. Not many
problems here.
--------------------------------- wanted -------------------------------------
1. Back issues of Judge Dredd the Megazine(1,3,7,10,12)
2. Any info on the archiving method used by LHARC 2.01, its so much better
than Atomic. I have located the depacker inside the archiver but havn't been
able to rip it out yet. I want to write an exec packer round this algorithm
as it beats everything!.
----------------------------- acknowledgements -------------------------------
Steve Delany at Floppyshop - the best pd/shareware library in the uk!
Keith Frisby - supplier of packers and also the first person
to write to me.
Rob Gilmour - another person to supply packers.
Gordon & Dave - asteroids - the business.
DML - photochrome simply the best iff convertor on
the st.
Gus - for liking star trek and for having a strange
sense of humour (totally trek tastic matey!).
My cd collection - for providing musical help in the form of
new order, the velvet underground, sonic youth
(nice to see them getting some recognition at
last - they have and always will beat nirvana
any day!), public enemy(yoh! flave),
808 state, the byrds, the shamen, nin, the
revolting cocks, primal scream and many others
no mainstream rubbish here *8}
The authors of all the - Axe (fire & ice toppled by atomic)
packers. - Altair (atomic - 3.5 the business!)
- DC software (dcsquish)
- The Firehawks (Speed packer)
- JMP (Qpack)
- JPM (pompey & thunder)
- Mike Coates (bytekiller)
- Ozz (automation & lsd)
- Ralph Hartmann (happy - a brave early attempt,
birdies med rez fix was possibly the only
useful contribution he's ever made to the st!)
- Russ Payne (bytekiller)
- Thomas Questor/Markus Fritze (pfx packer)
- Tim & Andrew Knipe (jam/jek, g'day!)
- Tom Hudson (degas)
- Trio inc (spectrum 512 - unispec & digispec
are superb!)
- Vermillion Pawn (!?) (ivory dragon - strange)
- any other packer authors I forgot.
----------------------------- packers supported ------------------------------
program/packer versions formats
============== ============ ------------------------------------------------
4pak programs
atomic 3.1/3.3/3.5 programs and datafiles
automation 2.31/2.51 programs and datafiles
automation 5.01 programs and datafiles
ba pack programs
bytekiller 2.0/3.0 programs
Russ Paynes
dcsquish 1.0/1.2/1.4 programs
degas elite picture files pc1-3
gollum programs(both huffed and not)
happy programs
ice 1.1/2.0/2.2 programs and datafiles
2.3/2.4
ivory dragon programs and datadiles
fire 1.0/2.0 programs and datafiles
jam 1/2/3/4 programs and datafiles (lzh,lzw,jam,ice)
jek 1.2/1.3 programs and datafiles
lsd 1.2 programs and datafiles
pfx 1.1/2.1 programs
pompey 1.5/1.9/2.6 programs and datafiles
pompey 1.7/1.9x/2.3 programs
3.0
qpack 2 programs and datafiles
spectrum 512 picture files
speed packer 2 programs and datafiles
stos programs
superior programs
thunder 1 programs
thunder 2 programs and datafiles
unknown programs (used to pack concerto on STF 37)
46 packers supported
78 different file formats
----------------------------- just for interest ------------------------------
Here's how the files are unpacked (just for the curious).
4pak - uses a modified dissasembly of the depacker.
atomic progs - modifies program and jumps into it.
atomic 3.1/3.3 data - uses routine supplied with program.
atomic 3.5 data - uses a dissassembled routine from the packer.
automation 2.3/2.5 program - modifies and runs program.
automation 2.3/2.5 data - uses routine supplied with program.
automation 5.01 program - modifies and runs program.
automation 5.01 program - uses an ICE2.4 depacker.
bapack - modifies and jumps into program
bytekiller - modifies and jumps into program for Russ Paynes version.
uses a dissassembled routine from the depacker on versions
2 and 3.
dcsquish 1.0/1.2/1.4 - uses dissassembled code from the depackers.
degas elite - uses a dissassembled routine of unknown origin
gollum - uses a modified dissasembly of the depacker.
happy - uses a heavily modified dissasembly of the depacker.
ice progs - all modify and jump into program.
ice data - all use routines supplied with program.
ivory dragon - programs and datafiles use a dissassembled depacker.
fire progs - all modify and jump into program.
fire data - v1 is a dissassembly of unknown origin v2 came with program.
jam - a real mixture of dissassemblies and code that came with program.
the older ones use the old jek routines. most of the programs modify
and run the program.
lsd/jek - programs are modified and run. datafiles are depacked using a
dissassembly of the depacker.
pfx - uses a dissassembly of the depacker.
pompey - programs are modified and run. datafiles use code that came with
the program.
qpack - uses code supplied with the program.
spectrum 512 - uses a routine a found on a pd disk.
speed packer - programs are modified and run, datafiles use code supplied
with the program.
stos - uses a dissassembly of the depacker.
thunder - programs are modified and run. datafiles use code supplied with
the program
unknown packer - uses a dissassembly of the depacker.
---------------------------------- history -----------------------------------
revised on 24/4/92 to depack gollum progs and fix ice depack bug.
revised on 25/4/92 to depack happy progs.
revised on 26/4/92 to depack jam packer v1 progs, lsd/jek datafiles,
spectrum512 piccies.
revised on 27/4/92 to depack pompey packed prog & dat files
revised on 27/4/92 to fix anther ice depack bug (2.3 prog files did not
always depack properly.
revised (again!) on 27/4/92 to depack dcsquish programs.
revised on 28/4/92 to depack 4pak programs.
revised on 29/4/92 to depack automation chunk packed files.
revised on 29/4/92 to depack old style ice packed files.
revised on 29/4/92 to depack packed degas files.
revised on 9/5/92 to work on pre tos 1.4
revised on 11/6/92 to work on automation 501 files properly (small bug)
revised on 26/6/92 to work on ice datafiles, (my source had been
corrupted!)
st review version assembled 13/7/92.
revised on 15/7/92 to work on what I believe is the stos packer and
also a packer for which I have no clue at all to what it is called
but was used to pack concerto on st formats coverdisk 37. its an
appallingly bad packer anyway so who cares.
i would strongly advise anyone using the stos packer to discontinue using
it for two reasons :
- firstly its a bad packer!
- secondly and more importantly is that it relocates its depacker
to $7fd00 which on a 520st is just below the screen ram but on any other
machine it is in the middle of no mans land. since most people with
a meg or more generally use that ram this depacker has a habit of
trashing whatever is there, especially with me because the first half meg
of my ram is used by my harddisk driver, cache, replacement desktop and
desktop accessories. you have been warned!!!
revised on 21/7/92 to work on thunder packed progs (cheers keith!)
revised on 21/7/92 (again) to work on dcsquish v1.0 & 1.2 packed progs.
(i was bored!)
revised on 24/7/92 to work on pfx v1.0 & 1.2 packed progs. fire v1 packed
programs and datafiles
revised on 25/7/92 to fix yet more ice bugs. and to work on ivory dragon
packed progs/datafiles.
revised on 26/7/92 to update routines to unpack pompey pirates stuff.
also to fix clashes between atom files. extra bytekiller compatibility
added as well, phew!
revised on 29/7/92 to work on pompey 2.6 packed files.
revised on 07/8/92 to work on a packer used by superior although it may not
be a new packer as such but a old version of fire or ice with a new header.
revised on 09/8/92 to work on thunder v1 packed program files.Also pompey
v2.3 and 3.0 progfiles. And speed packer 2 progs and data.
revised on 18/8/92 to work on BAPACKED progs and pompey 1.9x progs.
revised on 24/8/92 to handle an extra PFX packed format and Qpack progs.
---------------------------------- address -----------------------------------
If you want to contact me to send packers, programs or anything else you
think i'd be interested in then my address is -
Mike Watson,
59 Pilmuir Road,
Forres,
IV36 OHE,
Scotland
Only for legal reasons though, any pirates will get a nasty shock!
---------------------------------------------------------------------------
Mike Watson - 24/08/1992
---------------------------------------------------------------------------