1. bind can never be perfect...

I was playing Jiri's Aliens game on Friday, and thought, I'll put it on a
floppy to take to work for my lunchbreak, tommorow. (I work weekends...)

So I decide, "I'll bind everything together...". This I do, and then put
the aliens.exe in a temporary directory on the HD ('cos the drive is
slow).
As you've guessed the game didn't work because the .f and .wav files were
missing.

I have a solution:

1. Bind the file (this saves having to include the .e files at a later
stage...)

2. Make a self extracting archive (SFXA) of all the necessary files
(In this case, the two fonts, the three sounds, and the main executable).
   I used pkzip and zip2exe for this purpose, but another should work just
fine...
   I find it better to name the SFXA with a tilde (~) at the beginning of
the filename to remind me not to run it on it's own.

3. Create a batch file along the lines of:

        @echo off
        mkdir ~run
        cd ~run

        copy ..\SFXAname.exe .
        call .\SFXAname.exe > NUL
        call .\Bound_Euphoria_Progname.exe

        echo y | del *.* > NUL
        cd ..
        rmdir ~run

   and put it in the same directory as the SFXA.

So my Aliens batch file looks like this:

        @echo off
        mkdir ~run
        cd ~run

        copy ..\~aliens.exe .
        call .\~aliens.exe > NUL
        call .\a.exe

        echo y | del *.* > NUL
        cd ..
        rmdir ~run

Comments welcome,
Carl

--
Carl R White    | e-mail...:                     crwhite at comp.brad.ac.uk
                | finger...:              crwhite at dcsun1.comp.brad.ac.uk
                | web......: http://www.student.comp.brad.ac.uk/~crwhite

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu