home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_02 / issue_06 < prev    next >
Text File  |  1995-02-16  |  11KB  |  319 lines

  1.  
  2. Å   Dacom modem connections Ö If you want to connect a Dacom modem to
  3. the Archimedes, try the following connections:
  4. 2.6
  5.  Archimedes   Modem
  6. 2.6
  7. 2   ╤   3
  8. 2.6
  9. 3   ╤   2
  10. 2.6
  11. 5   ╤   7
  12. 2.6
  13. 9   ╤   6
  14. 2.6
  15. Also link 1, 4 and 8 at the Archimedes end and also 6 to 7. If you are
  16. using Hearsay 1.04, use the Tandata modem driver, not the Dacom one.
  17. 2.6
  18. Å   Easy copying Ö If you have a single drive, try setting
  19. 2.6
  20. *set alias$dcopy %0 :0.%0 PQ
  21. 2.6
  22. Then you can use, say,
  23. 2.6
  24. *dcopy filetocopy
  25. 2.6
  26. and this will copy the file öfiletocopyò onto another disc on the same
  27. drive, prompting for disc changes.
  28. 2.6
  29. Å   Easy compacting Ö This could apply to a number of commands, but if
  30. you want, for example, to compact a disc several times, you can use
  31. *repeat 6 compact which will do a *compact 6 times if you have previ
  32. ously set an alias for repeat as follows:
  33. 2.6
  34. *set alias$repeat if %0>0 then repeat %0-1 %*1|m if %o>0 then %*1
  35. 2.6
  36. Å   Masked Sprites Ö The Welcome Disc Sprite Editor was criticised in
  37. November 88 Archive as not working properly. It does work properly, well
  38. almost!
  39. 2.6
  40. To create a masked sprite, first draw your sprite as normal, then press
  41. <shift-f9> (create mask) then select the colour that you want to be
  42. transparent and fill in any areas that are to be transparent. The
  43. display will show a hatched effect for that colour.
  44. 2.6
  45. To plot a masked sprite, remember that you must use a GCOL 8,0 before
  46. plotting the sprite.
  47. 2.6
  48. Å   Hard disc Backup program Ö Paul Hobbs sent in the following
  49. improvement to last monthæs hard disc backup program╔ The very useful
  50. hard disk backup program in Archive 2.5 can, I think, be improved very
  51. easily by the addition of the following lines after the line PRINT
  52. CHR$(13);òScanning:  ö;... etc in PROCaction(). It allows a check to be
  53. made for directories not to be backed up. The full path name should be
  54. given as in the example below. Quite a few of the directories on my disk
  55. are backed up on their own floppies and this modification saves a lot of
  56. time.
  57. 2.6
  58. 1621 RESTORE
  59. 2.6
  60. 1622 skip=FALSE
  61. 2.6
  62. 1623 REPEAT
  63. 2.6
  64. 1624   READ nocop$
  65. 2.6
  66. 1625   IF LEFT$(dir$,LENnocop$)
  67. 2.6
  68. =nocop$ THEN skip=TRUE
  69. 2.6
  70. 1626 UNTIL nocop$=ö*** END ***ò
  71. 2.6
  72. 1627 IF skip=TRUE THEN ENDPROC
  73. 2.6
  74. 7000DATA :4.$.1WP.cfg,:4.$.1WP.doc
  75. 2.6
  76. .BAK,:4.$.TMP,:4.$.BBCTelSoft
  77. 2.6
  78. 7001DATA :4.$.TMP,:4.$.CPROGGIES,
  79. 2.6
  80. :4.$.BACKUP,:4.$.1WP.hex
  81. 2.6
  82. 7002DATA ö*** END ***ò
  83. 2.6
  84. Å   Hard disc squeek Ö Those who are lucky enough to have hard discs may
  85. be suffering a continuous high pitched squeal from the drive when the
  86. machine is switched on. My dealer assured me that it would eventually go
  87. away, but I lost patience and cured it by lubricating the disc drive
  88. spindle with WD-40 (or similar). If you remove the disc drive and look
  89. into the connector end, between the printed circuit board and the drive
  90. body, you should be able to see a carbon pad mounted on the PCB which
  91. rubs against the end of the spindle (to earth it and avoid static
  92. problems). Using an aerosol can fitted with a long tube, a few drops of
  93. lubricant on this pad will cure the noise. Take care when squirting Ö
  94. and naturally no responsibility is accepted!
  95. 2.6
  96. Å   C routines Ö When using the tmpnam() or tmpfile() routines in the
  97. ANSI C library, a directory &.Tmp needs to be created on the current
  98. drive. This is not present on the master floppy, nor is it created by
  99. the hard disc install procedure (installHD).
  100. 2.6
  101. Å   ANSI C command line parameters Ö page 31 of the manual says that
  102. öArguments to main() are the words of the command line, delimited by
  103. spacesò, but gives no further information. The parameters are actually
  104. passed in the same way as the Unix2 environment does Ö for those
  105. programmers unfamiliar with Unix, the main procedure is called with two
  106. arguments, which are declared as:
  107. 2.6
  108. int main(argc,argv)
  109. 2.6
  110. int argc;
  111. 2.6
  112. char *argv[];
  113. 2.6
  114. {2 .6
  115.      /* argv[1] points to first
  116. 2.6
  117.  parameter
  118. 2.6
  119.         argv[2] points to second,
  120. 2.6
  121.  etc.
  122. 2.6
  123.         Program name is at argv[0] */
  124. 2.6
  125. where argc is the number of parameters given (which includes the program
  126. name, so this will always be at least 1) and argv is an array of
  127. pointers to the parameters Ö argv[0] is the command name and argv[1] is
  128. the first parameter. Parameters are normally separated by spaces, but
  129. quoted strings are passed as one unit. Some programmers prefer to
  130. declare argv as:
  131. 2.6
  132.    char **argv;
  133. 2.6
  134. and use it as a pointer to a list of pointers to the arguments.
  135. 2.6
  136. Å   BBC Master Edit Ö If you want to use an image of the Edit ROM (the
  137. Master version) under 65Arthur, you need a *ALPHABET BFONT before
  138. running it up, otherwise the on-screen help display looks very confus
  139. ing. This ROM, by the way, uses CMOS byte 8 (öreserved for Acorn useò)
  140. in which to save the screen mode and help level.
  141. 2.6
  142. Å   *COPY without the ÉQæ Ö omitting the Q option when copying a file
  143. forces Arthur to ignore bad sectors or tracks in a file. This allows you
  144. to recover screens or text files from corrupted discs If you have a
  145. single drive and donæt want to perform umpteen swaps then proceed as
  146. follows:
  147. 2.6
  148. *DELETE or *COPY (with Q) the other files until you have room for
  149. another copy of the bad file.
  150. 2.6
  151. Then *COPY :0.filenme :0.BADfilenme ~C~PV
  152. 2.6
  153. Å   Orion loading speed Ö To speed up the loading, note that there is
  154. what appears to be a non fatal bug in the ö$.Orion.Orion_basò program.
  155. It *sloadæs a sprite file seven times!
  156. 2.6
  157.    LOAD ö$.Orion.Orion_basò
  158. 2.6
  159. now look round about line 3000 and you will find the *sload command that
  160. should be outside the FOR/NEXT loop!
  161. 2.6
  162. Edit this and then save the program back onto the disc. (The name at the
  163. top of the program has an extra Énæ at the end which has to be deleted
  164. from the filename as displayed by the editor if you try to save it with
  165. <f3>)
  166. 2.6
  167. Å   Orion Ö Feel like a laugh? Instead of EDITing ö$.Orion.Orion_basò as
  168. above, try :
  169. 2.6
  170. *con. scr. 20
  171. 2.6
  172. *con. spr. 20
  173. 2.6
  174. <ctrl-break>
  175. 2.6
  176. *DIR Orion
  177. 2.6
  178. LOAD öOrion_basò
  179. 2.6
  180. 701 *UNSET BJS
  181. 2.6
  182. RUN
  183. 2.6
  184. Then when you press <space> to load the game you get a marvelous
  185. digitised laugh! This is apparently a (very clever) part of the
  186. protection used in the program.
  187. 2.6
  188. Å   Extended life for Orion Ö While the instructions are scrolling up
  189. the screen try pressing <U>, <L>, <C> and <space> together but in that
  190. order. It then allows you to select a level at which to start the game
  191. and you will find that you start with 10 lives & 10 smart bombs!
  192. 2.6
  193. Å   Zarch cheat Ö you can get into the cheat mode if, when you first
  194. start up and are sitting on the landing pad, you press <Q>, <T> and <U>
  195. together but in that order. You may have to try it a few times. Now <L>
  196. gives you an extra life, <F> refuels (in mid-air) and <D> toggles the
  197. auto-pilot.
  198. 2.6
  199. Å   Zarch Ö Some new landscapes make this game much better. (Program
  200. NewWorld on monthly program disc or send S.A.E. for listing.) This
  201. program works with the original protected version of Zarch as long as
  202. you have screen size to 160k and other sizes to zero. It uses a
  203. variation of the PRINTKEY program in one of the earlier Archives.
  204. (PRINTKEY had a bug in it! P%=0:O%=code% OPT 4-7)
  205. 2.6
  206. Å   Terramex. For endless lives, with Terramex disc in drive, type:
  207. 2.6
  208. *LOAD TERRACODE 9000
  209. 2.6
  210. !&CF18=&FAFFDC3E
  211. 2.6
  212. !&CF20=&FAFFDC3E
  213. 2.6
  214. CALL &9000
  215. 2.6
  216. Å   Quazer Ö with the Impact software version of Quazer (which appears
  217. to be the same as V1.42) type:
  218. 2.6
  219. *SETEVAL Quazer%MeatHead 1 -Immortal
  220. 2.6
  221. (also try Quazer%Lives, Quazer%Level)
  222. 2.6
  223. Then use *Quazer to Run
  224. 2.6
  225. Å   OS_FSControl problem Ö David Scott reckons there is a problem with
  226. the system command for the COUNT operation. The OS_FSControl (&29)
  227. system command for filing system control with R0 set to 28 (page 262 of
  228. the Programmers Reference Manual) has a problem which is not apparent
  229. from the description given.
  230. 2.6
  231. If the call is used in a program to obtain values for use by the program
  232. it is not possible to do this without the information also being printed
  233. on the screen. This is because bit 8 of the action mask in R3 must be
  234. set in order to get the correct values returned in R2 and R3.
  235. 2.6
  236. The way round this problem is to turn the screen output off using VDU21
  237. before making the system call and then to turn it back on afterwards
  238. with VDU6. If a printer is connected then this will also have to be
  239. temporarily disconnected with VDU3 before and VDU2 after the call.
  240. 2.6
  241. Å   Potential Electrocution! (Archive 2.5 p19)  Ö This is a problem with
  242. most colour monitors. The explanation is as follows... When you turn the
  243. power off, a static charge forms on the screen surface, creating a
  244. potential difference of several KV between the monitor chassis and the
  245. screen surface. If you then pick the monitor up with the screen facing
  246. your body, the screen is effectively connected to your body, and so the
  247. potential now exists between you and the monitor chassis, and remains
  248. there due to the insulating properties of the plastic case. If you then
  249. touch the chassis via a mounting screw or the rear connector, the
  250. potential will be discharged, possibly painfully! (I speak from
  251. experience!)  The answer is to make sure you are touching the chassis
  252. (e.g. the RGB connector shell) BEFORE picking it up, and keep hold of it
  253. whilst carrying the monitor. The other answer is to lift and carry it
  254. with the screen away from you.
  255. 2.6
  256. Å   Pipedream on RISC-OS Ö As reported last month, the current version
  257. of Pipedream DOES work under RISC-OS. All you have to do is *RMKILL
  258. International to kill the international keyboard. This is because Acorn
  259. have changed the use of the <alt> key under RISC-OS and Pipedream uses
  260. this for its drop-down menus.
  261. 2.6
  262. Å   PC Emulator problems Ö You may have problems with the computer
  263. locking up when you are using the PC emulator. This happens sometimes
  264. when you have a modem connected to the RS423 port which is not switched
  265. on. I suspect it may be the öunknown IRQ at &00000000ò which Arthur
  266. manages to cope with but perhaps the PC emulator canÉt. Try keeping the
  267. modem switched on.
  268. 2.6
  269. Å   Stacked bar charts in Gammaplot Ö In Gammaplot it is not possible to
  270. produce directly östackedò or segmented bar charts such as:-
  271. 2.6
  272.  
  273. 2.6
  274.  
  275. 2.6
  276.  
  277. 2.6
  278. Nor is it possible to create directly bar charts with gaps between the
  279. bars such as-:
  280. 2.6
  281.  
  282. 2.6
  283.  
  284. 2.6
  285.  
  286. 2.6
  287. but it is possible to create them indirectly by using a table with (say)
  288. only 1 in 5 of the values as a non-zero number (i.e. make other gaps by
  289. introducing zeros in the spreadsheet).
  290. 2.6
  291. Multiple bar charts such as:-
  292. 2.6
  293.  
  294. 2.6
  295.  
  296. 2.6
  297.  
  298. 2.6
  299.  
  300. 2.6
  301. Can be created by producing three (or more) separate graphs from three
  302. separate spreadsheets and then overlaying one on the other by using
  303. öDisplay all graphsò and using the öWindow facility to move each (of the
  304. 3) separately to the desired position. The diagonal lines and any text
  305. (such as scales or title) is added in öCustomiseò afterwards.
  306. 2.6
  307. I know of NO package which produces segmented bar charts. Presenter will
  308. produce multiple bars directly but without the flexibility of Gamma
  309. Plot.
  310. 2.6
  311. If you had the patience then you could make several different bar charts
  312. and use the öBlock Moveò facility of öCustomiseò to stack the blocks of
  313. the bars but it would take time and might be a lot easier in, say,
  314. Artisan which has a ötransparentò colour for use with its sprites.
  315. 2.6
  316. (N.B. Overlaid line graphs and multiple pie charts are very easy in
  317. Gammaplot.)
  318. 2.6
  319.