Slimelite BBS

Re: .Mods, Autodetection and File Merging(?)

Back to R25C

From Oliver Glass · 1996-04-02 02:47 · #75172 in R25C

In reply to .Mods, Autodetection and File Merging(?) by Anthony Hamilton

Thanks for your reply, Conan!

 AH> Else you could let the user choose the settings before the demo runs.
 AH> Some good demos do this.

Maybe, but I want this demo to be as small and easy to run as possible.
(see next comment)

 AH> Playing mods is very complex; especially if you want to support all
 AH> the different effects. I've known MOD gurues to have trouble with this.

I don't need to support many effects, just volume changes really. The
most important thing is that the mod plays in the background without causing
trouble while the demo runs. I just want the ability to init the sound card,
start and stop the mod. Does the library you mention come as a .lib or with
complete source code, because I would like to be able to cut out any
functions I don't need. Size is critical, as the finished product will be
used as an advert for a BBS and must therefore be as small as I can make it.
 
 AH> Good idea. I do this sort of thing... Er, but I haven't worked-out how
 AH> to merge the .EXE together with my data file.

I suppose if you knew the file offset of the pcx you could add it to the end
of the exe, have the program open itself and fseek to the right position.
The trouble I'm having is in finding a way to physically link the files. The
best idea I've had is to uuencode the two files and manually join the end
of the exe to the start of the pcx, perhaps with a few nulls as a buffer if
needed. As I said, I have NO idea how to do this "properly" :)

As a seperate issue, the way I make sure the demo runs at the same speed on
a P166 and a 486 is by setting the internal timer to a fast speed and have
the program's main loop pause for one timer tick each time it runs. This
works fine with DOS, but when I run it under Windows 95 it crawls. I'm
certain that this is because Windows won't let me change the speed of the
timer. Is there any way round this?

Thanks again, 0ly.

... Windoze 95 : From the people that brought you EDLIN              
--- GEcho 1.00
 * Origin: Frequency BBS, Bath +44 (0)1225 483294 :) (2:255/91)