home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / STOSSER / STOSSE07.MSA / A / 29.PNE < prev    next >
Text File  |  1987-04-22  |  5KB  |  127 lines

  1.  
  2.               SOME INTERSETING LITTLE SNIPPETS FOR YOU
  3.  
  4.               By Tony Greenwood : 01/10/93 : 1.56 a.m.
  5.  
  6.  
  7.  Some of the following bits will probably be standard practise to 
  8. a lot of you, Some of the information may allready be known, But 
  9. then again you moght find something of use to you,
  10.  
  11.  Allways View your Basic Listings in medium rez for readability
  12.  
  13.  When viewing a listing for the first time , Such as the Source 
  14. given away in STOSSER, Allways check that there isnt a BREAK OFF 
  15. Command in the program, Because if there is then you will have to 
  16. reboot to get STOS running again as the BREAK OFF stops you using 
  17. the CONTROL+C method of breaking into a Basic program,
  18.  Some programs are massive and if a devious Programmer has put the 
  19. BREAK OFF in a subroutine down at the bottom of his/hers listing 
  20. that he calls early on in the program, Then you could have 
  21. difficulty finding it, Therefore use the SEARCH command ie:
  22.  
  23.     SEARCH "break off" and if theres one in the program then it 
  24. will find it for you,
  25.  
  26.                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27.  
  28.  Personaly when making a program i use very simple Variables such 
  29. as X=2 etc or A$="tony" etc, Well if your program starts getting 
  30. a bit on the large size as my code for the diskzine tends to do 
  31. sometimes, Then you start to use things like X2=2 or XX22=9 etc 
  32. etc same goes for the string variables, I tend to use really 
  33. obscure variables when i am at the end of a program, That way i 
  34. can be pretty sure that i havent allready used it earlier on and 
  35. therefore cause some sort of crash, So you could find things like
  36.  
  37.  WXFTDF3$="hello" Or something stupid like that, Well all these 
  38. are of course valid, And we can remember what they are for at the 
  39. time of writing them and testing out the routine, But it is a 
  40. problem when you come back to them a month or two later, Crickey! 
  41. its bad when i cannot follow my own code!, So the tip here is 
  42. when you have finished your program, Simply use the change 
  43. command to change them into something more readable, I mean you 
  44. must have seen listings with really neat variables such as
  45.  
  46. THIS_VARIABLE_IS_PLAYER_ONES_SCORE=25
  47.  
  48.  And its all through the program listing along with lots of 
  49. others like that, well believe me they havent typed that lot in 
  50. every time while programming, well they would have to have the 
  51. patience of a saint, no what they do when the program has been 
  52. completed they change what used to be the variable for player 
  53. one, ie P1
  54.  
  55.  CHANGE " P1 " TO "THIS_VARIABLE_IS_FOR_PLAYER_ONE"
  56.  
  57. STOS will then go straight through the program changing all the 
  58. P1 Variables to the new one, Something important though, and i 
  59. dont think the manual points this out, notice i put a space 
  60. before and after, well if i dident then any other variable with 
  61. P1 in it would be changed, PP1 would become PTHIS VARIABLE etc
  62.  
  63.  Another thing it can do is change commands, example, When i 
  64. installed the missing link extension i used change in a program , 
  65. it went all the way through my massive listing changing all my 
  66. CLS's to the much faster WIPE : CHANGE " CLS " TO "WIPE"
  67.  
  68.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  69.  
  70.  
  71.   Did you know that the Address for ST USER & ST REVIEW are the 
  72. same as that for MANDARIN SOFTWARE
  73.  
  74.  
  75.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76.  
  77.  Now i have the missing link extension i find i am no longer 
  78. using the misty extension, the only thing i found i needed misty 
  79. for was to completely dissable the mouse ( much needed when 
  80. screen handeling , such as scrollers ), well you can disable the 
  81. mouse without misty
  82.  
  83.  DOKE $FFFCO2,$12 REM turns mouse completly off
  84.  DOKE $FFFCO2,$8  REM guess what!
  85.  
  86.                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87.  
  88.  If you make a program that uses the file selector then you will 
  89. have to make sure you alocate some window space when compiling 
  90. because, fileselectors use windows, Also you will notice that 
  91. they work in low rez in basic, but if you are wondering why your 
  92. compiled version crashes, then you need to change the mode to 
  93. medium for compiled proggys, 
  94.  
  95.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  96.  
  97.     The SHIFT Command only shifts the 16 colours that are defined 
  98. in your pallete and not 512 like the soppy manual tells you
  99.  
  100.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101.  
  102.   If all of a sudden you try to load your STOS disk only to find 
  103. there is a problem , example the STOS LOGO screen that opens up 
  104. while STOS is loading has suddenly become a bit of a mess, and 
  105. STOS just wont load, Well the chances are that you are suffering 
  106. the same problems i had a few months ago, Every now and then my 
  107. Language disk became ruined and i had to make another copy from 
  108. the original, Well if this is happening to you then STOP USING 
  109. THE SYSTEM COMMAND, and i think the problem of corrupt language 
  110. disks will go away, Mine did!
  111.  
  112.  
  113.              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114.  
  115.  If you name your basic file that you are currently working on as
  116. AUTOEXEC.BAS then next time you boot up stos it will 
  117. automaticlally load this as well,
  118.  
  119.              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120.  
  121.  
  122.   Well thats all for this Article, Get writing in to KEEFY with 
  123. all your little hints and tips,
  124.  
  125.  Keep on STOSSING all you STOSSERS!
  126.  
  127.