| 1 |
Your local help/news/events/etc files can now be kept separate |
|---|
| 2 |
from those distributed with PennMUSH, and can now be managed as |
|---|
| 3 |
a set of files rather than a single large file. |
|---|
| 4 |
|
|---|
| 5 |
Here's the details: |
|---|
| 6 |
|
|---|
| 7 |
1. The source files for help.txt, news.txt, and events.txt are |
|---|
| 8 |
kept in directories called hlp, nws, and evt respectively. |
|---|
| 9 |
|
|---|
| 10 |
2. Files in those directories which end in .<directoryname> are |
|---|
| 11 |
considered to be part of the text. That is, files in hlp/ |
|---|
| 12 |
which end in .hlp, and files in nws/ which end in .nws |
|---|
| 13 |
will be merged into the final help.txt, news.txt, or whatever. |
|---|
| 14 |
|
|---|
| 15 |
3. When the MUSH is restarted, a 'make' is run in this directory. |
|---|
| 16 |
For if a file in hlp/ is newer than help.txt, it calls |
|---|
| 17 |
compose.sh to rebuild help.txt. If you've got perl on your system, |
|---|
| 18 |
compose.sh will also call index-files.pl to make a 'help index' |
|---|
| 19 |
entry which lists all your help entries. |
|---|
| 20 |
|
|---|
| 21 |
So, if you want to add your own news entries, make a file called |
|---|
| 22 |
nws/local.nws and put 'em there. Or maybe organize it into parts: |
|---|
| 23 |
nws/theme.nws, nws/code.nws, etc. |
|---|
| 24 |
|
|---|
| 25 |
Files distributed with PennMUSH always begin with "penn", so don't |
|---|
| 26 |
start your files with that. |
|---|
| 27 |
|
|---|
| 28 |
You can also add files for "rules" and "index" commands if you |
|---|
| 29 |
compiled them in. The easiest way to do add rules files is |
|---|
| 30 |
to: |
|---|
| 31 |
a) create a directory here called "rules" |
|---|
| 32 |
b) put your rules files there, each ending in .rules |
|---|
| 33 |
c) edit game/txt/Makefile and add rules.txt to the TXT line |
|---|
| 34 |
For index files, do exactly the same process, but replace all references |
|---|
| 35 |
to 'rules' above with 'index'. |
|---|
| 36 |
|
|---|