| Message |
The basic idea is that you use the "patch" program that probably is, or should be, installed with Cygwin or Linux.
You can edit the patch files, for example magic.c.pat starts with these lines:
--- magic.c Mon Jun 2 22:46:08 1997
+++ new/magic.c Tue Jun 3 23:46:48 1997
@@ -1175,7 +1175,7 @@
* Vampire spell casting -Thoric
*/
blood = UMAX(1, (mana+4) / 8); /* NPCs don't have PCDatas. -- Altrag */
- if ( IS_VAMPIRE(ch) )
+ if ( IS_VAMPIRE(ch) || IS_DEMON(ch) )
What that is basically saying is, in the file magic.c, around line 1175, for 7 lines, remove (minus) the line:
... and replace it (plus) by this:
if ( IS_VAMPIRE(ch) || IS_DEMON(ch) )
And so on, for the rest of that file.
The general technique is to untar (unzip if you like) the patch archive so all the files are in the "src" directory. Then from a command prompt you would run something like this:
Or possibly, to do all of them:
What that does is effectively feed the file into the patch program, which does its stuff.
However you need to be pretty cautious. These files are dated 1997 as you can see from the first line. If the version of Smaug you are applying them to is not the same, or very similar, to what it was when the patch files were made, it won't find the old lines, and thus cannot replace them by the new ones.
If you are beginning, I would try running SmaugFuss (Fixed Up Smaug Source) without trying to change anything for now. Just get used to what it currently does. The patch files are really coders releasing the differences between a version without their change, and one with it. But if you don't have the version without the change in the first place things are likely to go seriously wrong.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|