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

  1. 2.7
  2. Å   BBC winchester on Archimedes!! Alan Glover says╔ I have got it to
  3. work on the i/o podule under RISC-OS. Hereæs what you do: from the
  4. !65Host directory:
  5. 2.7
  6. *RMLOAD !RunImage
  7. 2.7
  8. *CACHEROM 0 dnfs
  9. 2.7
  10. *CACHEROM 1 ARFS
  11. 2.7
  12. *CACHEROM 2 <>.ADFS130
  13. 2.7
  14. *EMU.
  15. 2.7
  16. Note: Must be ADFS 130 Ö i.e. a B/B+ version  and you must find an image
  17. of this yourself as it is not provided with RISC-OS. To use the
  18. Archimedesæ ADFS type *ARFS.
  19. 2.7
  20. The winchester is connected to the 2 MHz bus (theoretically 1 MHz!) on
  21. the I/O podule as it would be on a BBC.
  22. 2.7
  23. Å   Configuration problems in Art Nouveau Ö If you select ÉConfigure
  24. machineæ from the opening menu when you have already configured the
  25. machine, you lose your old configuration when you quit and you are left
  26. with Art Nouveauæs own configuration. This is because it doesnæt keep
  27. track of whether you have already configured it. I was lucky Ö I had
  28. written a program long ago that translates a *SPOOLed *STATUS into a
  29. load of *Configureæs and I keep a copy of this spool on my hard disc at
  30. all times. You have been warned. Martyn Lovell.
  31. 2.7
  32. Å   Graphic Writer with a Star SG-10 Ö If you can have one complaint
  33. about Graphic Writer (apart from the manual) itæs the printer support. I
  34. own a Star SG-10 and am trying to let Graphic Writer use it to the full.
  35. The Star has an NLQ character set, but this cannot be combined with any
  36. other text style except underlined. So what I want is to adapt the
  37. printer driver so that it would normally print NLQ and for the other
  38. effects resort to draft printing. For this, I used the Printcon program
  39. and gave the following codes:
  40. 2.7
  41. Initialisation:
  42. 2.7
  43. ESC ö@ò
  44. 2.7
  45. ESC öGò
  46. 2.7
  47. ESC ö4ò
  48. 2.7
  49. Which resets the printer, turns on double-strike (gives better bold, but
  50. you may omit it) and NLQ. Make sure the printer is in IBM mode.
  51. 2.7
  52. For configuration (leave the rest the same as a FX80):
  53. 2.7
  54. Plain:     27,70,27,52
  55. 2.7
  56. Bold:      27,53,27,69
  57. 2.7
  58. Italic on: ESC öIò,1
  59. 2.7
  60. Italic off:ESC öIò,0
  61. 2.7
  62. Note that the input routine of the printcon program doesnæt accept two
  63. öESCò sequences on one line, but it accepts two 27æs. The italic codes
  64. are different from an FX80. In fact, FX80 compatibility turns out to be
  65. somewhere in between the öStarò and öIBMò modes of the Star SG-10. The
  66. trick is the plain and bold codes. When Graphic Writer finds a öBoldò
  67. code it now also sends an NLQ-off code to the printer, which in effect
  68. makes the printer print in draft, emphasized and double-strike, the
  69. latter being already set at initialisation. (Yes, it is confusing, isnæt
  70. it?!) This makes it possible to mix NLQ, bold and italic-bold in the
  71. text. However, you canæt use italics or super/subscript without bold.
  72. These just print in normal NLQ.
  73. 2.7
  74. The same method should apply to other printers which canæt do everything
  75. in NLQ.
  76. 2.7
  77. Another tip on Graphic Writer is that you should always make any graphic
  78. as big as possible, i.e. use the whole graphic area, however small you
  79. want the picture to be. This makes page composition a lot easier and
  80. also causes less problems with distortion when rescaling.
  81. 2.7
  82. Å   Interrupt module Ö The interrupt module by Steve Hoare (Archive 2.6
  83. p44) is very useful especially, as he states in his article, with First
  84. Word Plus for creating directories etc. However there is a problem
  85. associated with *interrupt 0. This is that the pound key also generates
  86. ASCII 0 (a bug in OS1.2 I think) which means that every time you type a
  87. Époundæ, the interrupt module takes over and opens up the OS window.
  88. However, <ctrl-O> is unused by First Word Plus, so I use *interrupt 15
  89. instead.
  90. 2.7
  91. The module also comes in handy when using a comms program to check on
  92. filenames, *type logfiles etc, but there is an enhancement that I think
  93. would make it more useful still. While in the OS window, it is possible
  94. to type <ctrl-Z> to open up the text window to the full screen which is
  95. handy, but on exit (in a WIMP program) only the top half of the screen
  96. is restored. If the source code could be modified to issue a redraw
  97. request for the whole screen it would be an improvement. Having looked
  98. at the code, it should be easy to do. Any offers?
  99. 2.7
  100. Å   Memory shortage on Logistix and First Word Plus Ö To get round the
  101. Éout of memoryæ snag which seems to turn up so often with First Word
  102. Plus and Logistix, if you have the 1.20 PC emulator, use the PC.PC
  103. startup routine first and then, instead of using the MS.DOS disc, insert
  104. Logistix instead and <reset>. <Ctrl-break> will then autoboot Logistix
  105. with a whole 275k of memory free to use.
  106. 2.7
  107. Å   Mitsubishi Disc Drives Ö Here are a number of points to bear in
  108. mind, writes Vic Budd, when adding external disc drives. If, after
  109. considering these, you feel competent to carry out the work, go ahead.
  110. If not, it is prudent to entrust the work to an experienced operator to
  111. avoid frustrations and disappointments.
  112. 2.7
  113. There are different circuit board layouts, but the basic checks on the
  114. drives are the same.
  115. 2.7
  116. 1.   Remove link MS if made and change to adjoining position MM.
  117. 2.7
  118. 2.   Remove link IU if made and discard it. On some drives there is no
  119. removable link. However, there is a circuit board foil link, DI, near
  120. the data cable edge connector, which is connected to pin 2, and this
  121. should be cut in these instances.
  122. 2.7
  123. 3.   Move drive selector link to position 1, 2 or 3 according to which
  124. command you wish it to respond. (This assumes that the internal drive is
  125. to be 0).
  126. 2.7
  127. 4.   The resistor pack should be in place. On some drives this consists
  128. of a single plug-in IC type device, whilst on others there is a row of
  129. DIL pins which should have shorting links inserted.
  130. 2.7
  131. 5.   Make sure the data cable is correctly orientated Ö it will need to
  132. be at 180 degrees compared to the three and a half inch drive
  133. connectors.
  134. 2.7
  135. 6.   If, as I do, you wish to run a second three and a half inch
  136. external drive and a five and a quarter inch drive, the connecting cable
  137. will, of course, need to be turned through 180 degrees to connect the
  138. drives together.
  139. 2.7
  140. 7.   If you decide to use the Archimedesæ power supply, check the
  141. connections carefully before attaching the cable connectors, making
  142. quite sure you do not get the 12v and 5v leads confused.
  143. 2.7
  144. If you do all these things correctly, you too should have no problems
  145. with the Beebug lead and will be able to access drives A, B and C under
  146. the PC Emulator, as well as 0,1, and 2 under Énativeæ Archimedes.
  147. 2.7
  148. Å   Moving the pointer when it is not linked to the mouse can be greatly
  149. simplified by using the POINT TO x%,y% command which does exactly what
  150. is needed (note that you must unlink the pointer from the mouse first
  151. with MOUSE ON 129). Details are in the User Guide and under HELP POINT.
  152. Having looked at the relevant part of the PRM, it appeared to be
  153. impossible to do this, so I decided to have a rummage around in the
  154. BASIC module. This resulted in the discovery of some undocumented calls!
  155. Basically these are extensions of OSWORD &15 whereby putting &05 instead
  156. of &03 at R1+0 causes the pointer position to be set instead of the
  157. mouse position (see PRM p.133). Also, values of &04 and &06 appear to
  158. read the mouse and pointer positions respectively, though the code to
  159. read the mouse position contains a fatal bug in Arthur 1.2 and cannot be
  160. used! In theory it might be possible to patch it with a copy of the
  161. UtilityModule in RAM but this module refuses to be RMKILLed. Martin
  162. Simmons
  163. 2.7
  164. Å   Problems with *UP Ö If you are having problems (as expressed in the
  165. Help Section last month) with *UP or the use of ^ in a pathname, it is
  166. probably because of a bug in the ADFS. The problem occurs when a
  167. directory is renamed. The ADFS does not seem to keep track of it
  168. properly. The solution, apparently, is to do a *COMPACT on the disc.
  169. 2.7
  170. Å   Repton 3 again (Philip Armstrong) Ö Iæve got a few more comments on
  171. Repton 3. Firstly I hope that no one saved the new characters and maps
  172. onto the original disc. I have found that occasionally, the maps have
  173. been corrupted and thus rendered impossible. If you find a screen that
  174. you canæt do then check it with the original version. For those people
  175. that canæt get to grips with the array of different characters, create a
  176. second disc with all the files using a standard set of characters. This
  177. makes the screens easier to complete. I have included on the monthly
  178. program disc, the new characters that I use. They are not brilliant, but
  179. a distinct improvement on the original set. Superior Software only state
  180. that characters and maps cannot be used for commercial exploitation, so
  181. it is OK for us to distribute in this way. There is also a simple
  182. program to merge maps and my characters. Also, if you cannot stand the
  183. tune that accompanies the loading program of Repton, then change *tune1
  184. to *tune0 in the öconfigò file.
  185. 2.7
  186. Here is a list of Passwords for Repton 3. Sorry itæs not complete, but I
  187. do have other things to do. If anyone can do screen E of WORK
  188. (p=scratch), Iæd be pleased to hear from them because it looks imposs
  189. ible and I have checked it against the original. I suspect a transporter
  190. has been defined wrongly.
  191. 2.7
  192. A   Prelude   B   Rescind   C   Periwig   D   Mortify      E   Forsake  
  193. F   Gratify   G   Thistle   H   Spangle
  194. 2.7
  195. A   Toccata   B   Nocturn   C   Liberal   D   Inspect      E   Delight  
  196. F   Botanic   G   Vitriol   H   Sacking
  197. 2.7
  198. A   Finale   B   Yardarm   C   Zealous   D   Without      E   Aviator  
  199. F   Elderly   G   Juniper   H   Crimson
  200. 2.7
  201. A   America   B   Herbage   C   Kitchen   D   Outcast      E   Quarter  
  202. F   Untwine   G   Tremble   H   Strange
  203. 2.7
  204. A   Arctic   B   Kinetic   C   Gondola   D   Lozenge      E   Rotunda  
  205. F   Frontal   G   Younger    H
  206. 2.7
  207. A   Orient   B   Organic   C   Armhole   D   Visible   E   Neglect   F  
  208. Biplane   G   H
  209. 2.7
  210. A   Oceans   B   Distain   C   Mundane   D   Eclipse   E   Warning   F  
  211. G   H
  212. 2.7
  213. A   Africa   B   Quickly   C   Zigzags   D   Closely   E   Panoply   F  
  214. Bonfire   G   H
  215. 2.7
  216. A   Baby   B   Startle   C   Measles   D   Granite   E   WhimperF  
  217. Cushion   G   Alimony   H   Utensil
  218. 2.7
  219. A   School   B   Qualify   C   Knicker   D   Dynamic   E   Tendril   F  
  220. Lanyard   G   Vinegar   H   Yaskmak
  221. 2.7
  222. A   Teenage   B   Eternal   C   Whisper   D   Feather   E   Rhubarb   F  
  223. Jasmine   G   H  
  224. 2.7
  225. A   Work   B   Inverse   C   Parapet   D   Elegant   E   Scratch   F   G 
  226.  H  
  227. 2.7
  228. A   Oap   B   Jackdaw   C   Rupture   D   Archery   E   Figment   F  
  229. Natural   G   Tonight   H   Brigade
  230. 2.7
  231. A   Prehist   B   Dormant   C   Mineral   D   Varnish   E   Dashpot   F  
  232. Lobelia   G   Upright   H  
  233. 2.7
  234. A   Egypt   B   Lobster   C   Tabloid   D   Achieve   E   Gristle   F  
  235. Deceive   G   Scalpel   H  
  236. 2.7
  237. A   Victori   B   Earnest   C   Pervade   D   Violent   E   Bashful   F  
  238. Magnify   G   Wrought   H   Horizon
  239. 2.7
  240. A   Now   B   Charity   C   Funeral   D   Justify   E   Naughty   F  
  241. Isolate   G   Radical   H  
  242. 2.7
  243. A   Future   B   Primate   C   Mustang   D   Iterate   E   F   G   H  
  244. 2.7
  245. Å   Shared C Library Ö Users of release 2 of ANSI C might like to know
  246. how to use the Shared C Library which is included on the disc but which
  247. does not seem to be documented in the User Guide. Normally, the AOF
  248. file, generated by compiling the C source, is linked with the C ANSI
  249. library file, $.ARM.CLib.O.AnsiLib. This produces an image file which
  250. can be executed directly by *RUNning it. This image file tends to be
  251. quite long as large port-ions of the C ANSI library are incorporated in
  252. it.
  253. 2.7
  254. On the C disc, is a file called $.Library.CLib which contains the C ANSI
  255. library in the form of a relocatable module. The interface between the
  256. user program and this Shared C Library module is a small file called
  257. $.ARM.CLib.O.Stubs which simply defines each ANSI library function as a
  258. SWI which is then recognised by the library module.
  259. 2.7
  260. As an example of the use, try the following. Mount your working copy of
  261. the C disc and enter directory $.ARM.CBench. Now compile the source file
  262. C.HelloW using the -c option so as not to invoke the linker:
  263. 2.7
  264. *CC HelloW -c
  265. 2.7
  266. Now link the resulting AOF file with the Stubs library:
  267. 2.7
  268. *Link -o HelloW O.HelloW $.ARM.CLib.O.Stubs
  269. 2.7
  270. Next load the Shared C Library module:
  271. 2.7
  272. *RMLoad $.Library.CLib
  273. 2.7
  274. And finally run the program:
  275. 2.7
  276. *Run HelloW
  277. 2.7
  278. Note that an image file generated in this way is not truly stand-alone
  279. as it needs the Shared C Library module to be loaded in order for it to
  280. run (but then again many programs need the Floating Point Emulator to be
  281. loaded in order to run). A big advantage is that the image file is very
  282. much smaller than it would be if it had been linked with the ANSI
  283. library in the normal way. One can envisage several C programs multi
  284. tasking under RISC-OS, sharing the resources of the Shared C Library.
  285. 2.7
  286. It should be noted that the Arthur-specific functions declared in the
  287. ArthurLib header file are not incorporated in the Shared C Library. If
  288. your program uses these functions you must include
  289. $.ARM.CLib.O.ArthurLib at the linking stage. So try the following:
  290. 2.7
  291. *CC Balls64 -c
  292. 2.7
  293. *Link -o Balls64 O.Balls64 $.ARM.CLib.O.Stubs $.ARM.CLib.O.ArthurLib
  294. 2.7
  295. *Run Balls64
  296. 2.7
  297. Provided the Shared C Library module is loaded, the program should run
  298. normally. John Morley
  299. 2.7
  300. Å   Sprite Animation Ö There have been many articles relating to the use
  301. of Sprites on the Archimedes. These have covered the use of PLOT &ED,X,Y
  302. to display a Sprite in its defined colours at point (X,Y) and the use of
  303. a Mask to allow a background to appear through the Éunusedæ parts of a
  304. sprite. They have also shown the use of Exclusive OR plotting using GCOL
  305. 11,0 to allow the sprite to be moved over any coloured background.
  306. 2.7
  307. The EOR solution to this last problem, of moving a multi-coloured sprite
  308. over a multi-coloured background, does work, but unless a great deal of
  309. thought is given to palette selection, the sprite does not retain its
  310. defined colour during movement.
  311. 2.7
  312. Many games will require the facility to define a sprite in specified
  313. colours, with a mask and to move it still retaining those colours rather
  314. than those produced by EOR.
  315. 2.7
  316. A solution is to use the standard Move/Display/Erase in a loop but not
  317. to use EOR. The following algorithm does this :
  318. 2.7
  319. 1   Define the sprite ÉMySpriteæ with a mask (using SEDIT on the Welcome
  320. Disk).
  321. 2.7
  322. 2   Determine the size of ÉMySpriteæ. This may be known but a SYS call
  323. does it for you.
  324. 2.7
  325. LOOP
  326. 2.7
  327. 3   Determine the position where ÉMySpriteæ is to be plotted.
  328. 2.7
  329. 4   Grab a sprite ÉTempæ from the screen at this position the same size
  330. as ÉMySpriteæ.
  331. 2.7
  332. 5   Plot ÉMySpriteæ with the mask.
  333. 2.7
  334. 6   Plot the grabbed sprite ÉTempæ to ERASE ÉMyspriteæ.
  335. 2.7
  336. ENDLOOP
  337. 2.7
  338. The following program demonstrates this :
  339. 2.7
  340.  10 REM > SpritePlot
  341. 2.7
  342.  20 REM Copyright Ian Smith
  343. 2.7
  344.  30 REM March 1989
  345. 2.7
  346.  40
  347. 2.7
  348.  50 REM An example program to show
  349. 2.7
  350.  the use of sprites moving
  351. 2.7
  352.  60 REM across a multi coloured
  353. 2.7
  354.  background by grabbing an area
  355. 2.7
  356.  70 REM of screen as a sprite and
  357. 2.7
  358.  then using it to overwrite the
  359. 2.7
  360.  80 REM moving sprite.
  361. 2.7
  362.  90
  363. 2.7
  364. 100 MODE 15  :REM Works in other
  365. 2.7
  366.  modes
  367. 2.7
  368. 110 T$=öTempò  : REM Will be the
  369. 2.7
  370.  sprite grabbed from screen
  371. 2.7
  372. 120 M$=öMySpriteò  : REM A masked
  373. 2.7
  374.  sprite created with SEDIT
  375. 2.7
  376. 130 *SLOAD !Sprites
  377. 2.7
  378. 140
  379. 2.7
  380. 150 SYS &2E,40,,T$ TO ,,,W,H :REM
  381. 2.7
  382.  Find size of sprite to grab
  383. 2.7
  384. 160       : REM W)idth and H)eight
  385. 2.7
  386. 170 PROCDrawBackground  : REM Draw
  387. 2.7
  388.  a Multicoloured background
  389. 2.7
  390. 180 PROCTitle:REM and put titles on
  391. 2.7
  392. 190
  393. 2.7
  394. 200 REPEAT
  395. 2.7
  396. 210  REM ****** MOVE ******
  397. 2.7
  398. 220  MOUSE X,Y,B
  399. 2.7
  400. 230  SYS &2E,16,,T$,1,X,Y,X+W*2,
  401. 2.7
  402. Y+H*4  : REM Grab sprite
  403. 2.7
  404.  from screen
  405. 2.7
  406. 240
  407. 2.7
  408. 250  OSCLI(öSCHOOSE ò + M$ ) :REM
  409. 2.7
  410.  Select original sprite
  411. 2.7
  412. 260
  413. 2.7
  414. 270  REM ****** DISPLAY ******
  415. 2.7
  416. 280  GCOL 8,0 :REM Now plot it with
  417. 2.7
  418.  its mask
  419. 2.7
  420. 290  PLOT &ED, X,Y   :REM at the
  421. 2.7
  422.  mouse position
  423. 2.7
  424. 300  PLOT &ED,900,800  : REM and
  425. 2.7
  426.  display it in rectangle
  427. 2.7
  428. 310
  429. 2.7
  430. 320  WAIT:WAIT  : REM Synchronise
  431. 2.7
  432.  output
  433. 2.7
  434. 330
  435. 2.7
  436. 340  OSCLI(öSCHOOSE ò + T$) :REM
  437. 2.7
  438.  Now plot the grabbed sprite
  439. 2.7
  440. 350
  441. 2.7
  442. 360  REM ****** ERASE ******
  443. 2.7
  444. 370  GCOL 0,0
  445. 2.7
  446. 380  PLOT &ED,X,Y : REM at the same
  447. 2.7
  448.  place
  449. 2.7
  450. 390  PLOT &ED,1000,800  :REM and in
  451. 2.7
  452.  its rectangle
  453. 2.7
  454. 400 UNTIL B=7      : REM 3 buttons
  455. 2.7
  456.  terminates
  457. 2.7
  458. 410 END
  459. 2.7
  460. 420
  461. 2.7
  462. 430 DEF PROCDrawBackground
  463. 2.7
  464. 440 GCOL 3 : RECTANGLE FILL 0,0,
  465. 2.7
  466. 300,300 : REM Just a
  467. 2.7
  468.  couple of
  469. 2.7
  470. 450 GCOL 4 : RECTANGLE FILL 50,50,
  471. 2.7
  472. 50,50 : REM rectangles and
  473. 2.7
  474. 460 GCOL 12:CIRCLE FILL 800,400,200
  475. 2.7
  476. : REM circles
  477. 2.7
  478. 470 GCOL 5 :CIRCLE FILL 600,300,100
  479. 2.7
  480. 480 OSCLI(öSCHOOSE ò + M$)
  481. 2.7
  482. 490 PLOT &ED,75,90 : REM and the
  483. 2.7
  484.  sprite
  485. 2.7
  486. 500 ENDPROC
  487. 2.7
  488. 510
  489. 2.7
  490. 520 DEF PROCTitle
  491. 2.7
  492. 530 GCOL 1
  493. 2.7
  494. 540 RECTANGLE 900-2,800-4,W*2+4,
  495. 2.7
  496. H*4+8 :REM Draw rectangles
  497. 2.7
  498. 550 RECTANGLE 1000-2,800-4,W*2+4,
  499. 2.7
  500. H*4+8 : REM in which sprites
  501. 2.7
  502. 560 PRINT TAB(53,2);öS P R I T E Sò
  503. 2.7
  504.   : REM are displayed
  505. 2.7
  506. 570 PRINT TAB(52,3);öoriginal
  507. 2.7
  508.  grabbedö
  509. 2.7
  510. 580 PRINT TAB(0,1);öSPRITE
  511. 2.7
  512. DEMONSTRATION : use mouse
  513. 2.7
  514.  to move spriteö
  515. 2.7
  516. 590 ENDPROC
  517. 2.7
  518. Comments on the program
  519. 2.7
  520. PROCDrawBackgound sets up a background to move over.
  521. 2.7
  522. PROCTitle puts text and a couple of rectangles on the screen
  523. 2.7
  524. 150   uses a SYS call to find the Width and Height of ÉMySpriteæ. This
  525. is needed so that the right size ÉTempæ can be grabbed. (See PRM pp
  526. 429,433.)
  527. 2.7
  528. 230   grabs the sprite from the screen using a SYS call. Note the *2 and
  529. *4 to compensate for screen MODE 15. Youæll need to change this for
  530. other resolution modes.
  531. 2.7
  532. 250   selects ÉMySpriteæ
  533. 2.7
  534. 280   selects the Mask Plot option GCOL 8.
  535. 2.7
  536. 290   plots the sprite at the Mouse selected point
  537. 2.7
  538. 300   plots the sprite in a rectangle to show its original colours.
  539. 2.7
  540. 340   selects ÉTempæ
  541. 2.7
  542. 380   plots ÉTempæ effectively erasing ÉMySpriteæ
  543. 2.7
  544. 390   plots ÉTempæ in its rectangle. The effect of 390 has an interest
  545. ing side-effect. When you run the program move the sprite over the
  546. rectangle! See what happens!
  547. 2.7
  548. The program ÉSpritePlotæ and the sprite file É!Spritesæ are on this
  549. monthæs disk but you can use the program by keying it in and also
  550. creating a masked sprite in mode 15 using SEDIT and saved as !SPRITES.
  551. 2.7
  552. The program can obviously be modified to run in other modes. The flicker
  553. on the sprite could be removed by modifying the program to plot only if
  554. the mouse has been moved. Ian Smith
  555. 2.7
  556. Å   Star-Trader Cheats Ö Here are some ideas and cheats for
  557. ÉStarTraderæ. It is an excellent game, all the more impressive when you
  558. consider it is written in BASIC!
  559. 2.7
  560. Load the main game and enter the EDIT editor. (The main game file is
  561. É$.Resouces.StarTrader. StarTraderæ.) You can alter as many as the
  562. following as you like to make the game a bit easier to get into;
  563. 2.7
  564. Line 290 change to: SUN=1 for a SunBurst
  565. 2.7
  566.    DEATH=1 for a DeathBlossom
  567. 2.7
  568.    CELL=1 for a super energy cell
  569. 2.7
  570.    ENG=3 for the most powerful engines (Note ENG=2 & ENG=1 are available
  571. as well)
  572. 2.7
  573.    NUMPT=10 for the number of photon torpedoes. Having 10 doesnæt spoil
  574. the display!
  575. 2.7
  576. Line 390 change CRD to the number of credits you want (STDA is the
  577. stardate)
  578. 2.7
  579. Line 420 change MAXHOL to the size of the hold you want fitted.
  580. 2.7
  581. Note: DAMCAP is used in Line 13570 to calculate the remaining hold
  582. capacity.
  583. 2.7
  584. PRC() holds the value of each of the tradegoods you are carrying CTOTAL
  585. is the total weight of cargo you are carrying at the moment (also used
  586. in 13570)
  587. 2.7
  588. The messages you occassionally get when transporting down to a planet
  589. are held in code. If you want to see them, then type the following
  590. changes in immediate mode.
  591. 2.7
  592. LOAD öStarTraderò
  593. 2.7
  594. DELETE 0,39349
  595. 2.7
  596. DELETE 39560,39580
  597. 2.7
  598. DELETE 39640
  599. 2.7
  600. DELETE 39650,39690
  601. 2.7
  602. 39351 DIM CMG$(20)
  603. 2.7
  604. 39554 FOR T=0 TO  20
  605. 2.7
  606. 39651 NEXT
  607. 2.7
  608. PROCCLUE (If <ctrl-B> is used first, the messages can be sent to a
  609. printer.)
  610. 2.7
  611. There is a 50:50 chance of getting a clue on any planet landing. 16
  612. messages have a 95% chance of being called, the other 4 messages only
  613. 5%. The rumour sends you to a randomly chosen planet! Some messages are
  614. tradehints, some are adverts for other games(!) and a couple are very
  615. useful clues to the solution of the puzzle.
  616. 2.7
  617. The planets on which the segments are found and the code are chosen at
  618. the creation of the universe stage. RUN the game, then immediately save
  619. it. TYPE in CHEAT4 to get a list of planet numbers where the segments
  620. are. CHEAT4 also prints out the code letters. These are held in the
  621. array ZTX()
  622. 2.7
  623.  10 REM >CHEAT4
  624. 2.7
  625.  20 DIM PKLR(800),GR(800),ANAME$
  626. 2.7
  627. (800),TYP(800),SS(800),PO(800)
  628. 2.7
  629. ,STARSS(120),PX(120),PZ(120), PC(9),SP(9),PRC(13), UNI(120,12),ZTX(8)
  630. 2.7
  631.  30 BB=OPENIN(ö:1.xxxxxò):REM
  632. 2.7
  633.  change xxxxx to name of
  634. 2.7
  635.  SaveGame file
  636. 2.7
  637.  40 INPUT# BB,SUN,DEATH,CELL,ENG,
  638. 2.7
  639.  FS, PS,SS,AS,PTD,PSD,DAMCAP,HD, TE,NUMPT,PE,EPS,STDA,CRD,PN,SY
  640. 2.7
  641.  50 FORT=1TO800:INPUT# BB,PKLR(T),
  642. 2.7
  643.  GR(T),ANAME$(T),TYP(T), SS(T),PO(T):NEXTT
  644. 2.7
  645.  60 FORT=1TO120:INPUT# BB,SARSS(T)
  646. 2.7
  647.  ,PX(T),PZ(T):NEXTT
  648. 2.7
  649.  70 FORT=1TO9:INPUT# BB,PC(T),SP(T)
  650. 2.7
  651. :NEXTT
  652. 2.7
  653.  80 FORT=1TO13:INPUT# BB,PRC(T)
  654. 2.7
  655. :NEXTT
  656. 2.7
  657.  90 FORZ=1TO119
  658. 2.7
  659. 100 FORT=1TO12:INPUT# BB,UNI(Z,T)
  660. 2.7
  661. :NEXTT
  662. 2.7
  663. 110 NEXTZ
  664. 2.7
  665. 120 FORT=1TO8:INPUT# BB,ZTX(T)
  666. 2.7
  667. :NEXTT
  668. 2.7
  669. 130 CLOSE# BB
  670. 2.7
  671. 140 FOR LOOP=1 TO 9:PRINT PC(LOP),
  672. 2.7
  673. SP(LOOP)æ:NEXT:REM planets
  674. 2.7
  675. 150 FOR LOOP=1 TO 8:PRINTCHR$(64+
  676. 2.7
  677. ZTX(LOOP)):NEXT:REM code
  678. 2.7
  679. You get a nice fanfare when you collect a segment. The percentage
  680. chances reported during a scan can be as low as 45% or as high as 90% on
  681. a planet which actually has a segment.
  682. 2.7
  683. If you have two drives, it is quite easy to use drive 1 as the GameSave
  684. drive (as in the program above). Just change (input$) in Lines 3770,
  685. 4020 and 4050 to (ö:1.ò+input$). Dave Kent
  686. 2.7
  687. Å   TV output from Archimedes? Ö It is possible to connect a TV to an
  688. Archimedes, though only in monochrome and via a video.  Connect a wire
  689. (co-ax) from a phono plug plugged into the Archimedes mono video socket
  690. to pin 20 (centre core of Co-ax) and any one of the many 0V lines (i.e.
  691. connect the braid screen to 0V) on a SCART plug. This means that it only
  692. works on video machines with a SCART socket on them (if no SCART socket,
  693. then connect to VIDEO IN via a phono or BNC plug). This also means that
  694. you can make demo videos and stuff by taping the pictures. Sound can be
  695. connected to pins 2 and 6, I think, never tried it! (See Archive 2.2 p
  696. 6)  Does anyone now how to convert the Archie mono out to colour?
  697. Plugging the Archie SCART cable to the video doesnæt work! Oliver
  698. Cornes.
  699. 2.7
  700. Å   Using First Mail Ö At first, I regarded First Word Plus as a very
  701. ordinary word processor. The need to keep reformatting with <f12> seemed
  702. to be a step backward. However First Mail changes the picture for me.
  703. Here are one or two ideas on how to use First Mail for handling ordinary
  704. day-to-day cor-respondence.
  705. 2.7
  706. I ömerge fromò a file carrying my letterhead. In fact I have a few
  707. different letterheads for different purposes. In addition to the
  708. letterhead my öfromò file has the following First Mail commands:
  709. 2.7
  710. longdate
  711. 2.7
  712. input öaddress file?ò, address
  713. 2.7
  714. input ötext file?ò, text
  715. 2.7
  716. includefile dat.address
  717. 2.7
  718. Dear
  719. 2.7
  720. includefile doc.text
  721. 2.7
  722. includefile dat.address
  723. 2.7
  724. (The bits in italic that should be in light type. It is not obvious
  725. which the light bits should be; but see the note on p. 206 of the First
  726. Word Plus manual.)
  727. 2.7
  728. The system asks me for an address file and then a file containing the
  729. text of the letter, both of which it merges with the letterhead. The
  730. second printing of the address comes after a hard page break. Since I
  731. specify pauses on page breaks, this allows me to remove the letter from
  732. the printer and replace it with the envelope (or sticker) for the second
  733. address to be printed on that. I can cancel this when I do the draft
  734. copy, which I keep for my own files. I save my letter texts in the doc
  735. directory and addresses in the dat directory. This allows me to use the
  736. same name for both if that is more convenient.
  737. 2.7
  738. Incidentally I use a brother daisywheel for most of my letter quality
  739. printing; and I have configured the driver to print my letterhead in
  740. bold red. A nice feature of First Word Plus is that you can have several
  741. drivers for the same printer if you give them different names. Not only
  742. that, but with a daisy-wheel you can have two configurations on the same
  743. driver by making the NLQ configuration different from the draft
  744. configuration, though of course, the terms draft and NLQ will have no
  745. real meaning for a daisywheel.
  746. 2.7
  747. There are some errors in the Brother driver supplied, by the way; so
  748. check with the manual, especially if you are Danish or are in the habit
  749. of using some of the more obscure symbols. The First Word Plus manual is
  750. a bit vague about full pathnames, too. For instance, to install a
  751. different default printer you have to type, say,
  752. 2.7
  753. *copy 1wp.cfg.epson_fx resources.
  754. 2.7
  755. 1wp.1wp_print
  756. 2.7
  757. I find the First Word Plus file window most useful for exploring discs.
  758. If you click on the window exit symbol you get the parent directory.
  759. Clicking on a directory name in the window lists that directory in the
  760. window as well as selecting it in the directory slot. Glyn Emery.
  761. 2.7
  762.  
  763. 2.7
  764. We begin a new section this month to help you get to grips with RISC-OS.
  765. When you buy RISC-OS, you get a disc full of information from software
  766. houses (see list below) about how to get their software running under
  767. RISC-OS, but I suspect that because RISC-OS is so new, there will be
  768. lots for us all to learn Ö hence this column.We really need a volunteer
  769. to be the editor of this corner Ö someone to whom I can send all the
  770. info and who will then collate it, check it and regurgitate it to me
  771. (preferably via Eureka II for speed). Anyway, Mike Harrison, Matthew
  772. Treagus, Keith Milner and Ting Kuei start us off.
  773. 2.7
  774. Å   Flashing screens Ö Iæve just got hold of the release RISC-OS User
  775. Guide and noticed that it does not seem to mention the fact that in
  776. modes 21, 24 and 28, the screen blanks when accessing floppies, due to
  777. the high DMA rate. Iæm sure many dealers will get calls from worried
  778. users who think that fitting RISC-OS has damaged their machine because
  779. of the screen flashing on and off!
  780. 2.7
  781. Å   Logistix Ö Logistix users must replace the Floating Point Emulator
  782. in the Library of the Log-istix Disc (version 2.50) with the later one
  783. which is supplied with RISC-OS, i.e. FPE version 2.60. It can also be
  784. found on the ABC Compiler Disc. If this is not done Logistix, will not
  785. run correctly.
  786. 2.7
  787. Å   TWIN Ö If, like me, you are annoyed at the delay in loading TWIN
  788. when editing programs, especially with BASIC using TWINO8, make an Obey
  789. file that does the following :
  790. 2.7
  791. Set Run$Path Ram:,<Run$Path>
  792. 2.7
  793. Copy Twin Ram:Twin f~c
  794. 2.7
  795. (Ensure that your configured RamFS size is big enough first!). After
  796. running this, Twin will be instantly loaded from Ram Disk. You can of
  797. course also include in the file a *Key command to define your favourite
  798. function key to call Twin, e.g.
  799. 2.7
  800.  Key 1 |UTWINO8|M
  801. 2.7
  802. For BASIC. The |U deletes any crud which may have been on the command
  803. line before you hit <f1>.
  804. 2.7
  805. Å   Virsuses on RISC-OS!!! Ö I wonder how many people will look at this
  806. in panic. Donæt worry. There is a virus on RISC-OS, even before it is
  807. released, but it is totally harmless. In fact it is quite fun. First, a
  808. brief description of how most viruses work:
  809. 2.7
  810. Most business machines load their operating system from disk. So, in
  811. order to Évirusæ one of these machines, the offending program just
  812. becomes part of the operating system in some way. It copies itself onto
  813. other discs with operating systems on and soon every copy of the OS you
  814. have is öinfectedò.
  815. 2.7
  816. On a sensible computer, such as the Archimedes(!) the operating system
  817. is on ROM, and cannot be altered! Thus if someone decides to write a
  818. virus program, once it is detected, turning the machine off will remove
  819. it. It is, however, possible to install a virus on other files on disc.
  820. This is much more difficult to do, is easier to detect and easier to
  821. remedy. For instance, the !BOOT file is a common file to be found on a
  822. disc, and a virus could conceivably attach onto this, although it would
  823. be very difficult since every !BOOT file is different.
  824. 2.7
  825. I will not disclose how the RISC-OS virus installs itself as it will
  826. only encourage people to write viruses. I will say, however, that once
  827. detected, it is ((very simple)) to remove it with no after effects. If
  828. the virus (which actually originates from Acorn!) appears on your disc,
  829. not much actually happens╔ or at least it appears that way. You are
  830. using the desktop as normal and suddenly, a small fish appears on the
  831. screen and swims across, behind all the windows, leaving a trail of
  832. bubbles which rise to the top of the screen and disappear. Several more
  833. fish swim backwards and forwards on the desktop until the machine is
  834. reset. This virus is totally harmless, the only ill effect is to use up
  835. a bit of processor time! In fact, I have installed it deliberately as it
  836. is quite relaxing!
  837. 2.7
  838. Another virus we have heard of is the FF8 virus which adds itself to
  839. filetype FF8 files. It displays a message and prevents the affected file
  840. from running on the 13th of the month.This it is a real pain if you are
  841. not careful, i.e. if you forget to turn the computer off before running
  842. a new program!  There is a detector program available (downloadable from
  843. area 2 on Eureka II) but it will only check for the existence of the
  844. virus and will not destroy it.
  845. 2.7
  846. Å   Manuals Ö Q: When RISC-OS is available, does it mean that the
  847. manuals I purchased are outdated or will Acorn publish a cheap edition
  848. to add to it?
  849. 2.7
  850. A: The bulk of the PRM remains correct, however there is a wealth of
  851. brand new information and a new PRM will be out in due course, probably
  852. in three volumes!
  853. 2.7
  854. The following firms have provided help on RISC-OS compatibility. The
  855. information is on the Support Disc that comes with RISC-OS.
  856. 2.7
  857. Abacus Training Ltd
  858. 2.7
  859. Ace Computing
  860. 2.7
  861. Acorn Computers Ltd
  862. 2.7
  863. AVP Computing
  864. 2.7
  865. Cambridge Micro Systems Ltd
  866. 2.7
  867. Clares Micro Supplies Ltd
  868. 2.7
  869. Colton Software
  870. 2.7
  871. Dabs Press
  872. 2.7
  873. Dixon and Dixon
  874. 2.7
  875. Emmerich (Berlon) Ltd
  876. 2.7
  877. GEM Electronics
  878. 2.7
  879. Intelligent Interfaces Ltd
  880. 2.7
  881. Institute of Ophthalmologists
  882. 2.7
  883. Lendac Data Systems Ltd
  884. 2.7
  885. Lingenuity (Lindis International Ltd)
  886. 2.7
  887. Magenta Research Ltd
  888. 2.7
  889. Maze Technology
  890. 2.7
  891. Meadow Computers
  892. 2.7
  893. Minerva Systems Ltd
  894. 2.7
  895. Mitre Software Ltd
  896. 2.7
  897. Oak Professional Software Ltd
  898. 2.7
  899. Silicon Vision Ltd
  900. 2.7
  901. Watford Electronics Ltd
  902.