TP2CG forum


Post your suggestions, ideas, comments on the tool's forum!

Visit TP2CG forum

 
 
Callum NPC
 
 
 
 

Modding Section / Editors and Tools / TP2 Code Generator

TP2 Code Generator

Author: Baronius
Description: TP2 content generator
Current version: 1.0
Status
: RELEASED

TP2 Code Generator generates complete "COPY" blocks (with all necessary "SAY <offset> <string>" lines) for several types of files. The output code can simply be pasted to your TP2 file.

How it works:
Input: files with strRefs, dialog.tlk. Output: TP2 code, TRA content (optional). TP2CG detects all valid string resource references (StrRefs) in your files, and generates the required TP2 code blocks. It supports string output in TRA format.

TP2 Code Generator can save you a lot of time when:

  • you are creating the TP2 code for various files of your WeiDU-based mod
  • you are converting the package of a non-WeiDU mod to WeiDU format

This program is the most efficient in case of large mods with hundreds of files, but it can be very useful while creating packages for mods of any size and of any type.

This version of TP2CG supports the following game setups:

  • Baldur's Gate
  • Baldur's Gate: Tales of the Sword Coast
  • Baldur's Gate II: Shadows of Amn
  • Baldur's Gate II: Throne of Bhaal
  • Icewind Dale
  • Icewind Dale: Heart of Winter, Trials of the Luremaster
  • Planescape: Torment

The following file types are supported by this version:

  • Area files (*.are)
  • Creature files (*.cre)
  • Effect files (*.eff)
  • Item files (*.itm)
  • Spell files (*.spl)
  • Store files (*.sto)

Limitations:

  • Icewind Dale II is not supported by this version
  • TOT/TOH references are not supported by this version

A screenshot of its output (with settings: Print to screen, TP2 comments disabled, TRA output enabled, TRA re-use enabled):