Author Topic: Editing a clothing hak that has a erf with it?  (Read 547 times)

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« on: June 06, 2011, 09:17:15 pm »


               So I'm working on a combined hak for a friend's server.

However, we don't want to use ALL the parts from those haks, so I've been taking out unwanted parts from one of the haks....
But doing this makes it not work.
So my guess is the hak and erf need to match perfectly, as unmodified hak and erf work perfectly well.

Where I need help is I have no idea how to modify that erf so it matches the trimmed down hak. I have opened the erf in nwnviewer to have a look at it, but I can't see enough similarities with the hak to work anything out.

Can anyone help with this?

Before anyone asks, the hak I'm currently working on is kaczor's Modern legs pack.
The server is a medieval ones, but we figured quite a few parts (thigh armor plates, strapped boots, and many more) didn't look too modern and could be used.

There are a few other haks we were interested in that come with erfs however that we might want to not use in their entirety.
               
               

               


                     Modifié par Arknin, 07 juin 2011 - 01:10 .
                     
                  


            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #1 on: June 09, 2011, 05:01:53 am »


               Please tell me if I'm being hard to understand.

I know I don't post here much but that's mostly because I'm usually quite able to find answers to all my questions and problems with a bit of google  agic. No such luck with this particular issue however, so I figured I would ask for help this time.

Needless to say, any trimmed down hak (and in fact any hak, period) that will be put in this combined hak will have proper credits given to their creators (you might have noticed I even named kaczor in the above link)..

I say all this because I know some communities can be defensive (sometimes with good reason, unfortunately) about the random unproven stranger asking for help toying with another's work.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #2 on: June 09, 2011, 06:24:30 am »


               Ok I took a quick look.  The erf simply seems to contain blueprints for various items that use the models, you do not need them to use the models.


The models in the hak are the important part.  You may have to do some renumbering to get them to fit with your existing items.  Just leave the erf out, it's just .uti files (think it's universal template item).
               
               

               
            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #3 on: June 09, 2011, 04:03:18 pm »


               Thanks for the reply.

That is what I thought. However, I tried using the modified hak alone with absolutely nothing else in a test module and it didn't work. Tried with the erf, didn't work. Tried the UNmodified hak with the erf, it worked!

And when I say "modified" I mean I took out some parts, nothing more. I didn't change any numbers (it doesn't seem like I would need to, though I haven't been through all the haks yet).

That's how I came to the conclusion that the erf was needed. If it isn't, why would simply taking parts out not work? (I did take them out of the 2da as well.. not deleted the line just replaced the values with ****) I'm confused.
               
               

               


                     Modifié par Arknin, 09 juin 2011 - 03:05 .
                     
                  


            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #4 on: June 10, 2011, 12:25:14 am »


               If you bear with me I'll look tonight.  The 2da simply tells the game which part numbers are available for use.  Now if you had any other haks in your test module, that had a parts_foot.2da or parts_shin.2da, they might be part of your problem.  Clothing is a bit of an odd beast, how are you testing them? just with the toolset?
               
               

               
            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #5 on: June 10, 2011, 01:29:51 am »


               

Arknin wrote...

Thanks for the reply.

That is what I thought. However, I tried using the modified hak alone with absolutely nothing else in a test module and it didn't work. Tried with the erf, didn't work. Tried the UNmodified hak with the erf, it worked!

Fail.  You missed the unomodified hak without the erf, but it would have worked anyway, so no bigge on that.

And when I say "modified" I mean I took out some parts, nothing more. I didn't change any numbers (it doesn't seem like I would need to, though I haven't been through all the haks yet).

Likely, you "removed" the things in the wrong fashion.  You can't just delete rows in a 2da, you MUST replace them with the "****" bits all the way across the lines.  That would "remove" the objects in question, but it won't affect anything else.  If you just delete rows, you have screwed up the 2da.  The 2da actually uses the row number as well as the data involved on that row.  

That's how I came to the conclusion that the erf was needed. If it isn't, why would simply taking parts out not work? (I did take them out of the 2da as well.. not deleted the line just replaced the values with ****) I'm confused.

  I think I explained why in the bit above.
               
               

               
            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #6 on: June 10, 2011, 04:27:16 am »


               

Bannor Bloodfist wrote...

.Likely, you "removed" the things in the wrong fashion.  You can't just delete rows in a 2da, you MUST replace them with the "****" bits all the way across the lines.  That would "remove" the objects in question, but it won't affect anything else.  If you just delete rows, you have screwed up the 2da.  The 2da actually uses the row number as well as the data involved on that row. 


My bad for not explaining it clearly. ^^;
I in fact did exactly that. I removed -the files- as in deleted before repacking the hak, but the lines in the 2da were not removed, I simply replaced the values with **** as normal.

Now I just tried using the unmodified hak and not the erf and it DID work, '<img'>  (Fail indeed)
So I'm even more confused now. This means it has nothing to do with the erf... . but I have no idea what I did wrong. I didn't even have to rename anything, so no messing around the mdl's and plt's or anything. Simply taking them out of the hak and replacing their line's values with ****'s.

Any idea what else could have gone wrong, here?
               
               

               


                     Modifié par Arknin, 10 juin 2011 - 03:27 .
                     
                  


            

Legacy_Bannor Bloodfist

  • Hero Member
  • *****
  • Posts: 1578
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #7 on: June 10, 2011, 04:42:13 am »


               is it possible you have other haks that have a related 2da?  Hak order would take effect at that point, and the highest hak in your custom content list would take priority...

Or, do you have anything at all in your override folder?

Beyond those two things, can't really help much, unless whatever program you are using to edit the 2da is messing something up.  

Sorry, I just have no clue where to point you now.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #8 on: June 10, 2011, 05:38:00 am »


               Yeah an explanation of how you're testing the hak, and even pasting the 2da file in a quote block would help us locate the errors.

The mdl/plt files are all obviously working, so it's gotta be either a conflicting or corrupted 2da file causing you trouble I would think.
               
               

               
            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #9 on: June 10, 2011, 06:06:03 pm »


               I test in two phases. For the first phase, I use a test module with absolutely nothing else in it.
That's where I'm currently having trouble.
I mostly just create a new item in the toolset and check the parts that are supposed to be there.

I did have stuff in override though. I'm not even sure what it's doing there anymore, I'm so used to not putting anything in there. It doesn't look like anything in there would conflict but I'llt ry again with an empty override folder when I got time and keep you posted.

Thanks for your help so far, you two.

EDIT: Wait a minute... How could any override interfere with the trimmed down hak but not with the unmodified one?

Quick question: If I messed up somewhere in the removing of files and such (like if I removed the wrong file and /or turned the wrong 2da line into ***'*s), only the files I messed up would be missing right? Or would the whole hak not work? The latter is what's happening.
               
               

               


                     Modifié par Arknin, 10 juin 2011 - 05:18 .
                     
                  


            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #10 on: June 10, 2011, 06:37:48 pm »


               If you're using the toolset to examine your items, your numbers are not going to use the model numbers.  They simply base off the cost modifier value in the 2da, and do that.

Generally if you use something like mildragons tailoring dummies they read the model number from the 2da file.  As for the 2da, generally it's more likely you have spacing issues or some blank lines
               
               

               
            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #11 on: June 11, 2011, 04:00:54 am »


               Oh I know, I sometimes use that one useful tool linked in another thread here... that places your parts in the same order as in the 2da rather than by AC.
Even if I don't use it though, I still check all the available parts to make sure whether it's there or not.
No spacing issues or blank lines either though. Everything looks perfectly aligned and every column has either a number of 4 asterisks.

It -should- appear in the toolset even if it's not numbered the same though, right? I mean otherwise how would we create items with those appearances?
I know heads can be a different issues but I have no problems with heads (strangely enough).
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #12 on: June 12, 2011, 06:30:53 am »


               yeah should show in toolset regardless, numbers just might not be anything near your model numbers.  I've been under killer time constraints here so I haven't had a chance to look at anything, but if I have time tomorrow I'll get to it.
               
               

               
            

Legacy_Arknin

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #13 on: June 12, 2011, 05:07:37 pm »


               No rush, I do have other things to work on in the meantime. '<img'>
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Editing a clothing hak that has a erf with it?
« Reply #14 on: June 12, 2011, 09:26:24 pm »


               Oddness. I simply took their hak and added into a test module. I open it in the toolset, and I can access all the parts just fine. I lose a few of my other parts because I didn't modifiy the 2da files in the hak to make all parts available.

Provided you merge your 2da right you shouldn't have any trouble.

'Image
               
               

               


                     Modifié par Calvinthesneak, 12 juin 2011 - 08:29 .