Home » Archimedes archive » Acorn User » AU 1996-Xmas.adf » Regulars » StarInfo/Rawle/!Elements/Adding

StarInfo/Rawle/!Elements/Adding

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-Xmas.adf » Regulars
Filename: StarInfo/Rawle/!Elements/Adding
Read OK:
File size: 077C bytes
Load address: 0000
Exec address: 0000
File contents
ELEMENTS
Jonathan Rawle, January 1996



Editing data files
------------------

The text and draw files can simply be edited when displayed, and saved back
in the same place.


Adding extra data files
-----------------------

Not all elements have have draw and text files associated with them. But it
is possible to add files for these elements.

Within the !Elements directory, there are four subdirectories: Draw, Draw+,
Text and Text+. 

� Each of these may contain up to 77 files (Acorn's restriction, not mine!)
� There may be a file for a particular element in each directory (4 files in
  total). If, for example, there was a file called Hydrogen in both the Text
  and Text+ directories, then both files would be loaded when the text icon
  in the element data window is clicked upon.
� There does not have to be a file for an element in Text or Draw, for there
  to be one in Text+ or Draw+. !Elements will look in both directories for
  files. This allows there to be at least one text and one draw file for
  each of the 109 elements.
� The files can be of any type you wish- they could be DTP or sprite files,
  for example, or even applications or whole directories of files.
� Files for elements with names longer than 10 characters can simply have
  their filenames truncated to 10 characters. For example, Praseodymium
  becomes Praseodymi. (The computer should truncate the filenames
  automatically. If not, have a look at !Configure, or type '*Configure
  Truncate on' at the command line.)

You may have noticd that the text and draw icons in the element data window
are 'greyed out' when no files exist. If you simply save new files, these
icons will still be greyed out. To prevent this, you must click on the file
'Install' in the !Elements directory after you have created any new files. 
(If Elements is already loaded, it will not recoignise the new files until 
it is quit and re-loaded).
00000000  45 4c 45 4d 45 4e 54 53  0a 4a 6f 6e 61 74 68 61  |ELEMENTS.Jonatha|
00000010  6e 20 52 61 77 6c 65 2c  20 4a 61 6e 75 61 72 79  |n Rawle, January|
00000020  20 31 39 39 36 0a 0a 0a  0a 45 64 69 74 69 6e 67  | 1996....Editing|
00000030  20 64 61 74 61 20 66 69  6c 65 73 0a 2d 2d 2d 2d  | data files.----|
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 0a  |--------------..|
00000050  54 68 65 20 74 65 78 74  20 61 6e 64 20 64 72 61  |The text and dra|
00000060  77 20 66 69 6c 65 73 20  63 61 6e 20 73 69 6d 70  |w files can simp|
00000070  6c 79 20 62 65 20 65 64  69 74 65 64 20 77 68 65  |ly be edited whe|
00000080  6e 20 64 69 73 70 6c 61  79 65 64 2c 20 61 6e 64  |n displayed, and|
00000090  20 73 61 76 65 64 20 62  61 63 6b 0a 69 6e 20 74  | saved back.in t|
000000a0  68 65 20 73 61 6d 65 20  70 6c 61 63 65 2e 0a 0a  |he same place...|
000000b0  0a 41 64 64 69 6e 67 20  65 78 74 72 61 20 64 61  |.Adding extra da|
000000c0  74 61 20 66 69 6c 65 73  0a 2d 2d 2d 2d 2d 2d 2d  |ta files.-------|
000000d0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
000000e0  0a 0a 4e 6f 74 20 61 6c  6c 20 65 6c 65 6d 65 6e  |..Not all elemen|
000000f0  74 73 20 68 61 76 65 20  68 61 76 65 20 64 72 61  |ts have have dra|
00000100  77 20 61 6e 64 20 74 65  78 74 20 66 69 6c 65 73  |w and text files|
00000110  20 61 73 73 6f 63 69 61  74 65 64 20 77 69 74 68  | associated with|
00000120  20 74 68 65 6d 2e 20 42  75 74 20 69 74 0a 69 73  | them. But it.is|
00000130  20 70 6f 73 73 69 62 6c  65 20 74 6f 20 61 64 64  | possible to add|
00000140  20 66 69 6c 65 73 20 66  6f 72 20 74 68 65 73 65  | files for these|
00000150  20 65 6c 65 6d 65 6e 74  73 2e 0a 0a 57 69 74 68  | elements...With|
00000160  69 6e 20 74 68 65 20 21  45 6c 65 6d 65 6e 74 73  |in the !Elements|
00000170  20 64 69 72 65 63 74 6f  72 79 2c 20 74 68 65 72  | directory, ther|
00000180  65 20 61 72 65 20 66 6f  75 72 20 73 75 62 64 69  |e are four subdi|
00000190  72 65 63 74 6f 72 69 65  73 3a 20 44 72 61 77 2c  |rectories: Draw,|
000001a0  20 44 72 61 77 2b 2c 0a  54 65 78 74 20 61 6e 64  | Draw+,.Text and|
000001b0  20 54 65 78 74 2b 2e 20  0a 0a 8f 20 45 61 63 68  | Text+. ... Each|
000001c0  20 6f 66 20 74 68 65 73  65 20 6d 61 79 20 63 6f  | of these may co|
000001d0  6e 74 61 69 6e 20 75 70  20 74 6f 20 37 37 20 66  |ntain up to 77 f|
000001e0  69 6c 65 73 20 28 41 63  6f 72 6e 27 73 20 72 65  |iles (Acorn's re|
000001f0  73 74 72 69 63 74 69 6f  6e 2c 20 6e 6f 74 20 6d  |striction, not m|
00000200  69 6e 65 21 29 0a 8f 20  54 68 65 72 65 20 6d 61  |ine!).. There ma|
00000210  79 20 62 65 20 61 20 66  69 6c 65 20 66 6f 72 20  |y be a file for |
00000220  61 20 70 61 72 74 69 63  75 6c 61 72 20 65 6c 65  |a particular ele|
00000230  6d 65 6e 74 20 69 6e 20  65 61 63 68 20 64 69 72  |ment in each dir|
00000240  65 63 74 6f 72 79 20 28  34 20 66 69 6c 65 73 20  |ectory (4 files |
00000250  69 6e 0a 20 20 74 6f 74  61 6c 29 2e 20 49 66 2c  |in.  total). If,|
00000260  20 66 6f 72 20 65 78 61  6d 70 6c 65 2c 20 74 68  | for example, th|
00000270  65 72 65 20 77 61 73 20  61 20 66 69 6c 65 20 63  |ere was a file c|
00000280  61 6c 6c 65 64 20 48 79  64 72 6f 67 65 6e 20 69  |alled Hydrogen i|
00000290  6e 20 62 6f 74 68 20 74  68 65 20 54 65 78 74 0a  |n both the Text.|
000002a0  20 20 61 6e 64 20 54 65  78 74 2b 20 64 69 72 65  |  and Text+ dire|
000002b0  63 74 6f 72 69 65 73 2c  20 74 68 65 6e 20 62 6f  |ctories, then bo|
000002c0  74 68 20 66 69 6c 65 73  20 77 6f 75 6c 64 20 62  |th files would b|
000002d0  65 20 6c 6f 61 64 65 64  20 77 68 65 6e 20 74 68  |e loaded when th|
000002e0  65 20 74 65 78 74 20 69  63 6f 6e 0a 20 20 69 6e  |e text icon.  in|
000002f0  20 74 68 65 20 65 6c 65  6d 65 6e 74 20 64 61 74  | the element dat|
00000300  61 20 77 69 6e 64 6f 77  20 69 73 20 63 6c 69 63  |a window is clic|
00000310  6b 65 64 20 75 70 6f 6e  2e 0a 8f 20 54 68 65 72  |ked upon... Ther|
00000320  65 20 64 6f 65 73 20 6e  6f 74 20 68 61 76 65 20  |e does not have |
00000330  74 6f 20 62 65 20 61 20  66 69 6c 65 20 66 6f 72  |to be a file for|
00000340  20 61 6e 20 65 6c 65 6d  65 6e 74 20 69 6e 20 54  | an element in T|
00000350  65 78 74 20 6f 72 20 44  72 61 77 2c 20 66 6f 72  |ext or Draw, for|
00000360  20 74 68 65 72 65 0a 20  20 74 6f 20 62 65 20 6f  | there.  to be o|
00000370  6e 65 20 69 6e 20 54 65  78 74 2b 20 6f 72 20 44  |ne in Text+ or D|
00000380  72 61 77 2b 2e 20 21 45  6c 65 6d 65 6e 74 73 20  |raw+. !Elements |
00000390  77 69 6c 6c 20 6c 6f 6f  6b 20 69 6e 20 62 6f 74  |will look in bot|
000003a0  68 20 64 69 72 65 63 74  6f 72 69 65 73 20 66 6f  |h directories fo|
000003b0  72 0a 20 20 66 69 6c 65  73 2e 20 54 68 69 73 20  |r.  files. This |
000003c0  61 6c 6c 6f 77 73 20 74  68 65 72 65 20 74 6f 20  |allows there to |
000003d0  62 65 20 61 74 20 6c 65  61 73 74 20 6f 6e 65 20  |be at least one |
000003e0  74 65 78 74 20 61 6e 64  20 6f 6e 65 20 64 72 61  |text and one dra|
000003f0  77 20 66 69 6c 65 20 66  6f 72 0a 20 20 65 61 63  |w file for.  eac|
00000400  68 20 6f 66 20 74 68 65  20 31 30 39 20 65 6c 65  |h of the 109 ele|
00000410  6d 65 6e 74 73 2e 0a 8f  20 54 68 65 20 66 69 6c  |ments... The fil|
00000420  65 73 20 63 61 6e 20 62  65 20 6f 66 20 61 6e 79  |es can be of any|
00000430  20 74 79 70 65 20 79 6f  75 20 77 69 73 68 2d 20  | type you wish- |
00000440  74 68 65 79 20 63 6f 75  6c 64 20 62 65 20 44 54  |they could be DT|
00000450  50 20 6f 72 20 73 70 72  69 74 65 20 66 69 6c 65  |P or sprite file|
00000460  73 2c 0a 20 20 66 6f 72  20 65 78 61 6d 70 6c 65  |s,.  for example|
00000470  2c 20 6f 72 20 65 76 65  6e 20 61 70 70 6c 69 63  |, or even applic|
00000480  61 74 69 6f 6e 73 20 6f  72 20 77 68 6f 6c 65 20  |ations or whole |
00000490  64 69 72 65 63 74 6f 72  69 65 73 20 6f 66 20 66  |directories of f|
000004a0  69 6c 65 73 2e 0a 8f 20  46 69 6c 65 73 20 66 6f  |iles... Files fo|
000004b0  72 20 65 6c 65 6d 65 6e  74 73 20 77 69 74 68 20  |r elements with |
000004c0  6e 61 6d 65 73 20 6c 6f  6e 67 65 72 20 74 68 61  |names longer tha|
000004d0  6e 20 31 30 20 63 68 61  72 61 63 74 65 72 73 20  |n 10 characters |
000004e0  63 61 6e 20 73 69 6d 70  6c 79 20 68 61 76 65 0a  |can simply have.|
000004f0  20 20 74 68 65 69 72 20  66 69 6c 65 6e 61 6d 65  |  their filename|
00000500  73 20 74 72 75 6e 63 61  74 65 64 20 74 6f 20 31  |s truncated to 1|
00000510  30 20 63 68 61 72 61 63  74 65 72 73 2e 20 46 6f  |0 characters. Fo|
00000520  72 20 65 78 61 6d 70 6c  65 2c 20 50 72 61 73 65  |r example, Prase|
00000530  6f 64 79 6d 69 75 6d 0a  20 20 62 65 63 6f 6d 65  |odymium.  become|
00000540  73 20 50 72 61 73 65 6f  64 79 6d 69 2e 20 28 54  |s Praseodymi. (T|
00000550  68 65 20 63 6f 6d 70 75  74 65 72 20 73 68 6f 75  |he computer shou|
00000560  6c 64 20 74 72 75 6e 63  61 74 65 20 74 68 65 20  |ld truncate the |
00000570  66 69 6c 65 6e 61 6d 65  73 0a 20 20 61 75 74 6f  |filenames.  auto|
00000580  6d 61 74 69 63 61 6c 6c  79 2e 20 49 66 20 6e 6f  |matically. If no|
00000590  74 2c 20 68 61 76 65 20  61 20 6c 6f 6f 6b 20 61  |t, have a look a|
000005a0  74 20 21 43 6f 6e 66 69  67 75 72 65 2c 20 6f 72  |t !Configure, or|
000005b0  20 74 79 70 65 20 27 2a  43 6f 6e 66 69 67 75 72  | type '*Configur|
000005c0  65 0a 20 20 54 72 75 6e  63 61 74 65 20 6f 6e 27  |e.  Truncate on'|
000005d0  20 61 74 20 74 68 65 20  63 6f 6d 6d 61 6e 64 20  | at the command |
000005e0  6c 69 6e 65 2e 29 0a 0a  59 6f 75 20 6d 61 79 20  |line.)..You may |
000005f0  68 61 76 65 20 6e 6f 74  69 63 64 20 74 68 61 74  |have noticd that|
00000600  20 74 68 65 20 74 65 78  74 20 61 6e 64 20 64 72  | the text and dr|
00000610  61 77 20 69 63 6f 6e 73  20 69 6e 20 74 68 65 20  |aw icons in the |
00000620  65 6c 65 6d 65 6e 74 20  64 61 74 61 20 77 69 6e  |element data win|
00000630  64 6f 77 0a 61 72 65 20  27 67 72 65 79 65 64 20  |dow.are 'greyed |
00000640  6f 75 74 27 20 77 68 65  6e 20 6e 6f 20 66 69 6c  |out' when no fil|
00000650  65 73 20 65 78 69 73 74  2e 20 49 66 20 79 6f 75  |es exist. If you|
00000660  20 73 69 6d 70 6c 79 20  73 61 76 65 20 6e 65 77  | simply save new|
00000670  20 66 69 6c 65 73 2c 20  74 68 65 73 65 0a 69 63  | files, these.ic|
00000680  6f 6e 73 20 77 69 6c 6c  20 73 74 69 6c 6c 20 62  |ons will still b|
00000690  65 20 67 72 65 79 65 64  20 6f 75 74 2e 20 54 6f  |e greyed out. To|
000006a0  20 70 72 65 76 65 6e 74  20 74 68 69 73 2c 20 79  | prevent this, y|
000006b0  6f 75 20 6d 75 73 74 20  63 6c 69 63 6b 20 6f 6e  |ou must click on|
000006c0  20 74 68 65 20 66 69 6c  65 0a 27 49 6e 73 74 61  | the file.'Insta|
000006d0  6c 6c 27 20 69 6e 20 74  68 65 20 21 45 6c 65 6d  |ll' in the !Elem|
000006e0  65 6e 74 73 20 64 69 72  65 63 74 6f 72 79 20 61  |ents directory a|
000006f0  66 74 65 72 20 79 6f 75  20 68 61 76 65 20 63 72  |fter you have cr|
00000700  65 61 74 65 64 20 61 6e  79 20 6e 65 77 20 66 69  |eated any new fi|
00000710  6c 65 73 2e 20 0a 28 49  66 20 45 6c 65 6d 65 6e  |les. .(If Elemen|
00000720  74 73 20 69 73 20 61 6c  72 65 61 64 79 20 6c 6f  |ts is already lo|
00000730  61 64 65 64 2c 20 69 74  20 77 69 6c 6c 20 6e 6f  |aded, it will no|
00000740  74 20 72 65 63 6f 69 67  6e 69 73 65 20 74 68 65  |t recoignise the|
00000750  20 6e 65 77 20 66 69 6c  65 73 20 75 6e 74 69 6c  | new files until|
00000760  20 0a 69 74 20 69 73 20  71 75 69 74 20 61 6e 64  | .it is quit and|
00000770  20 72 65 2d 6c 6f 61 64  65 64 29 2e              | re-loaded).|
0000077c