KGI VR 1.1

This is the Source Code for KGI and all of its editors.
KGI was written in Microsoft QuickBASIC 4.50, but all
the source files are saved in the ASCII format so you
can edit the files even if you don't have QB.
You should be able to load most of the files in the
QBASIC 1.0 if you don't have QuickBASIC. If you encounter
a COMMAND$ error, just comment it out so it will ignore it.
This is only used for command line options that is not supported
in QBASIC. The game engine (KGI.BAS) will not be able to be run
in QBASICs environment becuase it uses multiple modules, include files,
and a library. 

All of the source files are released under the GNU license.
With the exception of the QMIDI library. (See the QMIDI folder for its
own license.)

	This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or any later version.

	This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     GNU General Public License for more details.

             You should have received a copy of the GNU General Public License
      along with this program; if not, write to the Free Software
      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA



You can add code to these files, port it to other systems,
and other things as long as it applies to the GNU license.

If you have any questions, you can ask on the forums at:
http://www.kierragames.proboards67.com

List of source files:
KGI.BAS - Main Module for KGI.EXE
BATTLE.BAS - Module for KGI.EXE (Contains all battle routines)
ERROR.BAS - Module for KGI.EXE (Contains all error handling routines)
KGI.BI - INCLUDE header for KGI.EXE
KGIGRAF.BAS - Module for KGI.EXE (Contains all graphic routines)
MAPENGINE.BAS - Module for KGI.EXE (Contains all of the map engine routines)
MIDI.BI - INCLUDE header for KGI.EXE (Declares all QMIDI routines)
READDATA.BAS - Module for KGI.EXE (Contains all file handling routines)
BSV2KGI.BAS - Source for BSV2KGI.EXE
GAMEDIT.BAS - Source for GAMEDIT.EXE
KGIMAIN.BAS - Source for KGIMAIN.EXE
MAPEDIT.BAS - Source for MAPEDIT.EXE
MONEDIT.BAS - Source for MONEDIT.EXE
KGIVIEW.BAS - Source for KGIVIEW.EXE
TILEDIT.BAS - Source for TILEDIT.EXE
TILEVIEW.BAS - Source for TILEVIEW.EXE
MIDI.QLB - QMIDI run time library used in the QB environment
MIDI.LIB - QMIDI library used by the linker to help produce KGI.EXE
KGI.MAK - File used by QB45 to tell it which modules to load that are part of the game engine. (Used in the QB Environment)

To Load the KGI Engine in QB45 use the following options in the command prompt:
qb kgi.bas /lmidi /ah

Be sure SBMIDI and sbsim are loaded if you plan on running it from within the QB
environment.

With other programs you start QBASIC/QB45 load qb with the /l and /ah option.
 

