View Full Version : Is there any way to add a column to chargrp.dat?
xephonics
20.05.2007, 20:09
I am trying to add more face choices at character creation, but I am stuck at the client modification part.
I finally found the place where the number/name of faces chosen at char creation are stored, chargrp.dat.
I tried to add a column to the file (face_tex[3]) and re-assemble it, but it gives me an error about the voice and fist column
L2 asm 0.98 by DStuff.
Reading row error:
row: 14
field: 34 / 34 (name: voice_snd_fis
Total allocated by pooler: 16781312
here are my chargrp.txt and chargrp.ddf files, I don't see what i've done wrong, hopefully it is just somethimg small
Http://www.yorokonde.com/l2/chargrp.ddf
Http://www.yorokonde.com/l2/chargrp.txt
I have a guess that there may be something stored in l2server.exe pertaining to this, how ever i have no basis behind this. If you find out otherwise please let me know id be interested to mess with it as well.
xephonics
20.05.2007, 20:23
I know it is both the server and client, since the original file of chargrp.dat has 3 face options listed (im trying to add a fourth) in column form, face_tex[0], face_tex[1], and face_tex[2], but when i try to add in face_tex[3], i cannot re-assemble it for some reason.
I'm hoping that i am just making some dumb mistake, but i doubt it.
btw to the best of my knowledge, the char creation is fully client side until you submit it, so im pretty sure the number of choices is decided in the system folder (namely in chargrp.dat). The server would only hold the DB info for the choice after it was created.
Maybe, ill mess with the client as well and see what i can do. I will post my results here.
xephonics
21.05.2007, 01:11
thanks a ton :) I've been trying to figure this out for days lol
I decrypted my chargrp.dat fucked with it and tried to re encrypt it and i got an error. So out of curiosity i decided to decrypt a new one than immediately try to re encrypt it and im getting the same error, so until i figure out why the fuck its not re encrypting right i cant test any possible solutions to adding more faces.
heres the error "Field 'hair_mesh' has no soft limit but is cntby
post-parse init failed <check ddf file 'chargrp.ddf'>
xephonics
22.05.2007, 01:28
yah that is kinda what happened to me :/
maybe, just maybe you'd need to edit the DDF to inform of the new changes?
it wont even re encrypt it when its not changed for some reason
xephonics
22.05.2007, 23:38
maybe, just maybe you'd need to edit the DDF to inform of the new changes?
i did edit the ddf to adjust for the extra column
i did edit the ddf to adjust for the extra column
i tried that as well, but if it wont re encrypt a freshly decrypted file with no modifications that even editing the ddf to account for a new column wont make a difference.
xephonics
24.05.2007, 03:03
i used l2_fileEdit and it will re-encrypt an altered version of the file, but not one with an added column (Im starting to think i did not edd the column right tho)
post me a version of your file edit, aparently the latest version of l2asm isn't decrypting right. that way i can take an efficient stab at modifying it.
xephonics
25.05.2007, 00:17
l2_fileEdit will only encrypt one with modified columns, but not one with added columns, just so you know.
http://www.divshare.com/download/682418-c9e
xephonics
26.05.2007, 01:31
ok upon further investigation it seems hairgrp.dat might be the main hair choice file, since the chargrp.dat only has 3 columns for hair meshes, but dwarves have up to 7 choices, so that cannot be the main file
now i just need to decypher the hairgrp.dat file, it is a large amount of columns with 0's, 1's, and -1's. I'd understand it if it was 0's and 1's, then it would be a yes or a no, but the -1's confuse me :/
~edit - it also has 2's, 03's, 4's, 5's, and 6's :/
-1 is used in skilldata to say "infinite" (defaulted to work 100% of the time no chance of fault) rather than "0%" or "100%"
xephonics
26.05.2007, 02:16
hrmmmm, thx for that info
now to see if it applies to this file
xephonics
31.05.2007, 01:58
any ideas dekoth? ive hit a brick wall
Ive not found anything useful, although ive not had as much time to mess with it as id like. I will keep you posted when i get more time.