home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- cls
- echo JACOB'S LADDER
- echo Multi-Node Aware! More Than One Player At A Time!
- echo -----------------------------------------------------
- echo -----------------------------------------------------
- if "%1" == "new" goto go
- if "%1" == "upgrade" goto go
- if "%1" == "" goto exit
-
- :exit
- echo ***** PLEASE RUN THE INSTALLATION WITH:
- echo If you are installing for the first time, please type:
- echo install new
- echo If you are installing an upgrade, please type:
- echo install upgrade
- goto end
-
-
- :go
- rem ***************************************
-
- echo ***** Testing ability to set DOS attributes
- echo "TESTING ABILITY TO SET DOS ATTRIBUTES" > kill.txt
- attrib +R kill.txt
- del kill.txt
-
- if not exist kill.txt goto ask
- if exist kill.txt goto kill3
-
- rem ***************************************
-
- :kill3
- attrib -R kill.txt
- del kill.txt
- echo "Great! Passed DOS attribute test."
- echo --------------------------------------------------
- goto howto
-
-
- rem ***************************************
- :ask
- echo Installing JACOB'S LADDER requires that all *.txt and *.exe and *.ans files be
- echo set to READ ONLY by using the dos attribute command.
- echo .
- echo This installation procedure normally takes care of this automatically,
- echo but it appears you do not have this DOS command.
- echo You must MANUALLY set your attributes for *.txt and *.exe and *.ans
- echo files to READ ONLY (+R) *AFTER* this installation completes.
- echo .
- echo IF THIS IS AN UPGRADE: you must set all *.txt & *.exe & .ans files to
- echo NOT READ ONLY *BEFORE* continuing so that the new files can
- echo copy over the old files:
- echo ATTRIB -R *.*
- echo .
- echo If this is an upgrade, when it is done, you must set the attributes
- echo to NOT READ ONLY and perform the installation again so that the new
- echo files can copy over the old ones.
- echo If this is a new installation, please set the attributes AFTER
- echo the installation:
- echo ATTRIB +R *.ANS
- echo ATTRIB +R *.TXT
- echo ATTRIB +R *.EXE
- goto howto
- rem ***************************************
-
- rem ***************************************
- :howto
- echo --------------------------------------------------
- if "%1" == "new" goto one
- if "%1" == "upgrade" goto two
-
-
- rem *************************************** FIRST TIME INSTALL
- :one
- attrib -R *.*
-
- if exist game.zip goto zip
- if exist game.arj goto arj
- if exist game.rar goto rar
- echo Appears Archive has been changed from ZIP, must be manually installed.
- goto end
-
- :zip
- pkunzip game.zip
- del game.zip
- goto one2
-
- :arj
- arj e game.arj
- del game.arj
- goto one2
-
- :rar
- rar e game.rar
- del game.rar
- goto one2
-
- :one2
- attrib +R sssgame.exe
- attrib +R *.txt
- attrib +R *.ANS
- goto success
- rem ***************************************
-
-
-
- rem *************************************** UPGRADE
- :two
- attrib -R *.*
- rename maint.dbf mtemp1.dbf
-
- rename players.cdx mtemp2.cdx
- rename players.dbf mtemp2.dbf
- rename hiscore.dbf mtemp3.dbf
- rename hiscore.cdx mtemp3.cdx
-
- if exist game.zip goto zip2
- if exist game.arj goto arj2
- if exist game.rar goto rar2
- echo Appears Archive has been changed from ZIP, must be manually installed.
- goto end
-
-
- :zip2
- pkunzip game.zip
- del game.zip
- goto one3
-
- :arj2
- arj e game.arj
- del game.arj
- goto one3
-
- :rar2
- rar e game.rar
- del game.rar
- goto one3
-
- :one3
- attrib +R sssgame.exe
- attrib +R *.txt
- attrib +R *.ANS
-
- if exist mtemp1.dbf goto maint
- if not exist mtemp1.dbf goto go1
-
- :maint
- del maint.dbf
- rename mtemp1.dbf maint.dbf
- del mtemp1.dbf
- goto go1
-
- :go1
- if exist mtemp2.dbf goto play
- if not exist mtemp2.dbf goto go2
-
- :play
- del players.dbf
- del players.cdx
- rename mtemp2.cdx players.cdx
- rename mtemp2.dbf players.dbf
- del mtemp2.dbf
- del mtemp2.cdx
- goto go2
-
- :go2
- if exist mtemp3.dbf goto hiscore
- if not exist mtemp3.dbf goto go3
-
- :hiscore
- del hiscore.dbf
- del hiscore.cdx
- rename mtemp3.cdx hiscore.cdx
- rename mtemp3.dbf hiscore.dbf
- del mtemp3.dbf
- del mtemp3.cdx
- goto go3
-
- :go3
- cls
- goto success
-
- rem ***************************************
-
- :success
- echo --------------------------------------------------
- echo --------------------------------------------------
- echo Read the SYSOP1 & 2 .DOC files if you have not done so.
- echo A sample.bat file for calling sssgame.EXE is included.
- echo The name of the file is sample.bat. Please refer to it
- echo for calling JACOB'S LADDER from your node directory.
- echo --------------------------------------------------
- echo A sample configuration file is included for those who
- echo REQUIRE it. If the game works fine when installing, you
- echo probably DO NOT NEED to use the configuration file at all
- echo and DO NOT NEED to even look at it.
- echo --------------------------------------------------
- echo The sample.bat file tells how you must pass parameters on
- echo the command line for calling JACOB'S LADDER IE: Call the .exe,
- echo pass the drop file path and name, pass the node #, optionally
- echo pass the name of the configuration file. Drop file and node
- echo number must be passed even for single line BBS's.
- pause
- echo --------------------------------------------------------------
- echo sssgame c:\bbs\node1\dorinfo1.def 1 sss.cfg
- echo --------------------------------------------------------------
- echo FOR SYSOP MODE: sssgame sysop
- echo FOR MAINTENANCE MODE: New! New! Auto Reset Game Weekly or Monthly!
- echo Change to your Jacob directory, then:
- echo sssgame maint M -- put in nightly maintenance for Monthly reset
- echo sssgame maint W -- put in nightly maintenance for Weekly reset
- echo --------------------------------------------------------------
- echo SEE BEGINNING OF SYSOP1.DOC FOR QUICK DETAILS
- echo --------------------------------------------------------------
- goto end
-
- :end
-