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:
- Get the JPEG-lib source code by the Independant Jpeg Group.
- Uncompress the JPEG-lib source code into asc/source/libs/jpeg-6b/ (this directory already exists).
- 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").
- 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).
- 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).
- Get SDLmm. It can be downloaded from sdlmm.sourceforge.net. You only need the source code.
- 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
- Create a subdirectory called BIN in SDL\ and put the SDL.DLL into it.
- Go to this directory and run: IMPLIB -a -c SDL.LIB SDL.DLL
- Create a subdirectory called BIN in SDL_MIXER\ and put the SDL_MIXER.DLL into it.
- Go to this directory and run: IMPLIB -a -c SDL_mixer.LIB SDL_mixer.DLL
- Create a subdirectory called BIN in SDL_IMAGE\ and put all DLLs from the SDL_image binary backage into it.
- Go to this directory and run for each DLL: IMPLIB -a -c dllname.LIB dllname.DLL
Borland C++ Builder
- Open asc/Asc.bpg and run "make all projects"
- 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.).
- Get the datafile (main.con) from the website and put it in this directory.
Free Borland C++ command line compiler
- Execute asc/makebcc.bat
All major files will be placed in the asc\game\ directory that is going to be created.