Aller au contenu

Photo

How do you edit the placables 2da?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Mr. Versipellis

Mr. Versipellis
  • Members
  • 206 messages
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.

#2
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<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>

#3
henesua

henesua
  • Members
  • 3 883 messages
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 .


#4
Carcerian

Carcerian
  • Members
  • 1 108 messages
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 .


#5
Mr. Versipellis

Mr. Versipellis
  • Members
  • 206 messages
Thanks, I think I've got it sorted. Presumably the same applies to other .2da files?