well it depends on what you used to edit them (sort of a question). Also if you are sure they are now the same format as that to which you took out. So assuming you took it out one way (file cutter with a .bat then dsdcmp with a bat) you would then put it pack with say a hex editor remembering to update the pointer table if it has such. (see below for partial kaph file pointer table)
Though if they are compressed - truly compressed kaph then you would then have to compress them then insert them while updating the pointer table. so then you take your edited files put them in a general bin file that will be your future kaph file. you will need to know the following info to make the kaph file
BCAdata Offset;
BVAdataOffset;
BMAdataOffset;
BTPdataOffset;
BTAdataOffset;
unknownOffset1;
unknownOffset2;
BMDdataOffset
so if you are missing or don't know these terms (BCA, BVA, BMA, BTP, BTA, BMD files) you may be out of luck as you will have to figure out what the unknown offsets actually point to in the kaph files.
I got this info from
http://forum.xentax.com/viewtopic.php?f=16&t=5394.
Hopefully you followed that guide to get the kaph decompressed. If you would please be kind enough to document what you used to edit these files together it might be appreciated by others trying to edit the models as well. (say the bat file code for putting all those files together)
then if assuming you can make the kaph file you need to compress that kaph file then pack the p2 file. but since I don't know the structure of the p2 file I would have to look into it. As I am only going off of what others are saying.
first build a kaph file. second compress said kaph file. Third build .p2 file in hex editor(however that might be).
sorry for meandering. harumph... fast will probably swoop in and make this post look silly again...