Jump to content

Home

How does the data coding system of KotOR works?


Joris1

Recommended Posts

Hi,

 

I was always wondering how the data coding system of KotOR works. I want to write Modding tools but I can't decode the KotOR files because I don't know how the coding system works.

 

Can anyone help me? I don't want a code just a description how it is coded.

 

 

Greetings

 

Joris

Link to comment
Share on other sites

I was always wondering how the data coding system of KotOR works. I want to write Modding tools but I can't decode the KotOR files because I don't know how the coding system works.

 

Behold! ;)

 

(The core formats (GFF, TLK, ERF, KEY/BIF) are more or less the same for KotOR, with some minor differences.)

Link to comment
Share on other sites

Thanks! I know this site but I don't know how it can help me to decode the files. All I know now is if a type is an Integer, a String.... But not more.

 

What I want to know how I have to read out the files. As ASCII Encoding....

 

edit: I found something. Is it possible to read all as Binary??

Link to comment
Share on other sites

Each of the files types are basically binary encoded. The ASCII portions are derived from the string references stored in the file formats data field. The only format that could truly be considered pure ASCII would be the decompiled models so that they can be read into 3ds max or gmax. The Key file is also relatively an ASCII file as well.

 

If your interested in making tools I would recomend visiting Torlack's Site there you can download the C++ sourcecode to his various NWN tools. These can form a very good foundation for you to further understand the programming of the file formats.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...