home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / diskmags / adm121.lzh / ADM1.21 / ADM.DOC < prev    next >
Encoding:
Text File  |  1992-09-02  |  17.7 KB  |  445 lines

  1.            _______
  2.       /////\\\\
  3.      ////   \\\\
  4.     //// === \\\\ 
  5.        ////       \\\\
  6.       ////         \\\\ M I R A G E
  7.                     D I S K   M E N U   Documentation.
  8.                     ===================================
  9.          
  10.              ADM V1.21- A Public Domain Disk-Menu Selector.
  11.             Written by Ian Goffe (Kryten) of AMIRAGE in 1992, 1993.
  12.          
  13. V1.21 preamble.
  14. ---------------
  15.  
  16. For those that are familiar with the original release of the Amirage
  17. Disk Menu system (adm v1.1a), please note the following features/
  18. additions present under v1.21:-
  19.  
  20.  - ADM v1.21 has been tested on both a 1 meg A500, and an A1200 
  21.    (ks3.0) - AGA 'n' all!
  22.  
  23.    The original release of ADM unfortunately refuses to work with
  24.    an A1200; I have now tried to make this version much more
  25.    compatible ON ALL AMIGAS..There SHOULD be no reason that it will 
  26.    not work on an A600/A4000, or infact future Amiga models... but, I 
  27.    haven't been able to test it on these machines.
  28.    In general, ADM V1.21 SHOULD WORK FINE ON ALL AMIGAS!
  29.          
  30.  - The 'star' field mode of v1.1a has been replaced by a much more
  31.    useful 'Info' button, this allows 'general text' to be read for
  32.    any menu selection, without leaving the menu system.
  33.    (See relevant section within this documentation on INFO_TEXT).
  34.  
  35. -  A more up to date Protracker replay routine has been incorporated
  36.  
  37. -  ADM can be 'iconified', thus allowing it to be used in a true
  38.    multitasking environment.
  39.  
  40. -  Snazzier 'bass-relief' on play/pause buttons when pressed
  41.    (Just thought that I'd mention it...)
  42.  
  43. For those that have used V1.1a, PLEASE READ THESE DOCS, AS THERE
  44. ARE SOME CHANGES IN ORDER TO SET UP A DISK, ETC..........
  45.  
  46. What is the Amirage Disk Menu?
  47. -------------------------------
  48.  
  49. -  The AMIRAGE Disk-Menu was designed to give compilation disks a more
  50.    professional look. Most compilations are put together relatively
  51.    quickly with the use of a key-map editor, such as SETKEY; but
  52.    a 'glossy' display is pretty difficult to show on ye old workbench
  53.    screen, isn't it?
  54.  
  55.    Ok, so other menu-systems have been written, eg. Menu Master (rather
  56.    old now, I know, but it gives you an idea!), but I think you will 
  57.    like the features of ADM:- 
  58.  
  59.           -       Upto 30 mouse-driven menu selections. The menu titles 
  60.                   and associated cli line-calls are defined within a 
  61.                   standard ASCII file.
  62.                             
  63.           -       Optional music can be played in the background;
  64.                    the filename/path of the module is given as a
  65.                    parameter to the routine.
  66.                   
  67.           -       The modules can also be in a crunched format with the
  68.                   use of Powerpacker, or a PP-compatible cruncher!
  69.                   The following module-types can be loaded directly,
  70.                   as ADM automatically distinguishes between the
  71.                   re-play routine required:-
  72.                   
  73.                           Soundtracker V2.xx/Noisetracker/Protracker.
  74.                           MED V2.10-V3.xx/Octamed (4 channel!) Modules.
  75.                           Games Music Creator.
  76.                           Soundmon.
  77.                           Jamcracker.
  78.                           Future Composer.
  79.                           
  80.           -     IMPORTANT NOTE:- 
  81.                 The music must be in MODULE format, as for eg. MED SONGS
  82.         are commonly used, but will not work - use MED MODULES!
  83.                 If the module type cannot be determined by the routine,
  84.                 ADM jumps automatically into GMC-replay mode; this is
  85.                 because I cannot find how to distinguish whether a module
  86.                 was written in GMC. (If you know better, please contact me!)
  87.                   
  88.           -     VU-Meter (Level indicator).
  89.                 Well, this is just a nicety, but a pretty one at that!
  90.                 
  91.           -     Info Text, giving general background information,
  92.                 pertaining to a menu selection.
  93.                 
  94.           -     Scroller - Your own scroll text can be incorporated into
  95.                 the menu!!!
  96.                 
  97.           -     PAUSE and PLAY music.
  98.           
  99.           -     Saving of configured scroll colour/music
  100.                 mode settings, as configuration file.
  101.           
  102.           -     Possible to force ADM to be iconified for a given menu
  103.                 selection. This is useful if the option attempts
  104.                 to 'run in the background', such as 'Powerpacker' or
  105.                 'Dirworks'. (Unlike v1.1a of adm, which had to be
  106.                 terminated.. oops!)          
  107.           
  108.  
  109.  
  110.                                Instructions.
  111.                                -------------
  112.  
  113.  
  114.  Follow the guidelines below, to set up a disk in order to use ADM, 
  115. and all should be hunky-dorey!!!
  116.  
  117. Pre-requisites
  118. --------------
  119.  
  120.       -     The "run" and "execute" commands are expected in the
  121.           /c directory of the boot disk.
  122.           
  123.           -     A file called 'MENU_TEXT' should be kept within the
  124.                 current directory; it contains the names to be
  125.                 displayed within the menu, and also the disk-title,
  126.                 along with the cli-commands, that invoke the selected
  127.                 program.
  128.  
  129.                 The format of this Ascii file is...
  130.                 
  131.                              Disk Title               (Max 20. characters) 
  132.                              Selection 1              (Max 18. characters)
  133.                          Selection 2                      "
  134.                          Selection 3                      "
  135.                          etc...
  136.                              Last Selection name              "
  137.                           L E A V E   A   B L A N K   L I N E   H E R E !
  138.                              cli-command line to run selection 1
  139.                              cli-command line to run selection 2 ...etc.
  140.                   
  141.                 
  142.                 The first title is the main heading for the menu,
  143.                 the next lines of text are the program names, that are
  144.                 displayed within the menu-screen.
  145.                 A blank line should then be inserted, which delimits
  146.                 the menu-text-definitions, and the cli-commands that
  147.                 are used to call a given program.
  148.                 
  149.                 There now should follow - again, on separate lines -
  150.                 the cli-commands to invoke the respective selections,
  151.                 in the order that they are defined within the menu-
  152.                 display definitions.
  153.                 
  154.                 ADM automatically recognises how many selections
  155.                 are possible, and acts accordingly.
  156.            
  157.                 If ADM cannot find the MENU_TEXT file, it will
  158.                 display a message, stating how naughty you have been,
  159.                 and exit! 
  160.                 
  161.                 One final note on setting up the MENU_TEXT file, is
  162.                 that if you execute a program that automatically
  163.                 runs-in-the-background (eg. powerpacker), it may be necessary
  164.                 to force ADM to iconify; This stops a chain-effect occuring
  165.                 if the script file that is handling the menu selections
  166.                 loops back into re-calling the menu-process after
  167.                 every program is called.
  168.                 To force ADM to become iconified, you must insert an asterisk
  169.                 (*) before the said cli-command definition.
  170.                 
  171.                 Note that this differs from v1.1a of ADM, as before a '*'
  172.                 denoted 'exit to cli'; now, a '*' forces ADM to become
  173.                 iconifed.. ie. MUCH BETTER, and allows ADM to be used in
  174.                 a true multitasking environment.
  175.                 
  176.                 To illustrate the information given above, take a look
  177.                 at an example MENU_TEXT file to process 4 selections.
  178.         Note that each definition must be on a separate line.
  179.                 The main points worth noting, are 1) the blank line
  180.                 after the final menu-display line, and 2) the asterisk
  181.                 prior to calling powerpacker, (ie. ADM becomes iconified
  182.                 after invoking Powerpacker).
  183.         
  184.                 The example is listed below.
  185.  
  186.         <START> of file...MENU_TEXT
  187.                         
  188.                 Main Menu Title
  189.                 Noisetracker
  190.                 MED V3
  191.                 MED Main Doc.
  192.                 Powerpacker
  193.                 
  194.                 Utils/Noisetrack
  195.                 Utils/MED/MED
  196.                 More df1:documentation/med.doc
  197.                 *utils/powerpacker
  198.                 
  199.                 <END> of file... MENU)TEXT
  200.                 
  201.           -     The file:- "Powerpacker.Library" (which should be on
  202.                 the same disk as this documentation!) is required in
  203.                 the LIBS directory of the boot-disk.
  204.                                 
  205.           -     Scroll text file (Optional). To use your own scroll text,
  206.             copy a standard ASCII file called "SCROLL_TEXT" into the
  207.             current directory. The first 8K (8192 bytes) is loaded
  208.             of any scroll-text, which should be more than enough!!!
  209.             Any text editor can be used to enter the text, as ADM
  210.             reads over a line feed character, without displaying it!
  211.             There are some additonal character codes that can be
  212.             added to your scroll text.....
  213.             
  214.             ^              -  Loop to start
  215.             _ (Underscore) -  Freeze text
  216.             
  217.             \              -  Fast scroll
  218.             |              -  Slow scroll
  219.             
  220.         - NEW FOR V1.21
  221.          Information text file (optional). A file called 'INFO_TEXT'
  222.          can be present within the current directory, and contains
  223.          text, that is displayed for the selected option.
  224.          
  225.          The format of the info-text file is basically the text (upto
  226.          a display screen in height) for each selection, delimited
  227.          by a hash character (#).
  228.          
  229.          eg.
  230.          
  231.          filename:INFO_TEXT:- (text for 4 options)
  232.     <START> of file...INFO_TEXT
  233.          
  234.          Starting here, is the text that is 
  235.          displayed for selection 1 from the menu....         
  236.          #         
  237.          This is the text for option 2, as the hash character
  238.          (above) signified the end of the option-text, for
  239.          option 1...
  240.          #
  241.          Now we are on option 3
  242.          #
  243.          #
  244.          The two hash-chars above meant that no text was 
  245.          declared for option 3, and this text is infact
  246.          relevant to option 4
  247.          
  248.     <END> of file...INFO_TEXT
  249.          
  250.  
  251.     - Note that the INFO_TEXT is for a lo-res (around 40
  252.     characters per screen row) screen image.
  253.             
  254. Program Control
  255. ---------------            
  256.  
  257. Program selection - 
  258.  This couldn't be simpler; just click on the red marker, adjacent to the 
  259. required selection. To load the selection, click on the load gadget (as 
  260. detailed below).
  261.         
  262. On-Screen gadgets -
  263.  To the left of the display are four gadgets, that are,
  264. in order of screen display:-
  265.         
  266.           INFO                     - Displays information-text
  267.                                      relevant to the currently
  268.                                      selected option, as defined in
  269.                                      the optional file:- INFO_TEXT.
  270.                                              (Right mouse to exit back to
  271.                                               menu).
  272.           COLOUR SELECTION       - Allows selection of one of
  273.                              the pre-set scroll colours
  274.           ABOUT                   - Some info about ADM.
  275.                                              (Right mouse to exit back to
  276.                                               menu).
  277.           LOAD                   - Loads the current selection.
  278.  
  279. Redefining the default display - 
  280.  To enter ADM with a different combination of colour or music pause mode, 
  281. click on the save gadget (top right of display). This quits from ADM, but 
  282. in the process,    saves out a file to the current directory, called ADM.CFG.
  283.  
  284. The file is read from disk, each time the menu is called,
  285. and reverts to the previously saved display/audio parameters.
  286.                         
  287. If music was requested -
  288.  Two control "buttons" are available to play, and pause the music, from left
  289. to right, respectively.The current mode, as defined by these two gadgets, is
  290. saved as part of the menu configuration file. These gadgets will be out of 
  291. the NTSC display-area, but are not of prime importance for the ADM to 
  292. operate!
  293.     
  294. Use of iconify option -
  295.  If a selection is executed, and ADM is iconified (see above section
  296. on iconification), the menu can be exited by selecting the 'ADM-ICONIFIED'
  297. window, and closing it. Similarly, the menu can be re-launched by clicking on
  298. the 'ADM-ICONIFIED' window, and launching with the RIGHT MOUSE BUTTON.
  299.  
  300.                                                  
  301. Invoking ADM
  302. ------------
  303.  
  304.  The ADM routine is generally invoked from the CLI with the 
  305. following call:-
  306.          
  307.          ADM [drive:Name of Music Module]                            
  308.          
  309.          eg.  ADM df1:music/modules/mod.sounds_good.
  310.          
  311.  If there is not enough chip-memory for a music module, the music will not be 
  312. loaded, but the menu will still be entered. This is useful if you have a 
  313. wicked piece of music, but it needs more memory than a humble 512K can 
  314. afford. Therefore, it would be fine to request the same module from a 512K
  315. machine, or an Amiga with >512K chip-mem, the only difference is that it 
  316. will load into >512K, but not, with no adverse effect into 512K.                                 
  317. Note that if you don't require any aural ambience, and a QUIET life is all 
  318. that you are looking for, then just call ADM with no parameter!
  319. (Enough of my author-esque lame comical style...)
  320.          
  321. After calling ADM, the execution routine (ADM_CALL) must be called...
  322. See below for how to use these routines:-
  323.           
  324. Control of selections.
  325. ----------------------
  326.  
  327.  In order to operate in a multitasking environment, the recommended way to 
  328. use ADM is to set up a 'loop' within a script, my example below 
  329. (example_menu_script) uses the AmigaDOS commands LAB, and SKIP.
  330. This script basically calls ADM followed by ADM_CALL.. The executable file
  331. 'ADM' handles the menu display and selection, and 'ADM_CALL' performs the
  332. actual execution of the selected program.
  333.  
  334. The script can then be run in the background for multitasking capabilities
  335. by issuing the statement:- RUN EXECUTE EXAMPLE_MENU_SCRIPT
  336.  
  337. This is best used with a combination of the s/startup-sequence file,
  338. as shown below:-            
  339.             
  340. File: S/STARTUP-SEQUENCE
  341. ~~~~~~~~~~~~~~~~~~~~~~~~
  342. run execute s/example_menu_script
  343.  
  344. File: S/EXAMPLE_MENU_SCRIPT
  345. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  346. LAB START
  347.     adm1.21/adm modules/mod.gregorian3
  348.     adm1.21/adm_call
  349. SKIP "START" BACK
  350.  
  351.             
  352.  
  353. Summary of Requirements.
  354. ------------------------
  355.  
  356.          RUN and EXECUTE           -  Copy from your workbench disk
  357.                            (in C directory), to the C
  358.                            directory of the bootdisk.
  359.          (nb. LAB/SKIP required if
  360.          using example menu script)
  361.          
  362.          POWERPACKER.LIBRARY       -  In /LIBS directory of bootdisk
  363.          MENU_TEXT                 -  In current directory - holds
  364.                                       text display for menu, and
  365.                                       cli-command calls.
  366.          ADM                -  Call to obtain selections
  367.          ADM_CALL               -  Call after ADM, to execute progs!
  368.          
  369. Optional files 
  370. --------------
  371.          
  372.          SCROLL_TEXT          -  Ascii file in current directory.         
  373.          INFO_TEXT              -  "
  374.          ADM.CFG              -  Configuration file, containing
  375.                           pre-set colours/music/starfield
  376.                           settings, as saved from ADM.                                     
  377.  
  378. Distribution.
  379. -------------
  380.  
  381. This program is Public Domain, and can be freely distributed. However, it is
  382. appreciated if ALL of the files are included for distribution, as outlined 
  383. below:-
  384.         
  385.                 
  386.         ADM1.21/ADM            -    ADM - Main program                                              
  387.         ADM1.21/ADM_CALL        -    Execution routine
  388.                 ADM1.21/ADM.DOC              -    (This .doc file - 
  389.                                                       IMPORTANT!!!)
  390.             LIBS/POWERPACKER.LIBRARY        -    A copy of Nico Francois's
  391.                                                      Powerpacker library.
  392.  
  393.     OR just distribute the archive (ADM121.LHA), which contains
  394.     all the necessary files in a single archive. 
  395.  
  396.  
  397. Thanks/Additional Credits, or Just hello's.
  398. -------------------------------------------
  399.      
  400.      Nico Francois for Powerpacker.Library.
  401.      All the guys ever responsible for the Protracker replay source.
  402.      Teijo Kinnunen for the MED replay source.
  403.      M. Gemmel for the Jamcracker replay source.
  404.      Generally, all original authors of the music-replay routines!
  405.      Metallion - Kefrens, for the 16x16/8x8 fonts.
  406.      Mark Dow (Xylyon/Amirage) (for just being an Amirage person)
  407.      Thanks for the invaluable information given  from the 'howtocode' 
  408.      series (tar..Share and Enjoy)
  409.      Paul Eltan Shaw (Terminator/Banzai Maraunder Productions)
  410.      for being a sound contact.
  411.      NBS PD. for giving us a good review (last time)
  412.      
  413.  
  414. Developed with:-
  415. ----------------
  416.      
  417.      *  Code     - Hisoft's Devpac V3.01 Assembler.
  418.      *  Graphics - Deluxe Paint IV
  419.                  - Kefrens IFF Converter
  420.      *  Packed   - Powerpacker
  421.  
  422. Finally....
  423. -----------
  424.  
  425. I Hope the information given in this documentation is comprehensible, in
  426. order to set up a disk for use with ADM.. If all else fails, try to see
  427. how the 'release disk' is set up. If you don't have the release disk, check
  428. the archive for the basic 'skeleton' for ADM to operate.
  429.  
  430. I don't know how much time I'll have for updates, etc, but if you
  431. need to contact me, then try.....
  432.     
  433.       Ian Goffe
  434.       60 Ravenhill Drive
  435.       Codsall
  436.       Staffs
  437.       WV8 1BL
  438.       ENGLAND.
  439.       
  440. Preferably, I can be contacted on Internet, until around June 1994.
  441. cm4266@scitsc.wlv.ac.uk
  442.  
  443.      Wibble, and out.
  444.      IJG (Kryten), 16th July, 1993.
  445.