PDA

View Full Version : [Tutorial]How to change .dat,.ini,.int files


Alexandros
01.06.2006, 21:50
Well i made this tutorial (my first tutorial) so that i can help at this part of client side modification.I know those all that i write have been already said in forum but well i hope this is more compiled and it can help both new and old members.Anyway there it goes...

1) Download the DecPack from HERE (http://www.sombeel.com/wargasm/DecPack.rar)

2) Patch the system with patcher

3) Now we will decrypt the desired file.Lets say for example systemmsg-e.dat
Opem cmd.exe and type: l2encdec.exe -s systemmsg-e.dat
http://img55.imageshack.us/img55/170/15vf3.jpg

and u will get this

http://img212.imageshack.us/img212/8793/22du2.jpg

Now u will have a file named dec-systemmsg-e

4) Delete the systemmsg-e.dat and rename the dec-systemmsg-e.dat to systemmsg-e.dat

5) Now from the following part there are 3 ways to decode/encode the dat files,the two are with L2clientdat and the other with L2asm/disasm


Way 1

We will do this with L2Clientdat_en or L2Clientdatfull (its the same thing)

a) Open the L2ClientDat_en (of the pack folder) and do Decode of systemmsg-e.dat.Now u will get a txt file with name systemmsg-e.

http://img55.imageshack.us/img55/3884/32fy.jpg

b) Open the txt and change whatever u want

http://img55.imageshack.us/img55/5774/47zv.jpg

c) Do your changes and save the txt

d) Open again L2ClientDat_en ,choose systemmsg-e and press encode

http://img212.imageshack.us/img212/6856/58yt.jpg

-----------------
Way 2

On way 2 we will use L2ClientDat.exe.

a) With the pack there are 2 folders with names "cn"and "en".There are the txt of some .dat files.Lets say u want to change something in the systemmsg-e.dat.

b) Open the txt inside the en folder and change the thing u want in the systemmsg-e.txt and save it

c) Open now the L2ClientDat.exe and choose from english the systemmsg-e.dat

http://img286.imageshack.us/img286/2540/asda8fv.jpg (http://imageshack.us)

d) Now press restore and u are done

----------------------
Way 3

Now we will use l2asm/disasm

a) Open cmd.exe and type: l2disasm.exe -d c4\zonename-e.ddf zonename-e.dat zonename.txt and u will get this

http://img477.imageshack.us/img477/8449/asdaaaaaa5jv.th.jpg (http://img477.imageshack.us/my.php?image=asdaaaaaa5jv.jpg)

b) U will have now a txt with name zonename.txt.Open it and do the changes u want and save it

c) Now open cmd.exe and type this: l2asm.exe -d c4\zonename-e.ddf zonename.txt zonename-e.dat

http://img211.imageshack.us/img211/9369/atas1or.th.jpg (http://img211.imageshack.us/my.php?image=atas1or.jpg)

----------------------

6) Now time for the header.When u will have the encoded files (using one of the 3 ways) u open cmd.exe and type this: l2encdec.exe -h 413 systemmsg-e.dat

http://img55.imageshack.us/img55/631/60mv.jpg

With this u will get a file named enc-systemmsg-e (.dat file) and its the one we want

7) Delete the systemmsg-e.dat file that u have and rename enc-systemmsg-e to systemmsg-e (it must be 33,9 kb)

Ok thats it you are done.With this way u can change whatever .dat,.ini,.int files (for the .ini or .int files u dont need to decode/encode just decrypt-change-encrypt)

Note:Some ppl say that for those -s doesnt work on decryption.Try -g

tpuNIsher
01.06.2006, 21:57
pretty good. should help new ppl..thanks :]

Truffe
01.06.2006, 22:52
Now I can say RTFM/T... :roll:

Alexandros
01.06.2006, 23:07
Now I can say RTFM/T... :roll:

huh?what those mean? :?

Truffe
02.06.2006, 00:19
Read The Fucking Manual/Topic

Alexandros
02.06.2006, 00:47
Ahh lol :) hehee

kgptzac
02.06.2006, 01:19
which version of l2clientDAT can encode/decode c4 dat files at will now? @_@ i haven't been uptodate with this stuff for so long... >_<

kgptzac
02.06.2006, 02:30
nvm... found it lawl, downloaded long time ago but never got time to test it out ^^

tpuNIsher
02.06.2006, 05:36
arr so thanking him for sharing a tut that none of us bothered to make to help the community is offtopic and not allowed now? wow great...we dont need to encourage ppl anymore..awesome :D


edit: ah ic u put that too :]

Arshen
06.06.2006, 08:36
when i try to use l2asm i got :
MTX failed 'mash_tex_pair' must have both soft limits set (-1 / -1).
post-parse init failed (check ddf file c:\weapongrp.ddf)
Total allocated by pooler: 4198400

Saito
06.06.2006, 08:56
I think we need more of such posts

I think we can avoid a lot of posts/question if people would write tutorials or document more often.

Good work Alexandros

kepler001
12.06.2006, 21:27
Thnx

zaferk
13.06.2006, 16:09
thnx i did not know about the .dat files decoder :)
makes it so much easier

Zeran
13.06.2006, 22:18
ty man :)
P.S: for rus - http://l2j.ndvhost.com/
good man on rus :)
/по-моему отличный хелп по патчу клиента на русском/

Lockbete
18.06.2006, 19:19
MTX field 'mt_pair' must have both soft limits set (-1 / -1).
Post-parse init failed (check ddf file 'c4/weapongrp.ddf').
Total allocated by pooler: 4198400

Getting that error after using:
l2asm.exe -d c4\weapongrp.ddf -q weapongrp.txt weapongrp.dat

does someone know what im doing wrong ?

djnouri
19.06.2006, 01:30
I got an error too :

http://img91.imageshack.us/img91/6407/11tz2.jpg
http://img86.imageshack.us/img86/7286/27ki.jpg
http://img133.imageshack.us/img133/5162/36au.jpg

NOTE: i don't get this error in all files, for example, i always get it on weapongrp.dat

Could somebody help me? i have tried all methods and still nothing happens :(

xicoloco
19.06.2006, 05:46
dont work with last 660 update protocol ...

Alexandros
19.06.2006, 07:08
What u can do is to use the Way 2 of those that i submited.If u downloaded the pack there should be a folder named "en" and also the programm needed (the L2clientdat.exe).Inside the "en" folder there is already the weapongrp txt.Change whatever u want inside that and use the "Restore" from the l2clientdat.exe

djnouri
19.06.2006, 13:08
What u can do is to use the Way 2 of those that i submited.If u downloaded the pack there should be a folder named "en" and also the programm needed (the L2clientdat.exe).Inside the "en" folder there is already the weapongrp txt.Change whatever u want inside that and use the "Restore" from the l2clientdat.exe


Thnx dude i had noticed this folder, but i thought i had to get the file i needed ion the same folder as l2clietndat. Works perfect now :D

skeetles1
22.07.2006, 18:20
Ok here is my problem, I followed tutorial like it says and I do Way 2, but Im having problems with armorgrp.dat and skillname-e.dat. I put in l2encdec.exe -s skillname-e.dat and it gives me the desc-skillname-e.dat. I delete the old and rename. Then i edit the skillname-e.txt in the "en" folder. Then I run L2ClientDat and when i Hit the button I get this error. http://img233.imageshack.us/img233/2913/1ib3.jpg

What are the exact steps to Editing this file. And skillname-e gives the same error.


I tried like u said but im still having problems. I made sure only 1 tab and also i add that attribute thing but still no success.

ZeniMax
22.07.2006, 22:13
Nice guide. Congrats

amin
23.07.2006, 06:50
1st, i'd like to thank Alexandros for such a useful tut. Things went fine with most Chinese dats, but i've encountered some error when decoding others
When decode zonename-cn.dat, i've got these:

nbr zone_color_id x_world_grid y_world_grid top_z bottom_z zone_name
0 0 0 0 300xx.xx000000 -300xx.xx000000 ----
1 1 0 0 300xx.xx000000 -300xx.xx000000 ----
2 2 0 0 300xx.xx000000 -300xx.xx000000 -----

according to MANUAL in DecPack,

- remaining "unknown" unicode characters (both ASCF and UNICODE) are
replaced by '-', and reported by l2disasm

anyway, when using against zonename-e.dat, everything is alright:

nbr zone_color_id x_world_grid y_world_grid top_z bottom_z zone_name
0 0 0 0 300xx.xx000000 -300xx.xx000000 Neutral Waterways
1 1 0 0 300xx.xx000000 -300xx.xx000000 Talking Island
2 2 0 0 300xx.xx000000 -300xx.xx000000 Gludio Territory


I've tried to change zonename-e.ddf to UNICODE zone_name; (was ASCF zone_name;), but i didnt work either.
Any suggestions?

Thanks for reading.

SqualEXE
10.08.2006, 05:13
Большое спасибо из России!
thnx

Remolus
10.08.2006, 12:30
well in my tool you find a working dat decompiler

Here (https://postpacific.loc-online.com/forum/viewtopic.php?t=5617)

look at the Introduction (Third Reply)

TehUb3r
01.02.2007, 15:30
hey , first of all great usefull tut'
but link is dead can anyone upload this tool pack or better one
thanks.
yeah and its my first post so hi evryone
kinda new here

DeKoth
07.02.2007, 08:53
this is amazing for alot of the newer guys great work bud

V0gelz
11.02.2007, 12:30
Could someone reupload the .dat decompiler/compiler.

Thanks in advance.

Remolus
14.02.2007, 02:25
funny my tool was based on the same with already all made on in right locations etc :( but they ignored it :P well nvm :)

Download (http://sinlina.si.funpic.de/Remo-Pack.zip)

V0gelz
14.02.2007, 17:43
funny my tool was based on the same with already all made on in right locations etc :( but they ignored it :P well nvm :)

Download (http://sinlina.si.funpic.de/Remo-Pack.zip)

Thanks! I needed the funky decrypter, becuz i don't realy like the fileedit program.

V0gelz

V0gelz
14.02.2007, 17:59
Ok, i got a small problem... I decoded weapongrp.dat, changed the name and such but then, i load up 2__Decrypter.exe then i go to en, then i select weapongrp.dat . Press decoder, it give's me an error that it doesn't find weapongrp.dat . It's in the same folder.

Thanks in advance
V0gelz

dirkr
14.02.2007, 18:00
you gotta decode..decrypt .;change.. encrypt..encode..

V0gelz
14.02.2007, 18:40
I know, i did this with c3 filez a year ago and it worked.. But it just doesn't find weapon.dat ( it's decoded ... )

~Marquis~
14.02.2007, 21:12
Use Alzeck pack :)

V0gelz
14.02.2007, 21:43
Could you pm me a link? Or post :p .

Thanks Marquis

~Marquis~
14.02.2007, 21:49
I don't think you need futher informations about this pack, pretty easy to use and no errors.
One is for C4 and the other for C5.
http://www.megaupload.com/?d=45NDY29N

p.s. before recoding, be sure the 6__Recoder\TempDDF has the good DDF-new file ;)

V0gelz
14.02.2007, 21:56
Ok, thanks marguis for the link and info!

fallen.d.angel
05.06.2007, 16:02
I don't think you need futher informations about this pack, pretty easy to use and no errors.
One is for C4 and the other for C5.
http://www.megaupload.com/?d=45NDY29N

p.s. before recoding, be sure the 6__Recoder\TempDDF has the good DDF-new file ;)

thx man, but not everyone is from USA, there in europe its problem to DL something from megaupload

Chobito
06.06.2007, 17:53
yup
pls re- link to rapidshare

Neeckee
04.07.2007, 00:38
Hi all :)
What need I do to make a bold sys-msgs?
I think i need to edit parameter c3_attr1=[] but i dont know which option write into it. (bold? b? or other?)
Or it is impossible? :(

I hope u understand me. "Sorry for my French" :p

Waiting for answer. :)

crexas
09.07.2007, 11:14
Old stuff doesn't decode interlude systemmsg-e.dat does anyone have a link to updated L2clientdat for interlude client files?

nucer2
15.07.2007, 11:22
I don't think you need futher informations about this pack, pretty easy to use and no errors.
One is for C4 and the other for C5.
http://www.megaupload.com/?d=45NDY29N

p.s. before recoding, be sure the 6__Recoder\TempDDF has the good DDF-new file ;)

Can somebody reshare it at other server please, megaupload sucks, I don't want install megaspam toolbar )

Truffe
15.07.2007, 21:46
You don't need to.

moogle
16.07.2007, 01:49
http://rapidshare.com/files/43151467/decrypter.rar (http://rapidshare.com/files/43151467/decrypter.rar
)

rapidshare link, seems everyone else cant be bothered to upload it for others..