Player Resource Consortium

Neverwinter Nights => General Discussion => Topic started by: PantheraLeo on July 15, 2009, 01:19:59 AM

Title: Flow chart
Post by: PantheraLeo on July 15, 2009, 01:19:59 AM
Well done on still be active!!

Anyone ever workout a flow chart with all the PRC functions?

I asked a few years ago, and the answer was no.

(Basically I know write a simple c++ program to recursively search though the text files for function prototypes and, but that one of those things that would the part of a day or more to code, maybe two to debug, and something I'd rather be lazy about!)

I ask because I'm being super OCD and about a bug with the spell 'Tomb of Light' in ?PRC 3.3G RC1?. Basically it stops short of actually doing anything.

Quote
if((GetAlignmentGoodEvil(oTarget) == ALIGNMENT_EVIL) && (MyPRCGetRacialType(oTarget) == RACIAL_TYPE_OUTSIDER))


I think the problem with 'Tomb of Light' is that it '==' a constant value, 'ALIGNMENT_EVIL'(15?). So when something is not exactly that constant value, even though it may still be evil,  the code is skipping out. I ask because I'm trying to made a rod with with 'unique' powers to test 'stuff', but it's not working.

So I'm having to slog though huge sums of unwieldy code(btw, good job on PRC, but you really need to do a code review! Badly) to find where PRC funnels a modules 'OnActivate' event.

...So...

...Flow chart?
Title: Flow chart
Post by: Stratovarius on July 15, 2009, 07:49:02 AM
Nope, still no flow chart. And that code should work fine, I doubt that is the exact cutout point.
Title: Flow chart
Post by: PantheraLeo on July 15, 2009, 07:49:51 AM
Doxygen and Doxy-Wizard to the rescue. I configured it to include .nss files. (Word of advice if you like a little thing called time don't add the .2da files, or at the least don't include spells.2da)

Big hug to whomever uses the Doxygen tags in their source notes!

May I suggest you splice or use a Doxygen HTML generated page into the standard PRC Manuel, it would make thing easier for many I think. Look what I got with the default options plus telling to to include '*.nss' in the extracted hak files. Surely makes navigating the source mush easier. That's not even half of what Doxygen can do with a little TLC.

Edit: Not seeing the attachment, or error, trying to attach it one more time. Failing that I'll go see what it takes for NWN vault.

Edit2:http:// http://nwvault.ign.com/View.php?view=Other.Detail&id=185067&id=1415
Title: Flow chart
Post by: fluffyamoeba on August 27, 2009, 05:07:55 PM
*raises dead*

Making call graphs of the prc makes coders cry*

(http://i168.photobucket.com/albums/u200/fluffyamoeba/doomed.png)

*and maybe even baby jesus too
Title: Flow chart
Post by: Stratovarius on August 28, 2009, 08:32:38 AM
Yeah, that's why we don't use Doxygen.