Author Topic: Making tileset(doors) comptaible...  (Read 948 times)

Legacy_Gelscressor

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Making tileset(doors) comptaible...
« on: July 26, 2010, 11:21:15 pm »


               Hello!

I have been trying to get a few tilesets working together. The main problem I'm encountering is with the doors. That is to say, I know I need to compare the doortypes.2da of each tileset hak and merge them. In the case of conflicts, I need to reassign certain doors to different 2da rows. This is all mangeble, however...correctly edting the .set file is a different story.

From what I've read ( such as here and here), it should only involve changing numbers in the Type= fields. So for instance, if I changed a door's doortypes.2da entry from 201 to 245; I'd just need to find Type=201 somewhere in the .set file and then change it to Type=245. Unfortunately, it isn't that simple; as I can find no Type=201 entry in the .set file. Either the two above links are not telling a complete story or I'm misunderstanding them.

On a perhaps related note; I'm confused by the statement at the second link that claims the doors= entry references to how many doors are in the tile; despite that there are entries such as Doors=1600744796.

To be specific, the .set file I'm trying to alter is from senemenelas' seasonal forest add-on.

Help/advice would be greatly appreciated.
               
               

               


                     Modifié par Gelscressor, 26 juillet 2010 - 10:30 .
                     
                  


            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #1 on: July 27, 2010, 02:09:23 am »


               You need to open the set file I think and manually go through each tile (which can be a big job)  and check to see if it has a door and then see which number it is.  I seem to remember doing something like this a long time ago and it took quite some time.  I thought it was the type myself but it's been a good 2 years since I've done any tileset merges.



I'll look into it later if no one has helped you.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #2 on: July 27, 2010, 03:14:06 am »


               

[TILE1570]
Model=txr51_w25_01
WalkMesh=msb01
TopLeft=grass
TopLeftHeight=0
TopRight=grass
TopRightHeight=0
BottomLeft=gras3
BottomLeftHeight=0
BottomRight=gras3
BottomRightHeight=0
Top=
Right=
Bottom=Corridor
Left=
MainLight1=1
MainLight2=1
SourceLight1=1
SourceLight2=1
AnimLoop1=1
AnimLoop2=1
AnimLoop3=1
Doors=1
Sounds=0
PathNode=N
Orientation=180
ImageMap2D=txrm94_R11

[TILE1570DOOR0]
Type=53
X=0.00
Y=1.15
Z=0.00
Orientation=180.0

I'm almost positive you just simply have to change the Type from the old number to the new one. Looking at both of those posts you listed seems to indicate so.  If you can't find a door number in a set file, it might be the door was never used.
               
               

               


                     Modifié par Calvinthesneak, 27 juillet 2010 - 02:26 .
                     
                  


            

Legacy_Estelindis

  • Hero Member
  • *****
  • Posts: 935
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #3 on: July 27, 2010, 03:39:40 am »


               Gelscressor, you are quite right about the method.  As you see, though, it only works if the tilesets you're working with had correct door entries in the first place.

If not, hopefully at least doors are assigned (even if not to the correct numbers), so you can find which tiles have doors quickly by running a Ctrl+F on DOOR0, DOOR1, etc.  Each time you find a door entry, note the tile model - in Calvin's example, we see tile number 1570 has a door, and its model name is txr51_w25_01...  So, open up the hakpak in NWExplorer and see what that tile looks like.  That should show you the doorframe that needs to be filled, so you choose the right doortype and replace whatever doortype number was there before in the tile's door entry.  (Doortype 0 is a generic door slot; the rest are tileset-specific doors.  But I imagine you already know this!)

This may take a while, unfortunately.  If there's a quicker way, though, I can't think of it right now.

Gelscressor wrote...
On a perhaps related note; I'm confused
by the statement at the second link that claims the doors= entry
references to how many doors are in the tile; despite that there are
entries such as Doors=1600744796.

I'm not sure that I understand what you're saying/asking here.  Anyway, yes, the entry Doors=0 (or whatever) indicates how many doors are in the tile.   You should certainly never see such a large number as you quote.  The default number is zero.  Off the top of my head, I cannot ever recall seeing more than three.
               
               

               


                     Modifié par Estelindis, 27 juillet 2010 - 02:50 .
                     
                  


            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #4 on: July 27, 2010, 03:42:40 am »


               I went through the entire set file for that hak and didn't see anything out of the ordinary. If a number is missing, it is probably not used. Sometimes legacy sometimes simply forgotten or creator didn't like the look. Without opening the doortype.2da, it seems your custom doors will fall in the 1070 range and the 1350 range, but there's a lot of doors in that set.

You seem to be doing everything right from what I'm seeing. Run your search for Type= and modify numbers where you had comflict to your new numbers. If a number does not show up, it may be optional and linked to the tileset via genericdoors.2da. All entries in doortypes do requipre you provide a tilset identifier (ie TTRR) which is used as internal identifier.

Beyond that you'll want someone who's built a few tilesets to explain the rest. Six or Estelendis can probably provide you better dirty details.

EDIT:  While I'm typing, voila.
               
               

               


                     Modifié par Calvinthesneak, 27 juillet 2010 - 02:43 .
                     
                  


            

Legacy_Estelindis

  • Hero Member
  • *****
  • Posts: 935
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #5 on: July 27, 2010, 04:21:29 am »


               ...And yet I understand this less than you do, since you went to the trouble of going through the whole set file.  Fair play to you!
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #6 on: July 27, 2010, 05:21:13 am »


               I've had to merge seven different tielsets at once, you just learn as you go.  Understanding the .set file is easy enough, I can surprisingly follow the code like structures of things like 2das, set files, even ASCII MDL format well enough.  I don't do so well with the graphical components.  Which isn't to say I don't understand them at all, just I've never put my creative talent towards developing new content.  More often than not I just organize things for builders and players so that everything plays nice and words as should be intended.
               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #7 on: July 27, 2010, 06:01:32 am »


               

Gelscressor wrote...

On a perhaps related note; I'm confused by the statement at the second link that claims the doors= entry references to how many doors are in the tile; despite that there are entries such as Doors=1600744796.


If I'm not mistaken this is an error that was caused by a .set editor.  These can be changed to "Doors=nn" where nn will equal the number of door entries that follow that particular tile.

'Posted
MDA
               
               

               
            

Legacy_Gelscressor

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #8 on: July 28, 2010, 01:19:10 am »


               Thanks for anwsers to my queries everybody. What Estelindis suggests sounds like it could work.

I'll post a message reporting my success or failure once I'm able to test it out.
               
               

               
            

Legacy_Gelscressor

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #9 on: August 05, 2010, 04:11:19 pm »


               ...So I've tried doing what Estelindis suggested, but I've decided to simply change around the doors of other tilesets in the doortypes.2da and the relevent .set files. Not that the method suggested wasn't working, the other was just easier to do in the end. Thanks again for the help.
               
               

               
            

Legacy_Estelindis

  • Hero Member
  • *****
  • Posts: 935
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #10 on: August 05, 2010, 05:05:41 pm »


               I'm glad it worked out for you, in a roundabout sort of way.  '<img'>
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Making tileset(doors) comptaible...
« Reply #11 on: August 06, 2010, 03:01:39 am »


               Glad you got it working!