home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / game / misc / diamondcaves / installgame < prev    next >
Text File  |  1995-09-05  |  15KB  |  466 lines

  1. ; $VER DC-Install 2.2 (05.09.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 201)
  21.             (
  22.                 (message "You have already installed a version greater or equal 2.2!\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 201)         ; this is the update for V1.0-2.0 (new gfx)
  135.             (
  136.                 (complete 90)
  137.                 (copyfiles
  138.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  139.                     (help @copyfiles-help)
  140.                     (source "UpdateFromV1.0-2.0")
  141.                     (dest DrawerName)
  142.                     (all)
  143.                 )
  144.             )
  145.         )
  146.  
  147.         (if (< version 202)         ; this is the update for V1.0-2.1 (prg & guide)
  148.             (
  149.                 (complete 95)
  150.                 (copyfiles
  151.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  152.                     (help @copyfiles-help)
  153.                     (source "UpdateFromV1.0-2.1")
  154.                     (dest DrawerName)
  155.                     (all)
  156.                 )
  157.             )
  158.         )
  159.  
  160.         (if (exists "DC:Registration.txt" (NOREQ))
  161.             (
  162.                 (copyfiles
  163.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  164.                     (help @copyfiles-help)
  165.                     (source "new/Registration.txt")
  166.                     (dest DrawerName)
  167.                 )
  168.             )
  169.         )
  170.     )
  171.  
  172.     (                             ; new install: copy everything to "DrawerName"
  173.         (complete 0)
  174.         (set DrawerNameParent
  175.              (askdir
  176.                  (prompt "In which drawer should Diamond Caves V2.2 be installed?\n(A directory called Diamond Caves will be created)")
  177.                  (help @askdir-help)
  178.                  (default DrawerNameParent)
  179.              )
  180.         )
  181.  
  182.         (set DrawerName (tackon DrawerNameParent "DiamondCaves"))
  183.  
  184.         (complete 5)
  185.         (makedir DrawerName
  186.             (prompt "I will now create the directory \"" DrawerName "\".")
  187.             (help @makedir-help)
  188.             (infos)
  189.             (confirm)
  190.         )
  191.  
  192.         (complete 10)
  193.         (set icons
  194.             (askchoice
  195.                 (prompt "What kind of Icons do you want?\n")
  196.                 (choices "normal" "MagicWB (1)" "MagicWB (2)" "RareDiamond" "none")
  197.                 (help "Sorry, no help-file.")
  198.                 (default 0)
  199.             )
  200.         )
  201.  
  202.         (if (= icons 0)
  203.             (set IconName "Icons/normal")
  204.         )
  205.         (if (= icons 1)
  206.             (set IconName "Icons/MagicWB1")
  207.         )
  208.         (if (= icons 2)
  209.             (set IconName "Icons/MagicWB2")
  210.         )
  211.         (if (= icons 3)
  212.             (set IconName "Icons/RareDiamond")
  213.         )
  214.  
  215.         (if (<> icons 0)
  216.             (
  217.                 (copyfiles
  218.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  219.                     (help @copyfiles-help)
  220.                     (source IconName)
  221.                     (dest DrawerName)
  222.                     (pattern "DiamondCave#?")
  223.                     (infos)
  224.                 )
  225.                 (copyfiles
  226.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  227.                     (help @copyfiles-help)
  228.                     (source IconName)
  229.                     (dest DrawerName)
  230.                     (pattern "Registration.tx#?")
  231.                     (infos)
  232.                 )
  233.                 (copyfiles
  234.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  235.                     (help @copyfiles-help)
  236.                     (source IconName)
  237.                     (dest DrawerName)
  238.                     (pattern "Editor.pre#?")
  239.                     (infos)
  240.                 )
  241.             )
  242.         )
  243.  
  244.         (complete 20)
  245.         (copyfiles
  246.             (prompt "Copying necessary files to \"" DrawerName "\".")
  247.             (help @copyfiles-help)
  248.             (source "new")
  249.             (dest DrawerName)
  250.             (all)
  251.             (infos)
  252.         )
  253.  
  254.         (complete 25)
  255.         (copyfiles
  256.             (prompt "Copying necessary files to \"" DrawerName "\".")
  257.             (help @copyfiles-help)
  258.             (source "UpdateFromV1.0-1.2")
  259.             (dest DrawerName)
  260.             (all)
  261.         )
  262.  
  263.         (complete 30)
  264.         (copyfiles
  265.             (prompt "Copying necessary files to \"" DrawerName "\".")
  266.             (help @copyfiles-help)
  267.             (source "UpdateFromV1.0-1.3")
  268.             (dest DrawerName)
  269.             (all)
  270.         )
  271.  
  272.         (complete 35)
  273.         (copyfiles
  274.             (prompt "Copying necessary files to \"" DrawerName "\".")
  275.             (help @copyfiles-help)
  276.             (source "UpdateFromV1.0-1.5")
  277.             (dest DrawerName)
  278.             (all)
  279.         )
  280.  
  281.         (complete 40)
  282.         (copyfiles
  283.             (prompt "Copying necessary files to \"" DrawerName "\".")
  284.             (help @copyfiles-help)
  285.             (source "UpdateFromV1.0-1.6")
  286.             (dest DrawerName)
  287.             (all)
  288.         )
  289.  
  290.         (complete 45)
  291.         (copyfiles
  292.             (prompt "Copying necessary files to \"" DrawerName "\".")
  293.             (help @copyfiles-help)
  294.             (source "UpdateFromV1.0-1.7")
  295.             (dest DrawerName)
  296.             (all)
  297.         )
  298.  
  299.         (complete 50)
  300.         (copyfiles
  301.             (prompt "Copying necessary files to \"" DrawerName "\".")
  302.             (help @copyfiles-help)
  303.             (source "UpdateFromV1.0-1.8")
  304.             (dest DrawerName)
  305.             (all)
  306.         )
  307.  
  308.         (complete 55)
  309.         (copyfiles
  310.             (prompt "Copying necessary files to \"" DrawerName "\".")
  311.             (help @copyfiles-help)
  312.             (source "UpdateFromV1.0-2.0")
  313.             (dest DrawerName)
  314.             (all)
  315.         )
  316.  
  317.         (complete 60)
  318.         (copyfiles
  319.             (prompt "Copying necessary files to \"" DrawerName "\".")
  320.             (help @copyfiles-help)
  321.             (source "UpdateFromV1.0-2.1")
  322.             (dest DrawerName)
  323.             (all)
  324.         )
  325.  
  326.         (complete 70)
  327.         (startup "Diamond Caves"
  328.             (prompt "An assign to \"DC:\" will be added to \"S:user-startup\" so that your system will be properly configured to use Diamond Caves.")
  329.             (help "Sorry, no help-file.")
  330.             (command "assign DC: \"" DrawerName "\"")
  331.         )
  332.         (makeassign "DC")
  333.         (makeassign "DC" DrawerName)
  334.  
  335.  
  336.         (complete 75)
  337.         (if ((database "vblank") 50)
  338.             (set DefaultMode 0)
  339.             (set DefaultMode 2)
  340.         )
  341.         (set ScreenModeNum
  342.             (askchoice
  343.                 (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)")
  344.                 (choices "PAL:HighRes" "PAL:HighRes Interlace" "NTSC:HighRes" "NTSC:HighRes Interlace")
  345.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  346.                 (default DefaultMode)
  347.             )
  348.         )
  349.         (if (= ScreenModeNum 0)
  350.             (set ScreenMode "PAL")
  351.         )
  352.         (if (= ScreenModeNum 1)
  353.             (set ScreenMode "PAL-LACE")
  354.         )
  355.         (if (= ScreenModeNum 2)
  356.             (set ScreenMode "NTSC")
  357.         )
  358.         (if (= ScreenModeNum 3)
  359.             (set ScreenMode "NTSC-LACE")
  360.         )
  361.         (tooltype 
  362.             (prompt "I will now change the tooltype TITLEMODE to " ScreenMode ".")
  363.             (help "Soory, no help-file.")
  364.             (dest "DC:DiamondCaves")
  365.             (settooltype "TITLEMODE" ScreenMode)
  366.             (confirm)
  367.         )
  368.  
  369.  
  370.         (complete 80)
  371.         (set ScreenModeNum
  372.             (askchoice
  373.                 (prompt "Which screenmode do you want the game to use?\n(Note that you should only use interlace if you have a 17\" monitor)")
  374.                 (choices "PAL:LowRes" "PAL:HighRes Interlace" "NTSC:LowRes" "NTSC:HighRes Interlace")
  375.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  376.                 (default DefaultMode)
  377.             )
  378.         )
  379.         (if (= ScreenModeNum 0)
  380.             (set ScreenMode "PAL")
  381.         )
  382.         (if (= ScreenModeNum 1)
  383.             (set ScreenMode "PAL-LACE")
  384.         )
  385.         (if (= ScreenModeNum 2)
  386.             (set ScreenMode "NTSC")
  387.         )
  388.         (if (= ScreenModeNum 3)
  389.             (set ScreenMode "NTSC-LACE")
  390.         )
  391.         (tooltype 
  392.             (prompt "I will now change the tooltype GAMEMODE to " ScreenMode ".")
  393.             (help "Soory, no help-file.")
  394.             (dest "DC:DiamondCaves")
  395.             (settooltype "GAMEMODE" ScreenMode)
  396.             (confirm)
  397.         )
  398.  
  399.  
  400.         (complete 85)
  401.         (set ControlNum
  402.             (askchoice
  403.                 (prompt "Which controlling device do you want Player 1 to use?\n")
  404.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  405.                 (help "Soory, no help-file.")
  406.                 (default 1)
  407.             )
  408.         )
  409.         (if (= ControlNum 0)
  410.             (set ControlMode "JOY1")
  411.         )
  412.         (if (= ControlNum 1)
  413.             (set ControlMode "JOY2")
  414.         )
  415.         (if (= ControlNum 2)
  416.             (set ControlMode "KEYS")
  417.         )
  418.         (tooltype 
  419.             (prompt "I will now change the tooltype PLAYER1 to " ControlMode ".")
  420.             (help "Soory, no help-file.")
  421.             (dest "DC:DiamondCaves")
  422.             (settooltype "PLAYER1" ControlMode)
  423.             (confirm)
  424.         )
  425.  
  426.  
  427.         (complete 90)
  428.         (set ControlNum
  429.             (askchoice
  430.                 (prompt "Which controlling device do you want Player 2 to use?\n")
  431.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  432.                 (help "Soory, no help-file.")
  433.                 (default 0)
  434.             )
  435.         )
  436.         (if (= ControlNum 0)
  437.             (set ControlMode "JOY1")
  438.         )
  439.         (if (= ControlNum 1)
  440.             (set ControlMode "JOY2")
  441.         )
  442.         (if (= ControlNum 2)
  443.             (set ControlMode "KEYS")
  444.         )
  445.         (tooltype 
  446.             (prompt "I will now change the tooltype PLAYER2 to " ControlMode ".")
  447.             (help "Sorry, no help-file.")
  448.             (dest "DC:DiamondCaves")
  449.             (settooltype "PLAYER2" ControlMode)
  450.             (confirm)
  451.         )
  452.  
  453.         (tooltype
  454.             (prompt "setting gameport.device")
  455.             (help "Soory, no help-file.")
  456.             (dest "DC:DiamondCaves")
  457.             (settooltype "GAMEPORTDEVICE" "OFF")
  458.         )
  459.     )
  460. )
  461.  
  462. (complete 100)
  463. (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.2!")
  464.  
  465. (exit (quiet))
  466.