home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Equalizer BBS
/
equalizer-bbs-collection_2004.zip
/
equalizer-bbs-collection
/
DEMOSCENE-STUFF
/
BYTE-SRC.ZIP
/
BYTE-SRC.NFO
next >
Wrap
Text File
|
1993-12-28
|
9KB
|
157 lines
┌────────────────────────────────────────────────────────────────────────────┐
│ ███████ ██ ██ ▄██████ ██████▄ ██ ██ ███████ ▄██████ │
│ ▐█▌ ██▄▄▄██ ██▄▄▄▄ ██▄▄▄█▀ ██▄ ▄██ ▐█▌ ██▄▄▄▄ │
│ ▐█▌ ██▀▀▀██ ██▀▀▀▀ ██▀▀▀██ ▀███▀ ▐█▌ ██▀▀▀▀ │
│ ▐█▌ ██ ██ ▀██████ ██████▀ ▐█▌ ▐█▌ ▀██████ │
│ │
│ ██████▄ ▄██████ ▄██████ ▄█████▄ ██████▄ ▄██████ │
│ ██▄▄▄█▀ ██▄▄▄▄ ██▄▄▄▄ ██ ██ ██ ██ ██▄▄▄▄ │
│ ██▀▀▀██ ██▀▀▀▀ ██▀▀▀▀ ██ ██ ██████ ██▀▀▀▀ │
│ ██████▀ ▀██████ ██ ▀█████▀ ██ ▀██ ▀██████ │
│ │
│ ▄█████▄ ██ ██ ██████▄ ▐██▌ ▄█████▄ ███████ ▄██████▄ ▄█████▄ ▄█████▄ │
│ ██ ██▄▄▄██ ██ ██ ██ ██▄▄▄▄ ▐█▌ ██ ██ ██ ██▄▄▄██ ██▄▄▄▄ │
│ ██ ██▀▀▀██ ██████ ██ ▀▀▀▀██ ▐█▌ ██ ██ ██ ██▀▀▀██ ▀▀▀▀██ │
│ ▀█████▀ ██ ██ ██ ▀██ ▐██▌ ▀█████▀ ▐█▌ ██ ██ ██ ██ ██ ▀█████▀ │
│ │
│ The source code! │
│ _______ / │
│ / / ┌──┌┐ │─┬─┌──┌─┐┌─┐┌─┐o┌──┌──┌── │
│ / / ├─ │└─┐│ │ ├─ ├┬┘├─┘├┬┘│└─┐├─ └─┐ │
│ /____/ /_____ └──│ └┘ │ └──│ \│ │ \│──┘└────┘ │
│ │
└────────────┐ ┌───────────────────┐ ┌─┘
└────────────────────────────┘ └────────────┘
Well, I've released my source, just like I said in my demo. This zip file
contains directories, so if you didn't extract it using the '/d' option on
pkzip, then you're obviously going to have a little trouble (why don't they
just make that switch default on all copies of pkzip?). Anyways, compiling
this monster takes quite a bit of time, even on my 486. Most of the time
is spent converting the binary image files into an includeable format for
assembly, but once you've converted it, MAKE won't bother converting it
again. That brings me to another thing; the requirements for compilation:
You'll need the following programs in your path:
MAKE (I use the version that comes with Borland C++ 3.1)
TASM (I am using version 3.1, but I'm sure pretty old versions will
handle my code too)
TLINK (of course)
PKLITE (although this isn't a requirement, it cuts the size of those
executables down greatly because of all the graphic data)
PKZIP (version 2.04g--this isn't necessary, but if you want to let the
main makefile run through without errors, then you'll need this)
QuickBasic (version 4.5--this really isn't necessary, but some of the
utilities and include computing programs are written in it)
Borland C++ (version 3.1--again, this really isn't necessary. I think
the only programs that this is needed for are JLIB and PCX2PBM)
That last one brings up another good point: I've included some of the
utilities that I've developed over my programming experience. BINDUMP was
written just for this demo (first time I needed it) to convert any binary
file into an include file that contains all of the data in 'DB' statements.
PCX2PBM was written a few months ago when I started working on my game.
(Yes, I'm still working on it. Maybe it'll be out in a few years :)
That program will read in PCX files and write out XLIB PBM files and also
a PALette file. BANNER was written a long time ago when I thought about
setting up my own BBS and needed to put my BBS's banner on every file.
Unfortunately, (I guess) I decided not to do a BBS because it would mean
tying up my system and the phone line all of the time. I wrote BANNER
because all of the banner programs that I could find at the time required
me to register it, otherwise it would stick in some other advertisement in
it. Well, my solution was to write my own!
The next utility may come in use to people reading my source.... Believe
it or not, I use the MS-DOS editor for just about all of my programming!
Well, I set it to use tabs of 4 spaces and do my programming like that.
Unfortunately, the MS-DOS editor thinks that if you set the tab spacing to
4 spaces, it can put tab characters instead of 4 spaces (even though tabs
are really supposed to be 8 spaces). Well, this may be fine, but the MS-DOS
editor doesn't always replace spaces with tabs, so that makes it a little
more difficult for people who aren't viewing my code in the MS-DOS editor
(when it's set to 4 spaces) because nothing lines up. I wrote TABTRIM to
solve this problem. It changes all tab characters to the correct number of
spaces, assuming you've set the tabs to 4. It also, removes any trailing
spaces at the end of lines to try and reduce the size of files a bit (note
that 'detabbing' files causes them to get larger)
JLIB is one of the most recent and most powerful utilities I've written yet.
It allows you to combine more than one file into a UNIX 'tar'-like archive.
Using either JLIBHOST (for transparent, but slow access time), or JLIBIO (the
programming library functions that allows almost no decrease in access time)
you can access the files in the library quite easily. Note that JLIB.EXE is
not really that powerful right now because I haven't added wildcard support,
but I'm getting to it... Also, note that I'm changing the format somewhat
frequently as I come up with better ways to do things. For example, I
changed the structure from the initial demo release to this release by moving
the directory entries from the beginning of the file to the end of the
archive. This allows faster updating is you want to add or delete file.
Previously, you had to move all of the data in the archive to make room for
the new file information block.
[Last minute note--I've had to completely restructure the programming for
JLIB, but I've done it! That is, I've added willdcard support so now you
can JLIB entire directories or extract all EXEs (or whatever) with one
command! Not too sure if it's completely bug free (probably not), but at
least it's fairly usuable. Restructuring the code also gave JLIB.EXE a great
speed increase (before, it opened, made a temporary swap file, closed, etc.
for *each* file). Now, that's only done once.]
That brings me to another point (getting a little redundant here?)... This
is version 1.1 of the demo. It turned out that the version of GoldPlay I
was using in the first demo was 1.0 and the latest was 1.1! (that's what
happens when I just use whatever I have laying on my disk here instead of
checking UWP first). Anyways, that fixed a bug that I discovered in the
initial version that I had to figure out a way to code around. I don't
know if the new version of Goldplay fixes anything else, but I may resolve
problems with the Non-GUS output that several people have been having (Hi
Patch!) The other thing I changed was the library format, but that's it!
One more thing before I leave... To compile the demo, change into each
directory and type 'make'. After it is done, change to the next directory
and continue until all parts have been compiled. Then, change to the main
directory (where this file is found) and type 'make'. That last make binds
everything into one neat little JLIB file and zips everything up.
Ooops! Remembered one more thing! Each of the sections will leave the
screen 'black' when they terminate (except for 'FIRE', I think) if you run
them separately. Don't panic! The screen is simply left in graphics mode
with the palette set to all black. It's done simply to avoid some flickering
between the parts of the demo. To fix it, run your screen resetting program
that came with your VGA card. You don't have one you say? Try typing
"MODE CO80" as soon as the section terminates. I have a batch file on my
system called RESET which resets the screen, so all I do is type 'RESET'
and the screen changes back the VGA text mode (aren't you jealous? :)
- Jeff
I can reached via Snail-mail at:
Jeff Lawson
1893 Kaweah Drive
Pasadena, CA 91105-2174
USA
or through E-mail at:
haroldf@rcf.usc.edu
also via phone at:
(213) 258-5604
or (if previous line is busy):
(213) 258-4264
Although I'm not asking any money for it, I'm aware that there are people who
like to send money anyways. If you happen to be one of these types of people,
feel free to contact me! :)
Thanks for downloading this!