Author Topic: How do you edit the placables 2da?  (Read 355 times)

Legacy_Mr. Versipellis

  • Full Member
  • ***
  • Posts: 236
  • Karma: +0/-0
How do you edit the placables 2da?
« on: June 19, 2012, 06:27:24 pm »


               I hate to make a whole thread just for this but Google has been farily useless. I'd like to use one of PHoD's placeables in combination with the CEP, but in order to do that, I'll have to edit the 2da to refer to the new placable, I think? Could anyone run me through this? I have absolutely no experience in working with 2das and I'm not even entirely sure what they are.
               
               

               
            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
How do you edit the placables 2da?
« Reply #1 on: June 19, 2012, 07:27:09 pm »


               <getting a bit...>

A 2da (two-dimensional array) is simply a table of data.
The layout of the data differs for each 2da. You can find most of them on the Wiki.
For placeables, look at animecafe. That tells you what each column means in the 2da.

So to add a placeable to your CEP placeables.2da (and put that modified copy in your cep2_custom.hak!):
1) Copy the row (line) of the item from Plush Hyena's 2da to an empty spot in the CEP 2da.
2) Make sure the number in the first column is sequential with the one above (below) it.
3) Save the 2da
4) Wrap up the hak
and
5) Check it out :-)

<... pedantic>
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How do you edit the placables 2da?
« Reply #2 on: June 19, 2012, 07:51:17 pm »


               A handy reference for 2DA's was uploaded by Pstemarie. In his Miscellany Project. I'd allow him to post this, but he's been gone for awhile.
               
               

               


                     Modifié par henesua, 19 juin 2012 - 06:52 .
                     
                  


            

Legacy_Carcerian

  • Hero Member
  • *****
  • Posts: 1655
  • Karma: +0/-0
How do you edit the placables 2da?
« Reply #3 on: June 19, 2012, 10:03:11 pm »


               Have a look in your source folder, there should be a CEP subfolder, such as "C:\\NeverwinterNights\\NWN\\source\\CEP24 Source". If not, open cep2_top_v24.hak with C:\\NeverwinterNights\\NWN\\utils\\nwhak.exe and extract the 2da from there.

Open the placeables.2da with notepad, add the lines for PHODs stuff at the end, and be sure they are sequentially numbered after the last CEP lines. ALWAYS add new content last, unless it overrides old content, so you dont break existing objects in your mod by inserting content (and thus offsetting old placable appearances, a messy affair).

Save, and add your new to CEP_Custom.hak or your own top hak. Either way other users will need a copy of the file containing your modified 2das to see the new content.
               
               

               


                     Modifié par Carcerian, 19 juin 2012 - 09:09 .
                     
                  


            

Legacy_Mr. Versipellis

  • Full Member
  • ***
  • Posts: 236
  • Karma: +0/-0
How do you edit the placables 2da?
« Reply #4 on: June 23, 2012, 03:30:40 pm »


               Thanks, I think I've got it sorted. Presumably the same applies to other .2da files?