home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / exclusive / peterelzner / game2.3 / installgame < prev    next >
Text File  |  1995-12-13  |  14KB  |  444 lines

  1. ; $VER DC-Install 2.3 (14.12.95)
  2.  
  3. (set DrawerNameParent @default-dest)
  4. (set Update 0)
  5. (set version 0)
  6.  
  7. (run "describe/sync SCRIPT=INSTALL.BAT") ; describe is (C) Dietmar Eilert
  8.  
  9. (complete 0)
  10. (if (exists "DC:" (NOREQ))
  11.     (
  12.  
  13.         (set vernum (getversion "DC:DiamondCaves"))
  14.  
  15.         (set ver (/ vernum 65536))
  16.         (set rev (- vernum (* ver 65536)))
  17.  
  18.         (set version (+ (* 100 ver) rev))
  19.  
  20.         (if (> version 202)
  21.             (
  22.                 (message "You have already installed a version greater or equal 2.3!\n")
  23.                 (exit (quiet))
  24.             )
  25.             (
  26.                 (set DrawerNameParent "DC:")
  27.                 (set DrawerName "DC:")
  28.             )
  29.         )
  30.  
  31.         (set Update
  32.             (askchoice
  33.                 (prompt "Diamond Caves V" ver "." rev " already installed.\nDo you want to update or install completely new?")
  34.                 (choices "Install new" "Update")
  35.                 (help "Soory, no help-file.")
  36.                 (default 1)
  37.             )
  38.         )
  39.     )
  40. )
  41.  
  42. (if (= Update 1)                  ; only Update according to present Version
  43.     (
  44.         (if (< version 103)         ; this is only for V1.0/1.1/1.2 (two fixed game levels)
  45.             (
  46.                 (complete 30)
  47.                 (copyfiles
  48.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  49.                     (help @copyfiles-help)
  50.                     (source "UpdateFromV1.0-1.2")
  51.                     (dest DrawerName)
  52.                     (all)
  53.                 )
  54.             )
  55.         )
  56.  
  57.         (if (< version 104)         ; this is the update for V1.0-1.3 (ten new easy levels, one game level)
  58.             (
  59.                 (complete 40)
  60.                 (copyfiles
  61.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  62.                     (help @copyfiles-help)
  63.                     (source "UpdateFromV1.0-1.3")
  64.                     (dest DrawerName)
  65.                     (all)
  66.                 )
  67.             )
  68.         )
  69.  
  70.  
  71.         (if (exists "DC:gfx/x999" (NOREQ))
  72.             (
  73.                 (complete 50)
  74.                 (delete
  75.                         ("DC:gfx/x999")
  76.                         (prompt "Deleting old gfx-file.")
  77.                         (help @deletefile-help)
  78.                 )
  79.             )
  80.         )
  81.  
  82.         (if (< version 106)         ; this is the update for V1.0-1.5 (new gfx-format)
  83.             (
  84.                 (complete 60)
  85.                 (copyfiles
  86.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  87.                     (help @copyfiles-help)
  88.                     (source "UpdateFromV1.0-1.5")
  89.                     (dest DrawerName)
  90.                     (all)
  91.                 )
  92.             )
  93.         )
  94.  
  95.         (if (< version 107)         ; this is the update for V1.0-1.6 (all replay-files and new sfx-format)
  96.             (
  97.                 (complete 70)
  98.                 (copyfiles
  99.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  100.                     (help @copyfiles-help)
  101.                     (source "UpdateFromV1.0-1.6")
  102.                     (dest DrawerName)
  103.                     (all)
  104.                 )
  105.             )
  106.         )
  107.  
  108.         (if (< version 108)         ; this is the update for V1.0-1.7 (2 replay-files)
  109.             (
  110.                 (complete 75)
  111.                 (copyfiles
  112.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  113.                     (help @copyfiles-help)
  114.                     (source "UpdateFromV1.0-1.7")
  115.                     (dest DrawerName)
  116.                     (all)
  117.                 )
  118.             )
  119.         )
  120.  
  121.         (if (< version 200)         ; this is the update for V1.0-1.8 (sample y27)
  122.             (
  123.                 (complete 80)
  124.                 (copyfiles
  125.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  126.                     (help @copyfiles-help)
  127.                     (source "UpdateFromV1.0-1.8")
  128.                     (dest DrawerName)
  129.                     (all)
  130.                 )
  131.             )
  132.         )
  133.  
  134.         (if (< version 203)         ; this is the update for V1.0-2.2 (prg & guide)
  135.             (
  136.                 (complete 90)
  137.                 (copyfiles
  138.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  139.                     (help @copyfiles-help)
  140.                     (source "UpdateFromV1.0-2.2")
  141.                     (dest DrawerName)
  142.                     (all)
  143.                 )
  144.             )
  145.         )
  146.  
  147.         (if (exists "DC:Registration.txt" (NOREQ))
  148.             (
  149.                 (copyfiles
  150.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  151.                     (help @copyfiles-help)
  152.                     (source "new/Registration.txt")
  153.                     (dest DrawerName)
  154.                 )
  155.             )
  156.         )
  157.     )
  158.  
  159.     (                             ; new install: copy everything to "DrawerName"
  160.         (complete 0)
  161.         (set DrawerNameParent
  162.              (askdir
  163.                  (prompt "In which drawer should Diamond Caves V2.3 be installed?\n(A directory called Diamond Caves will be created)")
  164.                  (help @askdir-help)
  165.                  (default DrawerNameParent)
  166.              )
  167.         )
  168.  
  169.         (set DrawerName (tackon DrawerNameParent "DiamondCaves"))
  170.  
  171.         (complete 5)
  172.         (makedir DrawerName
  173.             (prompt "I will now create the directory \"" DrawerName "\".")
  174.             (help @makedir-help)
  175.             (infos)
  176.             (confirm)
  177.         )
  178.  
  179.         (complete 10)
  180.         (set icons
  181.             (askchoice
  182.                 (prompt "What kind of Icons do you want?\n")
  183.                 (choices "normal" "MagicWB (1)" "MagicWB (2)" "RareDiamond" "none")
  184.                 (help "Sorry, no help-file.")
  185.                 (default 0)
  186.             )
  187.         )
  188.  
  189.         (if (= icons 0)
  190.             (set IconName "Icons/normal")
  191.         )
  192.         (if (= icons 1)
  193.             (set IconName "Icons/MagicWB1")
  194.         )
  195.         (if (= icons 2)
  196.             (set IconName "Icons/MagicWB2")
  197.         )
  198.         (if (= icons 3)
  199.             (set IconName "Icons/RareDiamond")
  200.         )
  201.  
  202.         (if (<> icons 4)
  203.             (
  204.                 (copyfiles
  205.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  206.                     (help @copyfiles-help)
  207.                     (source IconName)
  208.                     (dest DrawerName)
  209.                     (pattern "DiamondCave#?")
  210.                     (infos)
  211.                 )
  212.                 (copyfiles
  213.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  214.                     (help @copyfiles-help)
  215.                     (source IconName)
  216.                     (dest DrawerName)
  217.                     (pattern "Registration.tx#?")
  218.                     (infos)
  219.                 )
  220.                 (copyfiles
  221.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  222.                     (help @copyfiles-help)
  223.                     (source IconName)
  224.                     (dest DrawerName)
  225.                     (pattern "Editor.pre#?")
  226.                     (infos)
  227.                 )
  228.             )
  229.         )
  230.  
  231.         (complete 20)
  232.         (copyfiles
  233.             (prompt "Copying necessary files to \"" DrawerName "\".")
  234.             (help @copyfiles-help)
  235.             (source "new")
  236.             (dest DrawerName)
  237.             (all)
  238.             (infos)
  239.         )
  240.  
  241.         (complete 25)
  242.         (copyfiles
  243.             (prompt "Copying necessary files to \"" DrawerName "\".")
  244.             (help @copyfiles-help)
  245.             (source "UpdateFromV1.0-1.2")
  246.             (dest DrawerName)
  247.             (all)
  248.         )
  249.  
  250.         (complete 30)
  251.         (copyfiles
  252.             (prompt "Copying necessary files to \"" DrawerName "\".")
  253.             (help @copyfiles-help)
  254.             (source "UpdateFromV1.0-1.3")
  255.             (dest DrawerName)
  256.             (all)
  257.         )
  258.  
  259.         (complete 35)
  260.         (copyfiles
  261.             (prompt "Copying necessary files to \"" DrawerName "\".")
  262.             (help @copyfiles-help)
  263.             (source "UpdateFromV1.0-1.5")
  264.             (dest DrawerName)
  265.             (all)
  266.         )
  267.  
  268.         (complete 40)
  269.         (copyfiles
  270.             (prompt "Copying necessary files to \"" DrawerName "\".")
  271.             (help @copyfiles-help)
  272.             (source "UpdateFromV1.0-1.6")
  273.             (dest DrawerName)
  274.             (all)
  275.         )
  276.  
  277.         (complete 45)
  278.         (copyfiles
  279.             (prompt "Copying necessary files to \"" DrawerName "\".")
  280.             (help @copyfiles-help)
  281.             (source "UpdateFromV1.0-1.7")
  282.             (dest DrawerName)
  283.             (all)
  284.         )
  285.  
  286.         (complete 50)
  287.         (copyfiles
  288.             (prompt "Copying necessary files to \"" DrawerName "\".")
  289.             (help @copyfiles-help)
  290.             (source "UpdateFromV1.0-1.8")
  291.             (dest DrawerName)
  292.             (all)
  293.         )
  294.  
  295.         (complete 60)
  296.         (copyfiles
  297.             (prompt "Copying necessary files to \"" DrawerName "\".")
  298.             (help @copyfiles-help)
  299.             (source "UpdateFromV1.0-2.2")
  300.             (dest DrawerName)
  301.             (all)
  302.         )
  303.  
  304.         (complete 70)
  305.         (startup "Diamond Caves"
  306.             (prompt "An assign to \"DC:\" will be added to \"S:user-startup\" so that your system will be properly configured to use Diamond Caves.")
  307.             (help "Sorry, no help-file.")
  308.             (command "assign DC: \"" DrawerName "\"")
  309.         )
  310.         (makeassign "DC")
  311.         (makeassign "DC" DrawerName)
  312.  
  313.  
  314.         (complete 75)
  315.         (if ((database "vblank") 50)
  316.             (set DefaultMode 0)
  317.             (set DefaultMode 2)
  318.         )
  319.         (set ScreenModeNum
  320.             (askchoice
  321.                 (prompt "Which screenmode do you want the title screen of Diamond Caves to use?\n(Note that the title was designed to be used on an interlaced screenmode)")
  322.                 (choices "PAL:HighRes" "PAL:HighRes Interlace" "NTSC:HighRes" "NTSC:HighRes Interlace")
  323.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  324.                 (default DefaultMode)
  325.             )
  326.         )
  327.         (if (= ScreenModeNum 0)
  328.             (set ScreenMode "PAL")
  329.         )
  330.         (if (= ScreenModeNum 1)
  331.             (set ScreenMode "PAL-LACE")
  332.         )
  333.         (if (= ScreenModeNum 2)
  334.             (set ScreenMode "NTSC")
  335.         )
  336.         (if (= ScreenModeNum 3)
  337.             (set ScreenMode "NTSC-LACE")
  338.         )
  339.         (tooltype 
  340.             (prompt "I will now change the tooltype TITLEMODE to " ScreenMode ".")
  341.             (help "Soory, no help-file.")
  342.             (dest "DC:DiamondCaves")
  343.             (settooltype "TITLEMODE" ScreenMode)
  344.             (confirm)
  345.         )
  346.  
  347.  
  348.         (complete 80)
  349.         (set ScreenModeNum
  350.             (askchoice
  351.                 (prompt "Which screenmode do you want the game to use?\n(Note that you should only use interlace if you have a 17\" monitor)")
  352.                 (choices "PAL:LowRes" "PAL:HighRes Interlace" "NTSC:LowRes" "NTSC:HighRes Interlace")
  353.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  354.                 (default DefaultMode)
  355.             )
  356.         )
  357.         (if (= ScreenModeNum 0)
  358.             (set ScreenMode "PAL")
  359.         )
  360.         (if (= ScreenModeNum 1)
  361.             (set ScreenMode "PAL-LACE")
  362.         )
  363.         (if (= ScreenModeNum 2)
  364.             (set ScreenMode "NTSC")
  365.         )
  366.         (if (= ScreenModeNum 3)
  367.             (set ScreenMode "NTSC-LACE")
  368.         )
  369.         (tooltype 
  370.             (prompt "I will now change the tooltype GAMEMODE to " ScreenMode ".")
  371.             (help "Soory, no help-file.")
  372.             (dest "DC:DiamondCaves")
  373.             (settooltype "GAMEMODE" ScreenMode)
  374.             (confirm)
  375.         )
  376.  
  377.  
  378.         (complete 85)
  379.         (set ControlNum
  380.             (askchoice
  381.                 (prompt "Which controlling device do you want Player 1 to use?\n")
  382.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  383.                 (help "To redifine the controlling devices, use the program DiamondPrefs.")
  384.                 (default 1)
  385.             )
  386.         )
  387.         (if (= ControlNum 0)
  388.             (set ControlMode "JOY1")
  389.         )
  390.         (if (= ControlNum 1)
  391.             (set ControlMode "JOY2")
  392.         )
  393.         (if (= ControlNum 2)
  394.             (set ControlMode "KEYS")
  395.         )
  396.         (tooltype 
  397.             (prompt "I will now change the tooltype PLAYER1 to " ControlMode ".")
  398.             (help "Soory, no help-file.")
  399.             (dest "DC:DiamondCaves")
  400.             (settooltype "PLAYER1" ControlMode)
  401.             (confirm)
  402.         )
  403.  
  404.  
  405.         (complete 90)
  406.         (set ControlNum
  407.             (askchoice
  408.                 (prompt "Which controlling device do you want Player 2 to use?\n")
  409.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  410.                 (help "To redifine the controlling devices, use the program DiamondPrefs.")
  411.                 (default 0)
  412.             )
  413.         )
  414.         (if (= ControlNum 0)
  415.             (set ControlMode "JOY1")
  416.         )
  417.         (if (= ControlNum 1)
  418.             (set ControlMode "JOY2")
  419.         )
  420.         (if (= ControlNum 2)
  421.             (set ControlMode "KEYS")
  422.         )
  423.         (tooltype 
  424.             (prompt "I will now change the tooltype PLAYER2 to " ControlMode ".")
  425.             (help "Sorry, no help-file.")
  426.             (dest "DC:DiamondCaves")
  427.             (settooltype "PLAYER2" ControlMode)
  428.             (confirm)
  429.         )
  430.  
  431.         (tooltype
  432.             (prompt "setting gameport.device")
  433.             (help "Sorry, no help-file.")
  434.             (dest "DC:DiamondCaves")
  435.             (settooltype "GAMEPORTDEVICE" "OFF")
  436.         )
  437.     )
  438. )
  439.  
  440. (complete 100)
  441. (message "\nDiamond Caves installation/update complete, please make sure to read at least the first chapter of the doc-file.\n\nIf you want to reconfigure Diamond Caves, please use the program DiamondPrefs V1.3.\n\nAnd now enjoy Diamond Caves V2.3!")
  442.  
  443. (exit (quiet))
  444.