1C Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official 1C Company forum > 1C Publishing > King's Bounty > King's Bounty: The Legend > Mods

Mods Everything about mods

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2014, 08:06 PM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Post NPC LNG & CHAT File Reference

Please find attached a ZIPped Microsoft Excel spreadsheet file that contains the LNG to NPC file reference that created to allow me to mod the game.

The LNG NPC files follow the following file naming convention:

<Your Language - i.e. English is ENG>_CHAT_XXXXXXXXXX_YYYYYYYYYY.LNG

The XXXXXXXXXX corresponds to the NPC and the YYYYYYYYYY corresponds to a different conversation with that same NPC. YYYYYYYYYY also corresponds with a CHAT file (YYYYYYYYYY.CHAT - note that leading zeroes can be omitted in the file name) - binary files located in SES.KFS.

The LNG file is the text that corresponds with the various dialog elements of your conversation with an NPC, while the CHAT file is a binary file that performs certain actions, either within the dialog or within the game.

If you have King's Bounty - Crossworlds, you can read the documentation for the text editor to learn more about this.

However, for The Legend, you'll need to decompile the CHAT files using KB_DB_EDIT (it has been posted many times in these forums so you'll have to search on it) in order to be able to do anything with them.

With this reference, KB_DB_EDIT, and some intrepidness on your part, you can mod certain areas of the game.

For example, I used this to add the possibility of Diana as your wife in my H3B mod as well as added a new Orc wife, Orcelyn. I also changed the prices of Crystals from Torn Digor's son and changed it so that Maria gives you 3 crystals per 1 Dragon Fly wing. These are just some examples of what can be done here.

Note that editing the CHAT files is not for the feint of heart because there is a lot of stuff in there that tends to be very confusing and doesn't make any sense because it is auto-generated from a higher level tool that we don't have; however, it may be possible to use the CW Editor to create dialog and then "transplant" it for use in TL. I'm not sure, but seems like it could be possible.

If there is enough interest, I could perhaps create a LNG - CHAT file tutorial, although it is somewhat made obsolete by the CW Editor.

Enjoy!

/C\/C\
Attached Files
File Type: zip Chat File Name to NPC Reference.zip (20.4 KB, 7 views)
Reply With Quote
  #2  
Old 03-27-2014, 06:10 PM
Sirlancelot's Avatar
Sirlancelot Sirlancelot is offline
Approved Member
 
Join Date: May 2011
Posts: 274
Default

Another contribution to the community, uh? Thanks Matt!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright © 2007 1C Company. All rights reserved.