Mod2html is perl script that reads a NWN module file and generates a html directory based on a user's template. It can support all properties found within a module (as well as associated haks, tlks, 2das, etc). Much of this script is based on John Klar�s (paladin\@projectplasma.com) Vespucci script.
Some sample output of a builder template can be found at:
http://eeg.game-host.org/mod2html/BuilderFrame/
and a DM template can be found at:
http://eeg.game-host.org/mod2html/DMguide/
It does require you to install perl (instructions provided)
Posted by nwnmema at 2012-04-04 09:33:51 Voted 10.00 on 04/04/12
Forgot to vote for this, nice to use and makes it much easier to create docs.
Posted by Relexx at 2009-06-14 20:52:00 Voted 9.00 on 06/14/09
This is cool. Love the fact that it links the transitions to adjoining maps ...
Posted by Jimmy_Buffit at 2008-05-14 06:02:39 Voted 10.00 on 05/14/08
Thanks for posting such a great tool. I couldn't get it to work with the newest Active Perl 5.10 but it works fine using an older version "Active Perl 5.8.7 build 815". _________________________ Currently stalking the dungeons of ForkWest.com
Posted by DaneBramage at 2007-03-14 07:02:43 Voted 9.00 on 03/14/07
great utility. especially from a DMs perspective. makes creating a DM Guide for the mod very easy.
my only wish, is that the images were higher resolution and showed placeables and creatures. other then that... it's great. _________________________ Do not meddle in the affairs of dragons.
You are crunchy and taste good with ketchup.
Posted by McSpire at 2006-08-21 09:01:31 Voted 9.00 on 08/21/06
9 Points from me. This is exactly what I searched all the time.
But now... I have the Problem that it doesn't geht out the tga from the DLA-BuilderBaser which I used for the most of my areas. Hope somebody can help me. Here the error:
>Just wondering if you were planning on making a version of this for NWN2 when it arrives?
I've rewritten most of the code in C# so that it can become a plugin for the nwn2 editor. I'm switching to the "stringTemplate" class instead of perl/asp. The tricky part might be converting the outdoor heightmaps to bitmap images.
The next step is using templates or maybe c# code snippets with an API to modify the design. e.g. foreach area, set the heartbeat script to "xxxx" and add the area name to a list stored in the module's variables.
>Also, is there a way this could show placeables, waypoints, triggers???
It is 100% controlled by the template. The "area" sub-templates (like dmg_area.xml) iterate over the objects. You can pretty much just copy the "Encounter" loop and change it to "Placeable". I did break triggers up into "Trap", "Transition", and "GenTrigger". There are subtemplates for waypoints & transitions. If you know what you want and have trouble making it, send me a message and I can help you out.
Posted by Accerak at 2006-07-09 20:05:15 Voted 9.00 on 04/16/06
Just wondering if you were planning on making a version of this for NWN2 when it arrives? Also, is there a way this could show placeables, waypoints, triggers??? Thanks again for putting this up. I find it very handy for the DM guide portion in particular. _________________________ "Victory is built from the ashes of your enemies." - unknown
It should work on any system with perl and the correct libraries (active perl includes the right ones). I only tested it on Linux and the PC, but perl is pretty good about running. You might need to set some associations or something [not a mac user :)] Maybe drag the mod2html.pl icon onto the perl icon?
Posted by harkker at 2006-04-16 17:12:41 Voted 10.00 on 04/16/06
Awesome work! I love it! _________________________ The World of Karador Rocks! Link
Posted by harkker at 2006-04-16 15:44:30 Voted 10.00 on 04/16/06
hmmmm I think i figured this out. yup it seems to be working..... sweet!
_________________________ The World of Karador Rocks! Link
Posted by vallis at 2006-04-16 15:30:29 Voted 9.00 on 04/16/06
Nifty utility. And easily customizable (assuming one knows PERL). Thanks for posting it.
V.
Posted by harkker at 2006-04-16 15:26:05 Voted 10.00 on 04/16/06
This appears to be exactly what I was looking for and will save me from countless hours of work. But I can't seem to get it to work i have downloaded perl (although i have no experience with it. when i click on the mod2html.pl it creates a small window than disappears. Perhaps if you wouldn't mind explaining the "open a �command prompt� and cd to the directory where you found this documentation." part a little more. I would really be grateful. (Thank you for helping a newb) _________________________ The World of Karador Rocks! Link
Very nice :) Rather than listing all the stats for creatures right there, maybe they should all be in a separate page, indexed by resref.
Also, in the DM example, it seems to be missing most of the bottom row of the minimap.
Posted by Accerak at 2006-04-16 10:28:32 Voted 9.00 on 04/16/06
Excellent tool you've created here. Thanks for putting it up on the vault. _________________________ "Victory is built from the ashes of your enemies." - unknown
That is exactly what this script is doing. All data is "extracted" from the module. You can modify the templates to generate whatever data you want, in any format you want. (it is not limited to HTML, that just seemed the most useful)
>It would be useful if the user could select data to extract so that they could build custom reports.
>For example, so they could generate a list of all the area tags, or all items, by area or by module etc.
If you want a file with a list of area tags: (add to templates dir)
area "" has tag:
Debugging template is a little tricky right now. (messages have eval line numbers, not template lines.
I also noticed that some tiles on the bottom of the jpeg go blank when the scale is set too high. I'll look into that.
Next I plan to rewrite this in C#. (easier for people to run, but mostly because the NWN2 editor will allow .NET plugins) I'll have to switch template formats (Parr's stringTemplates most likely)
I'll add some more "lint" checks too. Maybe a set of persistence checks.
Posted by friendlyfire at 2006-04-16 04:26:13 Voted 9.00 on 04/16/06
Very clever, I like it. It would be useful if the user could select data to extract so that they could build custom reports. For example, so they could generate a list of all the area tags, or all items, by area or by module etc.
Posted by friendlyfire at 2006-04-16 04:24:02 Voted 9.00 on 04/16/06
very cool idea, maybe some more user control on what's output might be useful.
_________________________ - Endoora -
The Glory and Freedom Chronicles
A Neverwinter Nights Persistent World Project
*****
Development resumed as of 2009-JUN.
Hail all inspirational contributors!
*****