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:
      
      
    
    
    
    Overall Structure:
| Offset | Size (datatype) | Description | 
|---|---|---|
| 0x0000 | 2 (word) | Opcode number | 
| 0x0002 | 1 (char) | Target
            
  | 
        
| 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
            
  | 
        
| 0x000d | 1 (char) | Resistance
            
  | 
        
| 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
            
  | 
        
| 0x0028 | 4 (dword) | Saving throw bonus | 
| 0x002c | 4 (dword) | Unknown |