Bioware Archive V2 > Custom Content and Community Expansion Pack

placeable.2da question

(1/5) > >>

Legacy_Randomdays:


               I'm having a problem with the placeable.2da and I guess I'm missing something.I'm using a CEP 2da with some changes made to add items from other work on the vault and everything has run fine till now. I created a new placeable building and to get it in game I copied an existing line of another building and pasted it on a blank line. I changed 2 entries on the new line to match the new building, the new name in quotes and the name of the mdl file. I placed a small hak with the mdl and textures under the new 2da and ran the editor.

In the editor, I could make a placeable and see and select the new model to it and place it in the world fine. The problem is several already placed item types had their assigned model  changed. A lot of the rocks were changed to bookcases for example. I could pick each object and change the model back to the proper one okay, but when I tried to change the blueprint, it would keep going back to the wrong model after closing and opening the selection again. I also started getting a lot of  access violations errors on nwtoolset.exe as well.

Going back to the 2da and replaceing the new line with a blank line again fixed the problems, but the new item went away of course.

So, what am I doing wrong?  Hopefully its something obvious that I'm not aware of.

Thanks for any help
               
               

               
            

Legacy_Zwerkules:


               Randomdays wrote...

I created a new placeable building and to get it in game I copied an existing line of another building and pasted it on a blank line. I changed 2 entries on the new line to match the new building, the new name in quotes and the name of the mdl file.

In the editor, I could make a placeable and see and select the new model to it and place it in the world fine. The problem is several already placed item types had their assigned model  changed. A lot of the rocks were changed to bookcases for example.
So, what am I doing wrong?  Hopefully its something obvious that I'm not aware of.

Thanks for any help

--- End quote ---

That sounds like you inserted a line between two others.
That would change every single placeable after the one you inserted.
You either have to add the new line after the last line of the 2da or replace another 2da line which you don't need or which is a reserved line or padding.
If you insert it between two others all the following lines will have higher numbers. It doesn't matter what the first number of the line says, it is only there to make the file more readable.
If you insert a line between lines 9 and 10, line 10 will actually become line 11.

To fix this you'll have to remove the line you added and either add it after the last line in the 2da or replace one of the lines from 202 to 229 which are lines reserved for user added content. If the CEP or other placeables you use already used up all of those lines you'll have to add your line to the end of the file.
               
               

               
                     Modifié par Zwerkules, 27 février 2013 - 08:58 .
                     
                  
            

Legacy_Randomdays:


               Not sure what you mean about the 1st number of the line not meaning anything. I understand inserting a line would change things, but does copy paste count as an insert or a replace if I leave the original line number in place? If its an insert, how do you replace a padding line?

I used an existing line with no data in it, 6001 which said "user" , When I copied the old line from 1623 which was "structure log cabin", I copied everything but the old line number and pasted it to the new line number and changed the 2 data values, so isn't that considered replacing the line?

Sorry if I'm dense, not sure how else you would do it.
               
               

               
                     Modifié par Randomdays, 27 février 2013 - 09:05 .
                     
                  
            

Legacy_Zwerkules:


               Randomdays wrote...

I used an existing line with no data in it, 6001 which said "user" , When I copied the old line from 1623 which was "structure log cabin", I copied everything but the old line number and pasted it to the new line number and changed the 2 data values, so isn't that considered replacing the line?

Sorry if I'm dense, not sure how else you would do it.
--- End quote ---

If the old line 6001 was completely replaced by your copied line you did it right, but then it shouldn't have affected any of the other placeables. What you described sounded as if some of the lines have moved.
This can happen if you insert a new line between two others or if you remove a whole line without replacing it by a new line.
You should check which placeables are affected by the changes you made.
For example the evil throne is on line number 184. If the evil throne is okay, then the error is somewhere after line 184. If the evil throne is replaced by another placeable, the error is somewhere before line 184.
Check if the placeable after the line you copied is still okay. Then check if the placeable after line 6001 is okay.

If your text editor shows on which line your cursor is, try placing it on line 6001. There are three lines at the beginning of the 2da file and the numbering starts with 0 so entry 6001 should be on line 6005. If it isn't, there's something wrong with the lines before 6001. If it is higher than 6005 there's one line too much somewhere, if it is lower, one line is missing.
               
               

               
            

Legacy_Nissa_Red:


               What Zwerkules said is 100% correct.

Basically, NWN identifies placeables not by the number that is present on the row that declares them, but by the ACTUAL sequential number of the row.

Let me give you a short example :

placeables.2da

<header> (should never be altered)
0 Armoire
1 Bookshelf
2 Box1

will produce exactly the same result in the toolset/game than :

<header>
10 Armoire
29 Bookshelf
27 Box1

because NWN will always "semantically" read it as the former. If you insert a new row between existing placeables, like this :

<header>
0 Armoire
1 <new custom placeable>
2 Bookshelf
3 Box1

everything past your custom placeable will be shifted in place, which is why you don't recognize your areas anymore, and/or experience crashes.

So what can you do ? Either you find a padding line, to replace it with the definition of your custom placeable, or you add a new line at the very end of your placeables.2da file, so that existing placeables remain untouched (which is still the safest option) :

<header>
0 Armoire
1 Bookshelf
2 Box1
...
<whatever> <new custom placeable>
               
               

               
                     Modifié par Nissa_Red, 27 février 2013 - 09:28 .
                     
                  
            

Navigation

[0] Message Index

[#] Next page

Go to full version