CFB File Format

Applies to:
DLTCEP

General Description
This file format a simple binary dump, developed for the Dragonlance Total Conversion (and the associated editor; DLTCEP) to transfer casting feature blocks between spells simply and easily. CFB files can be created using DLTCEP.

Detailed Description
A CFB file, being a binary dump format, has no header, or any other extraneous information. The file contains a series of feature block entries. The format supports several "shortcuts", detailed below. The number of effects contained in a CFB can be found by dividing the CFB filesize by the size of an effect (ie. 48 bytes).
Overall Structure:


Offset Size (datatype) Description
0x0000 2 (word) Opcode number
0x0002 1 (char) Target
  • 0=None
  • 1=Self
  • 2=Pre-Target
  • 3=Party
  • 4=Global
  • 5=Non-Party
  • 6=Party?
  • 7=Unknown
  • 8=Except Self
  • 9=Original Caster
  • 10=Unknown
  • 11=Unknown
  • 12=Unknown
  • 13=Unknown
0x0003 1 (char) Power
0x0004 4 (dword) Parameter 1
(++++ = set to +ve spell level)
(---- = set to -ve spell level)
0x0008 4 (dword) Parameter 2
0x000c 1 (char) Timing mode
  • 0=Duration
  • 1=Permanent
  • 2=While equipped
  • 3=Delayed Duration
  • 4=Delayed
  • 5=Delayed?
  • 6=Duration?
  • 7=Permanent?
  • 8=Permanent?
  • 9=Permanent (after Death)
  • 10=Trigger
0x000d 1 (char) Resistance
  • 0=Nonmagical
  • 1=Dispel/Not Bypass
  • 2=Not Dispel/Not Bypass
  • 3=Dispel/Bypass
0x000e 4 (dword) Duration
0x0012 1 (char) Probability 1
0x0013 1 (char) Probability 2
0x0014 8 (resref) Resource
(******** = set to filename)
0x001c 4 (dword) Dice Thrown
0x0020 2 (word) Dice Sides
0x0024 4 (dword) Saving throw type
  • bit 0: Spells
  • bit 1: Breathe
  • bit 2: Death
  • bit 3: Wands
  • bit 4: Polymorph
0x0028 4 (dword) Saving throw bonus
0x002c 4 (dword) Unknown