Jump to content

Blogs

MDB File Bitflags

Q: Some of the blocks in a MDB file have a 32-bit field in front of the vertex count field, which we assume is a flag bit vector. In most cases it has a value of 0, but occasionally some bits are set. What do they indicate?   A: The bitflags are as follows for skin and rigid packets:   const DWORD NWN2_ALPHA_TEST = 1 << 0; const DWORD NWN2_ALPHA_BLEND = 1 << 1; // #### SHOULD NOT BE USED const DWORD NWN2_ADDITIVE_BLEND = 1 << 2; // #### SHOULD NOT BE USED const DWOR

Rob McGinnis

Rob McGinnis

Ranges.2da and Seeing Stars

Q: Ranges.2da has 2 columns labeled 'PrimaryRange' and 'SecondaryRange' which are apparently only used for perception ranges... Which of these columns affects the seeing range and which hearing (I assume 'Primary' is hearing based on my tests, but I'm not sure)? What values does the PercepRngDefault use? It uses the usual **** entries for default values, but where is that value defined?   A: Primary Range is the Spot range (Visual range) Secondary Range is the Listen range (Hearing range)

Rob McGinnis

Rob McGinnis

Alpha Transparencies in Foliage

Q: Currently I am working on a community download pack containg a large variety of foilage placeables (ferns, shrubs, weeds, flowers, small trees etc.). I am using alpha layers in my textures, and currently have tried dxt5 interpolated alpha (this is what format I use for my foilage in other engines such as UT2003/4) and also dxt1 with alpha, but I get no transparency in the toolset. My models and textures are showing up in the toolset just fine, but the engine seems to ignore the alpha on my d

Rob McGinnis

Rob McGinnis

Walkmesh and Textures and Music. Oh my!

Q: In walkmeshes, each face has a 32-bit flag. We have seen the values 0x0, 0x9, 0x11, 0x21, 0x41 and 0x101. The bottom bit seems to indicate whether the face is walkable or not, but what do the other bits mean?   A: The bit assignments for the walkmesh face flags are: bit 0: walk bit ( 1 = walk, 0 = no walk ) bit 1 - 2: reserved bit 3 - 13: material ( used for footstep sounds, etc... I dont know what will happen if more than one of these are set at the same time. I dont recommend it. )... bi

Rob McGinnis

Rob McGinnis

Restricting Diety Selection and Addign Skills

Q: Is there a way that you can filter the domains available when taking the first level of cleric, based on the deity the player chooses? Torm, for example, might only offer the Good, Sun, War and Healing domains. Is this possible?   A: It is not currently possible to restrict domains based on deity selection.   The Domain GUI code has no knowledge of your deity selection, nor is there any data loaded up on a deity-by-deity basis on what domains are in that deity's portfolio. Also, default

Rob McGinnis

Rob McGinnis

Variable Length, GetEffectInteger and SpellEffectID

Q: How long can a variable name be? How long can a string be?   A: While the runtime virtual machine doesn't have any limits that we could find, the compiler will reject tokens that are longer than 512 characters. So that would probably be the de facto limits of variable or hard coded string length.       Q: What effect information do different values for the Idx parameter give back for GetEffectInteger()? There doesn't appear to be many comments on this function that I can find.   A:

Rob McGinnis

Rob McGinnis

Welcome!

Welcome to the Neverwinter Nights 2 Blog!   Here you will find answers to questions asked on the official Neverwinter Nights 2 Forums and some additional information put out by some of the developers at Obsidian.   With these Blogs we hope to give you some insight into the workings of the game and answer some of the more difficult questions

Rob McGinnis

Rob McGinnis

×
×
  • Create New...