Advanced Strategic Command

documentation

The Source

Borland C++ Builder / free command line compiler

2002-03-02 : Due to new depencies, these instructions are no longer complete, neither is the library package mentioned here. I'll update both as soon as there is demand: write a mail to bickel@asc-hq.org. But since things change quite fast at the moment and very few people are using Borland C++ Builder, I don't see the necessity to keep this page and the library package up to date.

Detailed instructions for setting up the required libraries:

  1. Get the JPEG-lib source code by the Independant Jpeg Group.
  2. Uncompress the JPEG-lib source code into asc/source/libs/jpeg-6b/ (this directory already exists).
  3. Get SDL 1.2 or newer. It can be downloaded from www.libsdl.org. You need the source code and the DLL file (the later is called: "binary runtime / win32").
  4. Get SDL_mixer 1.2 or newer. It can be downloaded from www.libsdl.org/projects/SDL_mixer/. You need the source code and the DLL file (the later is called: "binary / win32", get the one without devel in the name).
  5. Get SDL_image 1.2 or newer. It can be downloaded from www.libsdl.org/projects/SDL_image/. You need the source code and the DLL file (the later is called: "binary / win32", get the one without devel in the name).
  6. Get SDLmm. It can be downloaded from sdlmm.sourceforge.net. You only need the source code.
  7. The project files assume there is a SDL, SDL_mixer, SDL_image and a SDLmm directory located in the same directory where asc is placed. You need this directory structure:
    asc\ (from ASC source package or CVS)
    asc\source\
    asc\doc\
    SDL\ (from SDL source package)
    SDL\include\
    SDL\src\
    SDL_mixer\ (from SDL_mixes source package)
    SDLmm\
    SDL_image\
    After uncompressing the packages, move them so that this directory structure forms. You probably have to rename the directories from SDL-1.2 to SDL, for example.
    The asc directory may be called differently. If you downloaded the asc source package from the homepage, that is no problem, it may for example be named asc-1.5.0
  8. Create a subdirectory called BIN in SDL\ and put the SDL.DLL into it.
  9. Go to this directory and run: IMPLIB -a -c SDL.LIB SDL.DLL
  10. Create a subdirectory called BIN in SDL_MIXER\ and put the SDL_MIXER.DLL into it.
  11. Go to this directory and run: IMPLIB -a -c SDL_mixer.LIB SDL_mixer.DLL
  12. Create a subdirectory called BIN in SDL_IMAGE\ and put all DLLs from the SDL_image binary backage into it.
  13. Go to this directory and run for each DLL: IMPLIB -a -c dllname.LIB dllname.DLL
    Borland C++ Builder
    1. Open asc/Asc.bpg and run "make all projects"
    2. If you want to run ASC from within Borland C++ Builder, place a file ASC.INI in asc\soure\win32\borland\ that contains the following line:
      SearchPath0=c:\somewhere\
      replace c:\somewhere by the directory where you want ASC to place its files (savegames, etc.).
    3. Get the datafile (main.con) from the website and put it in this directory.
    Free Borland C++ command line compiler
    1. Execute asc/makebcc.bat

      All major files will be placed in the asc\game\ directory that is going to be created.