home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma20.dms / ma20.adf / BootScreen / BootScreen.doc.pp / BootScreen.doc
Text File  |  1994-05-28  |  14KB  |  335 lines

  1.  
  2. BOOTSCREEN
  3. ~~~~~~~~~~
  4. Startup screen program for Amigas with Workbench release 37 (2.04) or higher.
  5.  
  6.  
  7. Copyright ©1994 by Joseph Luk.  All rights reserved.
  8.  
  9. ----------------------------------------------------------- MAIN DOCUMENTATION
  10.  
  11. $VER: 2.00 (2/5/94)
  12. UNREGISTERED VERSION
  13.  
  14.  
  15. Introduction
  16. ~~~~~~~~~~~~
  17.    Some time ago, I downloaded a cute little utility called "BootPic" (no
  18. 'K' at the end).  This addessed the fact that under OS 2.0 and greater, you
  19. are treated to a blank screen until the Workbench comes up -- very boring and
  20. annoying in that you can't confirm whether or not you're going through a
  21. normal boot sequence.  Correcting the problem, "BootPic" displayed a mock
  22. "Windows" startup screen until the Workbench came up.  The only problem was
  23. that this screen was hard-coded in the program, and the extra-tall PAL screen
  24. and incorrect version number couldn't be corrected.  The author said
  25. that he would probably not add IFF support in the future.
  26.  
  27.    Enter BootScreen.  My program is smaller, loads an IFF picture, and
  28. also supports AGA 24-bit palettes.
  29.  
  30. Features
  31. ~~~~~~~~
  32.    * Highly user-friendly.  Package provides Install scripts for operations
  33.      beyond installation.  Configuration is standardized and extremely
  34.      easy to use.
  35.    * Takes advantage of advanced hardware and software (full AGA support).
  36.    * Highly efficient boot-time operation for maximum speed.
  37.  
  38.  
  39. Requirements
  40. ~~~~~~~~~~~~
  41.    * Amiga with Workbench 2.04 (V37 intuition and graphics library) or better
  42.      installed.
  43.    * Hard disk highly recommended.
  44.  
  45.    
  46.  
  47. Running the program
  48. ~~~~~~~~~~~~~~~~~~~
  49.    Several extremely friendly install scripts are provided.  They are for
  50. Commodore's standard Installer program, which comes on your system disks.
  51. You must have the Installer in one of the path directories (C: is the
  52. recommended location).  The scripts provide extensive on-line help which
  53. I spent much time writing, and it would be to your advantage to read the
  54. help texts.
  55.  
  56.    For first-time installations, simply run the "Install" script.  Don't
  57. worry about what will happen if you don't like the program, since the
  58. "Remove" script will quickly and easily get rid of all the things "Install"
  59. has set up.
  60.  
  61.    If you are upgrading from an older version of BootScreen, run the
  62. "Upgrade" script.  It will remove old files so that you can perform the
  63. regular installation.
  64.  
  65.    The "Remove" script completely undoes all changes made by "Install",
  66. except by default it does not remove iff.library.  I recommend that you keep
  67. this library installed anyway, since many programs use it.
  68.  
  69.  
  70.    Go ahead and fire up the Install script!  When you've got that done,
  71. the only noticable change in your system will be a new Preferences editor
  72. in the Prefs drawer: BootScreen.
  73.  
  74.  
  75. Editor Usage
  76. ~~~~~~~~~~~~
  77.    The BootScreen Preferences Editor supports the standard interface that
  78. all the other editors use.  The one exception is that it does not currently
  79. support preset files, but the settings aren't very complex so there's little
  80. need for them.  Most of the menu choices should be familiar to anyone who
  81. has used the standard system Preferences editors.
  82.  
  83.    To specify which picture you want to display at startup, either type the
  84. name in the string gadget, or click on the "GetFile" gadget to its left.
  85. That will bring up a standard system requester and allow you to select the
  86. picture.
  87.  
  88.    The other gadgets' functions are as follows:
  89.    
  90.    MONITOR
  91.       Under Workbench 3.0 and above, many people use the "mode promotion"
  92.       feature.  This does not become active until midway through the startup,
  93.       meaning at the beginning, screens will always be displayed in the
  94.       default mode, NTSC in America and PAL in Europe.  However, when
  95.       mode promotion becomes active, screens that have not been specifically
  96.       opened in NTSC or PAL get promoted.
  97.       
  98.       It is easy to see the effect this produces by selecting a DEFAULT
  99.       monitor, saving, and re-booting.  If you have mode promotion turned
  100.       on, midway through the startup the screen will re-sync to the higher
  101.       mode.  You can avoid this by selecing the appropriate default
  102.       monitor (NTSC or PAL).  Then, your startup screen will not be promoted
  103.       because it is actually requesting a specific monitor.
  104.       
  105.       I personally keep Monitor set on DEFAULT because I don't mind the
  106.       re-syncing, and feel that the scan-doubled image looks a lot better.
  107.       It's a personal preference, and I left the choice up to you.
  108.       
  109.       The Monitor setting has no noticable effect under Workbench 2.x, which
  110.       does not support mode promotion.
  111.       
  112.    CENTER PICTURE?
  113.       This tells BootScreen to automatically center the picture on the
  114.       display.  It allows you to save file space and boot time by
  115.       using brushes rather than full pictures for your startup screens.
  116.       
  117.       If BootScreen's centering is not to your liking, you can always
  118.       disable it and center your graphic manually within your paint program.
  119.       
  120.       
  121.    SAVE
  122.       Sáves the current configuration.  Note that the configuration is
  123.       saved into the icon's ToolTypes.  I figured that you've probably got
  124.       a cluttered enough hard disk already, and another confiuration file
  125.       is only going to be a pain.  The only downside to the method of
  126.       using the icon as a config file is that you must not delete the icon,
  127.       and you cannot use the ToolTypes for your own stuff (e.g., "Icon by"
  128.       texts or parenthesized comments).
  129.       
  130.    TEST
  131.       Displays the picture.  If screen centering is on, some of the Workbench
  132.       may be shown in the back.  This is normal; in actual use, the picture
  133.       will be centered on its own background.  Click in the picture to
  134.       finish viewing.
  135.       
  136.    CANCEL
  137.       Quits without saving changes.
  138.       
  139.       
  140.  
  141.  
  142. That's all you need to know to use BootScreen!  Once again, please note
  143. that BootScreen 2.00 is now ShareWare, and you are required by law to send
  144. in a donation of at least $5 if you use the program beyond the one-month
  145. trial period.  I'm not trying to make money off you, I'm trying to recoup
  146. the expenses of coding up this project.  And I'm trying to meet minor
  147. expenses; I'm a high school student who stayed up a little later each
  148. night after homework to work on this project.  Cheap groveling: please
  149. reward me for my efforts.
  150.  
  151. The remainder of this document will be devoted to technical articles about
  152. how the BootScreen system works, and what changes you are and are not allowed
  153. to make.  Trust me, you can live a happy, full life without reading it.  :>
  154.  
  155.  
  156. The Files
  157. ~~~~~~~~~
  158.    There is a large array of programs in this archive, most of which are
  159.    custom-coded for the Install scripts.  Only three programs actually
  160.    comprise the BootScreen system:
  161.  
  162.    bin/c/BootScreen       Main BootScreen program.  This what is loaded at
  163.                           boot-time and displays the picture.
  164.    
  165.    bin/c/BootScreenClose  This is the so-called "close daemon" which performs
  166.                           the task of closing down the startup screen when
  167.                           it is no longer needed.
  168.                           
  169.    bin/Prefs/BootScreen   Preferences editor.
  170.    
  171.  
  172. Why So Many?
  173. ~~~~~~~~~~~~
  174.    This is the question that's probably burning in your mind: "Why the heck
  175.    is he using a 'close daemon'?"  I could easily compile BootScreen to
  176.    automatically stay resident until it needs to close its screen, but I
  177.    didn't.  Why?  The main reason is that I wanted to fully optimize your
  178.    boot time.  If I used the method of staying resident (equivalent to the
  179.    old way BootScreen was run, with RUN >NIL:), the program would immediately
  180.    quit and the startup-sequence would continue onto the next command.  That
  181.    sounds great, but there is a problem.  While BootScreen is loading its
  182.    IFF picture, the startup-sequence would be loading the next command.  This
  183.    simultaneous tug-of-war for the disk drive causes DOS to shuffle the head
  184.    back and forth supplying the startup-sequence and BootScreen with little
  185.    bits of the files they want at a time.  As a consequence, most of the
  186.    time is simply wasted with the head moving from place to place, rather
  187.    than reading data.  Not only that, it really causes unncessecary wear
  188.    and tear on your hard disk head servos.
  189.    
  190.    Enter the solution.  Instead of returning control to the startup-sequence
  191.    immediately, BootScreen loads the IFF picture, then it launches a seperate
  192.    program responsible for closing the screen.  Only after that is finished,
  193.    does it allow the startup-sequence to continue.  The speed gains may
  194.    be negligible for small pictures, but if you try displaying a HAM8
  195.    picture you'll immediately see the advantage -- as well as hear it; hard
  196.    disk heads make noise when they seek!
  197.    
  198.    The only real disadvantage with this setup is that you've got an extra
  199.    program on your hard disk.  I believe this is not a problem, but you must
  200.    remember never to run the BootScreenClose daemon yourself.  At the
  201.    current time, its only function is to get a lock on the frontmost
  202.    screen, and wait until it is shoved to the back, at which time it closes
  203.    it.  Needless to say, this can cause disastrous results if you try it
  204.    on your Workbench screen.  BootScreen will automatically run the close
  205.    daemon on its own, so you will never have to (and should never) touch it.
  206.    
  207.    Ideally, I'd like to make the close daemon internal to BootScreen, so   
  208.    that the danger of accidental execution won't exist.  However, I tried
  209.    for several agonizing weeks to get my program to spawn a new task and
  210.    then quit, without having its cleanup code deallocate the task.  There's
  211.    probably some way to do it, and I'd appreciate any hints anyone can
  212.    give me in that direction (here's a hint from me, cback.o is not a 
  213.    solution).
  214.    
  215.    
  216. Mode Selection
  217. ~~~~~~~~~~~~~~
  218.    As mentioned before, the only monitor available when you boot up is
  219.    your default montor, NTSC for American machines and PAL for European
  220.    ones.  This means that trying to open a screen at boot-time that
  221.    is for another monitor, such as Super72 or DblNTSC, will always fail.
  222.    To avoid this problem, BootScreen automatically thows away the upper
  223.    16 bits of the picture's DisplayID -- the monitor specification,
  224.    and replaces it with NTSC, PAL, or nothing, depending on your selection
  225.    of the MONITOR gadget.
  226.    
  227.    I mentioned this just so you'll understand why sometimes your pictures
  228.    come out distorted or in the wrong resolution.  Saving the pictures
  229.    in NTSC or PAL will help ensure that the resolution that they're
  230.    displayed in at boot time will be the same as the one they're saved
  231.    in.
  232.  
  233.  
  234. The Install Procedure
  235. ~~~~~~~~~~~~~~~~~~~~~
  236.    Wouldn't it be nice if all programs had three Install scripts for
  237.    Install, Remove (UnInstall), and Upgrade?
  238.    
  239.    Anyway, I wrote several programs which handle the task of kneading
  240.    s:startup-sequence for various purposes.  I'm sure they could be
  241.    more easily written in ARexx, so if anyone's interested, let me know!
  242.    
  243.    
  244.    
  245. Final Words
  246. ~~~~~~~~~~~
  247.    I hate to keep banging you over the head with this, but this is my
  248.    first ShareWare release and I'd like for it to be a rewarding experience..
  249.  
  250.  
  251.    
  252.    
  253. Contacting Me  
  254. ~~~~~~~~~~~~~
  255.  
  256. Joseph Luk
  257.  
  258. Internet: jluk@ctp.org
  259. GEnie: J.LUK
  260.  
  261. S-mail: P.O. Box 884401, San Francisco, CA 94188-4401  U.S.A.
  262.  
  263.  
  264.  
  265.  
  266. REGISTRATION
  267. ~~~~~~~~~~~~
  268.    When you register, you will receive a disk containing the latest version
  269.    of BootScreen, and it will be a custom registered version just for you.
  270.    I don't feel that specially compiled versions for 020 or higher are
  271.    necessary, since the routines aren't particularly time-intensive,
  272.    and the marjority of execution time is spent opening or displaying
  273.    the picture, which are functions in iff.library.  Also on the disk will
  274.    be as many sample pictures as will fit, more than enough for your startup
  275.    screen needs!
  276.    
  277.    
  278.    The registration levels are as follows:
  279.    
  280.    $5    Basic registration.  This is a small amount of money!!!  This
  281.          covers the registered version of the disk and U.S. postage
  282.          ONLY.  For International orders, add $5 U.S. to any order.
  283.          
  284.    $10   Uprgade registration.  Will get you upgrade notices in the
  285.          mail for one year and significant discounts on upgrades.  Will
  286.          also get you my personal approval as well as notices for other
  287.          products by myself.  :>
  288.          
  289.    $11+  If you choose to send additional cash or other gifts (even
  290.          a postcard will be cherished), we can arrange specific rewards.
  291.          I might even consider that 020 version.  :>
  292.          
  293.          
  294.    
  295.    To register, fill out the following form and mail it to me, along with
  296.    a check or money order made out for the amount you wish to donate.
  297.    
  298.    
  299.    BOOTSCREEN 2.00 REGISTRATION
  300.    
  301.    
  302.    Date _________________
  303.    
  304.    
  305.    Full name ________________________________________________________________
  306.    
  307.    
  308.    Address __________________________________________________________________
  309.            
  310.            __________________________________________________________________
  311.            
  312.            __________________________________________________________________
  313.            
  314.            
  315.    Telephone # ______________________
  316.    
  317.    
  318.    E-mail address(es) _______________________________________________________
  319.                       
  320.                       _______________________________________________________
  321.                       
  322.                       
  323.    
  324.    Amount _____________________
  325.    
  326.    
  327.    --
  328.    Mail to:
  329.    
  330.    Joseph Luk
  331.    P.O. Box 884401
  332.    San Francisco, CA 94188-4401
  333.    U.S.A.
  334.  
  335.    THANK YOU!!!!