User:Qazmlpok

From NetHackWiki
Revision as of 19:22, 1 May 2010 by Qazmlpok (talk | contribs)
Jump to navigation Jump to search

SLASH'EM is just silly.

http://i42.photobucket.com/albums/e314/qazmlpok/slashem.png

nhtohtml

After discovering this tool on the net, I decided to modify it for use in generating wiki pages using the templates. Instead of generating html files, it now generates wiki markup code that can be pasted into an article on this wiki. Running the script will require Perl, a copy of the Nethack/SLASH'EM source code (other variants won't necessarily work, but it could certainly be modified). It is necessary to modify the script to point to the source installation; search for "$nethome" and asjust the directory; be sure to use forward slashes even on windows. The output also includes the encyclopedia entry and a stub message stating that the article was automatically generated. I modified the output to match the existing standards as closely as I could. Since there are a large number of missing SLASH'EM monster articles, this should be useful to fill in the missing pages, or the Vanilla articles with missing conveyance chances, source references, and attributes.

Some deficiencies:

  • Experience and Difficulty are not available from the source code. The values are available for the vanilla monsters, but I don't know how to calculate them for the missing SLASH'EM monsters.
  • The encyclopedia entry is not formatted very well. I wrapped it in the new template, but I believe manual formatting is still necessary. I don't know of a good way to automatically format it.

And some additions:

  • After discovering how magic resistance works, natural magic resistance is mentioned on the resistances section. I'm surprised it was never mentioned before; I had no idea angels were magic resistant AND are the right size to wear DSM.
  • Similarly, level drain resistance is mentioned. Death magic is mention if the monster specifically is immune to death magic (in SLASH'EM), e.g. the higher angelic beings.
  • Resistance chance is calculated. This is something that was missing from the original nhtohtml (and a good number of articles on this wiki). Telepathy, Teleportitis, and teleport control are also mentioned on the conveyances table, as are several hard-coded specials, like a mind flayer corpse giving +1 intelligence or a chameleon causing polymorph. If the monster never leaves a corpse the conveyances table is blanked, as there is no way to get the intrinsics even if the monster "conveys" them (swallowing attacks do NOT work for this; I've tried)

If anyone has any suggestions on way to improve the output, they'd be appreciated. Here's the full source. Perl is far from my best language, so I'm sure the script contains inefficiencies or unusual code.

http://www.mediafire.com/download.php?5qwzqk0n00t

And sample output:




Encyclopedia Entry

This small, inoffensive-looking snake shares the feared power

of petrification with its distant relatives the cockatrice and

basilisk. Just one touch from its blunt snout can render one

motionless for all eternity.

[ The New Bestiary, Wizard Endlebrook ]


This page is a stub. Should you wish to do so, you can contribute by expanding this page.

A user has suggested improving this page or section as follows:

"This page was automatically generated by a modified version of nhtohtml version 1.9w"