Author Topic: [Solved] Doors, Blocking Sight  (Read 645 times)

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« on: November 15, 2012, 07:27:48 pm »


               Hi all,
I've a question about doors. In my module the blocking-sight-function of doors does not work. I think this information is stored in a .dwk file. First I thought it depends on the tileset I use, then I thought it's the specific doormodel. I've tested some doors and none of them blocks sight.

Does anybody of you know how to solve this problem? I've no moddings skills if thats the solution. Is there an easy way, such as putting a .dwk with the correct information in the top hak?

Thank you for your help.
               
               

               


                     Modifié par NineHells, 21 novembre 2012 - 11:02 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #1 on: November 15, 2012, 08:21:09 pm »


               How do you know that the door is not blocking sight?
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #2 on: November 15, 2012, 09:14:23 pm »


               

NineHells wrote...
Does anybody of you know how to solve this problem? I've no moddings skills if thats the solution. Is there an easy way, such as putting a .dwk with the correct information in the top hak?

Thank you for your help.


The dwk is like a walkmesh for the door. All it does is define where walking is not possible. The blocking of sight is handled by the 2da entry of the door and the visibility  entries in the set file. No matter if the entries in the set file are correct or not, the door will not block sight, if the 2da entry says it shouldn't.

So look for the doors you use in the file genericdoors.2da and if the BlockSight isn't set to 1, the doors are not supposed to block sight.
Wrong entries in the set file should have the opposite effect of what you describe. The door will still block sight even if it is open.

Edit: That last part isn't quite right. The door will still block sight even if it is open if the door visibility entries are wrong, but if it is the pathnode that is wrong, it could allow line of sight even if the door is closed.
               
               

               


                     Modifié par Zwerkules, 15 novembre 2012 - 09:19 .
                     
                  


            

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #3 on: November 15, 2012, 10:35:29 pm »


               @henesua: I've checked it ingame. If I enter the floor, all adjacent rooms are visible, although their doors are closed and locked.

I've reworked the genericdoors.2da for testing purposes now. Blocking sight is set on 1 for each door. The genericdoors.2da is in the top hak of my module. The problem still occurs. It takes some seconds and then all rooms are revealed at once. In the first few seconds they are concealed.
               
               

               
            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #4 on: November 15, 2012, 11:01:49 pm »


               <coc king...>

Are you testing it with a very mature character? If you have high enough skills, you can get an awful lot of the layout revealed just sitting there. Or so a rogue of my acquaintance tells me *tries to look innocent*

<...an ear>
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #5 on: November 16, 2012, 12:37:26 am »


               I think the real test would by NPC AI - OnPerception event

I've noticed that you can see through doors in game depending on which side of the door your PC is and the relative position of the camera.
               
               

               
            

Legacy_NWN_baba yaga

  • Hero Member
  • *****
  • Posts: 1944
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #6 on: November 16, 2012, 09:17:14 am »


               can you upload the module areas so we can test it out. If it works normaly for us then something strange is going on with your nwmain.exe maybe?
               
               

               
            

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #7 on: November 16, 2012, 03:46:06 pm »


               I've checked it in an other area with Maxam's Versatile Dungeon tileset. If I only use his VD tileset-hak in a new module, the sight is blocked as it should. In my module with many different HAK's, the sight isn't blocked. Any ideas what makes this happen?

@NWN_baba yaga: I can upload the module areas, but then you have to download the used HAK's too. This seems to be too much work for you (I guess about 700 MB 7zipped + CEP 2.3).
               
               

               
            

Legacy_NWN_baba yaga

  • Hero Member
  • *****
  • Posts: 1944
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #8 on: November 16, 2012, 08:21:04 pm »


               that´s a bit to much sorry @Ninehells. You sure you set all your interior areas to "interior" ?
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #9 on: November 16, 2012, 08:24:04 pm »


               Try this without CEP. And see if you get the same problem. At least we can begin to isolate the problem.
               
               

               
            

Legacy_NWN_baba yaga

  • Hero Member
  • *****
  • Posts: 1944
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #10 on: November 16, 2012, 08:28:48 pm »


               when the same area created with versatile dungeon only but doesnt work correctly within your CEP featured module then we have the bad boy:D. No one else had any issues with CEP modules and broken door related areas?
               
               

               
            

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #11 on: November 16, 2012, 11:53:17 pm »


               The areas are set to interior. The area I initially talked about is created with the [CEP] City Interior 1. But I'll check, if removing the CEP will restore the sightblocking for the VD tileset.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #12 on: November 17, 2012, 12:13:42 am »


               I think a better test would be to make a new module with all of your custom content except CEP.
Then make an area, and test the doors.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #13 on: November 17, 2012, 12:19:29 am »


               I myself would check any scripts you have running on the doors/area/module,   Do you have a auto close door script running by chance.   If so can you post it.
               
               

               
            

Legacy_NineHells

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
[Solved] Doors, Blocking Sight
« Reply #14 on: November 17, 2012, 12:59:08 am »


               @henesua: I just finished as you described. Suprisingly the sight blocking worked, even after I added CEP. So it seems that a script causes this problem.
The scripting is done by an other person. I'll address this issue to him, especially regarding the area/module scripts as Lightfoot8 supposed.