Author Topic: Help finding textures  (Read 376 times)

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Help finding textures
« on: October 28, 2012, 04:28:10 pm »


               So annoying! ':crying:'

Well, here's the help I need. I'm trying to remove the Burned Barn from the following hak - http://nwvault.ign.c...d=46806&id=7634

I've uncompressed it to a directory.

I've found its location in the placeables.2da and removed just this line and created a test HAK:

"Structure: Barn 2, Burnt (NWN2)*"                           ****         nw2barn2brn             ****           ****             ****             ****             19               1              0           ****        ****             1         


I've removed the following files from the NWN2 Rural Hak and added it into the test HAK:

plc_br_barnbrn.tga
plc_br_barnbrn.dds
nw2barnbrn.pwk
nw2barnbrn.mdl

When I create a test module, and create the placeable, the placeable appears but it's all WHITE.

I've tried to view the .pwk in a text editor, as I've done in the past when trying to figure out what bitmaps are associated with a specific placeable, but these .pwk files don't reference them.

Just looking at plc_br_barnbrn.tga displays the texture expected to be on the placeable, and the texture does display if I test it with the NWN2Rural.HAK file.

It's just when ripping the barn from the HAK, I'm not getting the expected results.

FP!
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Help finding textures
« Reply #1 on: October 28, 2012, 04:48:28 pm »


               Okay. Some progress, but this old crazy dyed bearded fellow doesn't understand it at all.

So the reference I noted above from the placeables.2da is from the original NWN2 Rural Hak.

As mentioned, the NWN2 Rural Hak works in placing the "Structure: Bar 2, Burnt (NWN2)*" but it didn't when exported.

I came across two other files in the hak:

barnbrn.mdl
barnbrn.pwk

The barnbrn.mdl references the plc_br_barnbrn bitmap files.

So I modified my own placeables.2da file and changed "nw2barn2brn" to "barnbrn".

And ... it works!

But why does it work in the original NWN2 Rural Hak? There is no reference in the NWN2 Rural Hak placeable for "barn2brn".

So how does nw2barn2brn .pwk/.mdl work in the NWN2 Rural Hak but when ripped and made into its own hak, as my first post makes mention of, shows only a WHITE placeable?

In getting it to work, I had to do the following:

Modify the placeables.2da

"Structure: Barn 2, Burnt (NWN2)*"     ****    barn2brn            ****         ****           ****           ****           19             1            0         ****      ****         1         


The test hak now has only these files:

plc_br_barnbrn.tga
plc_br_barnbrn.dds
barn2brn.mdl
barn2brn.pwk

So anyone who has experience with custom content and has some time to kill and would like to explain this, I'd appreciate it.

Otherwise, I have ripped the placeable I wanted.

FP!
               
               

               


                     Modifié par Fester Pot, 28 octobre 2012 - 04:54 .
                     
                  


            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Help finding textures
« Reply #2 on: October 28, 2012, 05:10:46 pm »


               <scratching his...>

The textures look fine. The model looks fine. But I can't find that original line in your first post.
I only find:

"nwn2: Barn 2, burnt"                 ****     barn2brn

What row was the nw2barn2brn?

<...head>
               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
Help finding textures
« Reply #3 on: October 28, 2012, 05:21:34 pm »


               

Fester Pot wrote...
I've tried to view the .pwk in a text editor, as I've done in the past when trying to figure out what bitmaps are associated with a specific placeable, but these .pwk files don't reference them.

Texture references are stored in the .MDL file.  TSL pointed out this cool utility which can help you find what textures a model needs.

Fester Pot wrote...
So how does nw2barn2brn .pwk/.mdl work in the NWN2 Rural Hak but when ripped and made into its own hak, as my first post makes mention of, shows only a WHITE placeable?

I don't really have an answer for this but two things: First, it may be a mistunderstanding. Second, TheGeorge is awesome for converting those models but there are some problems with them, notably the PWK complexity.  Acaos from CEP repaired this to some extent, IIRC, and possibly other issues.  I dove into those raw files from TheGeorge to grab some parts for my airship and there I wouldn't be surprised if you found some minor ****ups that crept in along the way.
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Help finding textures
« Reply #4 on: October 28, 2012, 05:29:37 pm »


               

Rolo Kipp wrote...

<scratching his...>

The textures look fine. The model looks fine. But I can't find that original line in your first post.
I only find:


"nwn2: Barn 2, burnt"                 ****     barn2brn

What row was the nw2barn2brn?

<...head>


I don't even want to answer this but I know I must. ':lol:'

Lots happened in tracking down this placeable very late last night. Now I realize where my gaffe happened after you pointed it out.

You're so right! The original placeables.2da from that hak is correct, and I think I must have placed the CEP's placeable.2da or some other placeable.2da into the NWN2 Rural directory - somehow - because that's all I can think of.

Talk about making a bigger problem than needed from such an oversight. So much trouble and frustration.

OldTimeRadio wrote...
I don't really have an answer for this but two things: First, it may be a mistunderstanding.


*hides under a very big rock*

FP!
               
               

               


                     Modifié par Fester Pot, 28 octobre 2012 - 05:30 .