CC Structures¶
CCacheStatus¶
Used by the CCacheStatus Class
Offset |
Size (Total: 1080) |
Type |
Field |
0x0 |
4 |
int |
m_nDrawnBars |
0x4 |
4 |
int |
m_nScreensDrawn |
0x8 |
4 |
int |
m_bDemandedResources |
0xC |
4 |
int |
m_bTravelScreen |
0x10 |
4 |
int |
m_nProgressBarCaption |
0x14 |
4 |
int |
m_nParchmentCaption |
0x18 |
4 |
unsigned int |
m_dwLastUpdateTickCount |
0x1C |
4 |
int |
m_nTimeToNewHint |
0x20 |
4 |
int |
m_nCurrentHint |
0x24 |
4 |
int |
m_nCurrentHintRef |
0x28 |
4 |
int |
m_bWaiting |
4 |
|
||
0x30 |
40 |
m_vidFont |
|
0x58 |
40 |
m_initialsFont |
|
0x80 |
40 |
m_parchmentFont |
|
0xA8 |
272 |
m_titleBar |
|
0x1B8 |
312 |
m_skullAnimating |
|
0x2F0 |
312 |
m_progressBar |
|
0x428 |
4 |
int |
m_nAnimationFrame |
0x42C |
4 |
int |
m_nAnimationDirection |
0x430 |
4 |
int |
m_bActivateEngine |
4 |
|
CCallbackBase¶
Offset |
Size (Total: 16) |
Type |
Field |
0x0 |
8 |
qword |
vfptr |
0x8 |
1 |
unsigned __int8 |
m_nCallbackFlags |
3 |
|
||
0xC |
4 |
int |
m_iCallback |
CCharacterFile¶
Offset |
Size (Total: 16) |
Type |
Field |
0x0 |
16 |
CResHelper<CResCHR,1018> |
baseclass_0 |
CChatBuffer¶
Used by the CChatBuffer Class
Offset |
Size (Total: 120) |
Type |
Field |
0x0 |
56 |
m_lLabels |
|
0x38 |
56 |
m_lMessages |
|
0x70 |
4 |
int |
m_nMessageCount |
0x74 |
4 |
int |
m_nDisplayCount |
CChitin¶
Used by the CChitin Class
Offset |
Size (Total: 4232) |
Type |
Field |
0x0 |
8 |
qword |
vfptr |
0x8 |
4 |
int |
m_mouseLButton |
0xC |
4 |
int |
m_mouseRButton |
0x10 |
4 |
int |
m_bMouseLButtonDown |
0x14 |
8 |
tagPOINT |
m_mouseLDblClickPoint |
0x1C |
4 |
unsigned int |
m_mouseLDblClickCount |
0x20 |
4 |
int |
m_bMouseRButtonDown |
0x24 |
8 |
tagPOINT |
m_mouseRDblClickPoint |
0x2C |
4 |
unsigned int |
m_mouseRDblClickCount |
0x30 |
4 |
int |
m_bMouseMButtonDown |
0x34 |
8 |
tagPOINT |
m_mouseMDblClickPoint |
0x3C |
4 |
unsigned int |
m_mouseMDblClickCount |
0x40 |
4 |
unsigned int |
m_mouseDblClickTime |
0x44 |
8 |
tagSIZE |
m_mouseDblClickSize |
0x4C |
4 |
int |
bEngineActive |
0x50 |
4 |
int |
bServicingEnabled |
0x54 |
4 |
int |
bMessagesEnabled |
0x58 |
56 |
lEngines |
|
0x90 |
4 |
unsigned int |
nIterations |
4 |
|
||
0x98 |
8 |
pStartingEngine |
|
0xA0 |
4 |
unsigned int |
nTimer |
0xA4 |
4 |
unsigned int |
nTimerRes |
0xA8 |
8 |
m_sCommandLine |
|
0xB0 |
16 |
m_rClient |
|
0xC0 |
1 |
unsigned __int8 |
m_bReInitializing |
0xC1 |
1 |
unsigned __int8 |
m_bScreenEdgeScroll |
2 |
|
||
0xC4 |
4 |
unsigned int |
m_opSystemPlatformId |
0xC8 |
2 |
__int16 |
m_capsLockState |
2 |
|
||
0xCC |
8 |
m_ptScreen |
|
0xD4 |
4 |
int |
m_bStartUpHost |
0xD8 |
4 |
int |
m_bStartUpConnect |
4 |
|
||
0xE0 |
8 |
m_sStartUpAddress |
|
0xE8 |
8 |
m_sStartUpPort |
|
0xF0 |
8 |
m_sStartUpPlayer |
|
0xF8 |
8 |
m_sStartUpPassword |
|
0x100 |
4 |
int |
m_bStartUpNewGame |
0x104 |
4 |
int |
m_bStartUpLoadGame |
0x108 |
8 |
m_sStartUpSession |
|
0x110 |
1 |
unsigned __int8 |
m_bStartUpDirectPlayLobby |
0x111 |
1 |
unsigned __int8 |
m_bStartUpGameSpyLocation |
6 |
|
||
0x118 |
8 |
m_sStartUpGameSpyLocation |
|
0x120 |
1 |
unsigned __int8 |
m_bStartUpThroneOfBhaal |
7 |
|
||
0x128 |
8 |
cSoundMixer |
|
0x130 |
4 |
int |
m_nMaxPlayers |
0x134 |
4 |
int |
m_nCurrentSong |
0x138 |
16 |
m_nSoundEnvironment |
|
0x148 |
4 |
int |
m_bSoundInitialized |
0x14C |
1 |
unsigned __int8 |
padding |
3 |
|
||
0x150 |
4 |
int |
m_bInMouseWheelQueue |
4 |
|
||
0x158 |
56 |
CTypedPtrList<CPtrList,long*> |
m_lstMouseWheel |
0x190 |
4 |
unsigned int |
m_wheelScrollLines |
0x194 |
4 |
int |
m_bIsMouseInWindow |
0x198 |
4 |
int |
m_bFrameOutline |
0x19C |
4 |
int |
m_bUseMirrorFX |
0x1A0 |
4 |
unsigned int |
m_msgAutoPlay |
4 |
|
||
0x1A8 |
8 |
void* |
m_hEvent |
0x1B0 |
1 |
unsigned __int8 |
m_bUsePlanescapeSoundReductionCurve |
3 |
|
||
0x1B4 |
4 |
unsigned int |
m_nSoundReductionCurveRadius |
0x1B8 |
4 |
unsigned int |
m_nTickCount |
0x1BC |
4 |
int |
m_nAIPerSec |
0x1C0 |
4 |
int |
m_nAIElasped |
0x1C4 |
4 |
unsigned int |
m_nRenderTickCount |
0x1C8 |
4 |
int |
m_nRenderPerSec |
0x1CC |
4 |
int |
m_nRenderElasped |
0x1D0 |
4 |
int |
m_nAISleeper |
0x1D4 |
4 |
int |
m_bIsTouchUI |
0x1D8 |
4 |
int |
m_bUseBGRA |
0x1DC |
4 |
int |
m_bRenderTilesLinear |
0x1E0 |
8 |
m_sFontName |
|
0x1E8 |
4 |
int |
m_nFullFrameTimer |
0x1EC |
4 |
int |
m_nGameTimer |
0x1F0 |
4 |
int |
m_nRenderTimer |
0x1F4 |
4 |
int |
m_nSearchTimer |
0x1F8 |
8 |
m_fFrameTimeLog |
|
0x200 |
4 |
int |
m_bLogFrames |
4 |
|
||
0x208 |
8 |
pActiveEngine |
|
0x210 |
8 |
cVideo |
|
0x218 |
3064 |
cNetwork |
|
0xE10 |
384 |
CSteam |
cSteam |
0xF90 |
1 |
unsigned __int8 |
padding2 |
3 |
|
||
0xF94 |
4 |
int |
bPointerUpdated |
0xF98 |
8 |
cMousePosition |
|
0xFA0 |
4 |
int |
nAUCounter |
0xFA4 |
4 |
int |
bInTimer |
0xFA8 |
4 |
int |
m_AIStale |
0xFAC |
4 |
int |
m_displayStale |
0xFB0 |
4 |
int |
m_bInSyncUpdate |
0xFB4 |
4 |
unsigned int |
m_keyRepeatDelay |
0xFB8 |
4 |
unsigned int |
m_keyRepeatRate |
0xFBC |
112 |
cProgressBar |
|
0x102C |
2 |
unsigned __int16 |
m_nAICounter |
2 |
|
||
0x1030 |
4 |
int |
m_bManualFrameControl |
0x1034 |
4 |
int |
m_displayDebug |
0x1038 |
4 |
int |
m_displaySerialize |
0x103C |
4 |
int |
m_bExitOnError |
0x1040 |
4 |
int |
m_bEnableCucumber |
4 |
|
||
0x1048 |
8 |
pCurRes |
|
0x1050 |
8 |
m_sFontNameNormal |
|
0x1058 |
8 |
m_sFontNameRealms |
|
0x1060 |
8 |
m_sFontNameStoneBig |
|
0x1068 |
8 |
m_sFontNameStoneSml |
|
0x1070 |
8 |
m_sFontNameToolFont |
|
0x1078 |
8 |
m_sFontNameFloatTxt |
|
0x1080 |
4 |
int |
m_bDisplaySubtitles |
0x1084 |
4 |
int |
m_bReverseMouseWheelZoom |
CClosure¶
Offset |
Size (Total: 48) |
Type |
Field |
0x0 |
8 |
GCObject* |
next |
0x8 |
1 |
unsigned __int8 |
tt |
0x9 |
1 |
unsigned __int8 |
marked |
0xA |
1 |
unsigned __int8 |
nupvalues |
5 |
|
||
0x10 |
8 |
GCObject* |
gclist |
0x18 |
8 |
int (__fastcall *f)(lua_State*); |
f |
0x20 |
16 |
Array<lua_TValue,1> |
upvalue |
CCmdTarget¶
Offset |
Size (Total: 8) |
Type |
Field |
0x0 |
8 |
baseclass_0 |
CColorEffect¶
Offset |
Size (Total: 12) |
Type |
Field |
0x0 |
1 |
unsigned __int8 |
m_effectType |
0x1 |
1 |
unsigned __int8 |
m_range |
2 |
|
||
0x4 |
4 |
unsigned int |
m_tintColor |
0x8 |
1 |
unsigned __int8 |
m_periodLength |
3 |
|
CColorEffects¶
Offset |
Size (Total: 56) |
Type |
Field |
0x0 |
56 |
baseclass_0 |
CColorRange¶
Offset |
Size (Total: 2) |
Type |
Field |
0x0 |
1 |
unsigned __int8 |
m_range |
0x1 |
1 |
unsigned __int8 |
m_color |
CColorRanges¶
Offset |
Size (Total: 56) |
Type |
Field |
0x0 |
56 |
baseclass_0 |
CContingency¶
Offset |
Size (Total: 480) |
Type |
Field |
0x0 |
64 |
m_cTrigger |
|
0x40 |
8 |
m_cSpellRes |
|
0x48 |
8 |
m_cSpellRes2 |
|
0x50 |
8 |
m_cSpellRes3 |
|
0x58 |
24 |
m_cTarget |
|
0x70 |
4 |
unsigned int |
m_dwFlags |
4 |
|
||
0x78 |
344 |
m_parentEffect |
|
0x1D0 |
4 |
unsigned int |
m_dwTarget |
0x1D4 |
4 |
unsigned int |
m_dwCondition |
0x1D8 |
4 |
unsigned int |
m_nLastCheck |
4 |
|
CContingencyList¶
Offset |
Size (Total: 56) |
Type |
Field |
0x0 |
56 |
baseclass_0 |
CContingencySpell¶
Offset |
Size (Total: 18) |
Type |
Field |
0x0 |
8 |
Array<unsigned __int8,8> |
m_spellId |
0x8 |
8 |
Array<unsigned __int8,8> |
m_origId |
0x10 |
2 |
unsigned __int16 |
m_flags |
CCreatureFile¶
Offset |
Size (Total: 16) |
Type |
Field |
0x0 |
16 |
CResHelper<CResCRE,1009> |
baseclass_0 |
CCreatureFileEquipment¶
Offset |
Size (Total: 80) |
Type |
Field |
0x0 |
2 |
unsigned __int16 |
m_helmetItem |
0x2 |
2 |
unsigned __int16 |
m_armorItem |
0x4 |
2 |
unsigned __int16 |
m_shieldItem |
0x6 |
2 |
unsigned __int16 |
m_gauntletsItem |
0x8 |
2 |
unsigned __int16 |
m_ringLeftItem |
0xA |
2 |
unsigned __int16 |
m_ringRightItem |
0xC |
2 |
unsigned __int16 |
m_amuletItem |
0xE |
2 |
unsigned __int16 |
m_beltItem |
0x10 |
2 |
unsigned __int16 |
m_bootsItem |
0x12 |
8 |
Array<unsigned __int16,4> |
m_weaponItem |
0x1A |
8 |
Array<unsigned __int16,4> |
m_ammoItem |
0x22 |
2 |
unsigned __int16 |
m_cloakItem |
0x24 |
40 |
Array<unsigned __int16,20> |
m_miscItem |
0x4C |
2 |
unsigned __int16 |
m_selectedWeapon |
0x4E |
2 |
unsigned __int16 |
m_selectedWeaponAbility |
Notes
Related to CRE V1.0 Item Slots
CCreatureFileHeader¶
Offset |
Size (Total: 616) |
Type |
Field |
0x0 |
4 |
unsigned int |
m_name |
0x4 |
4 |
unsigned int |
m_apparentName |
0x8 |
4 |
unsigned int |
m_flags |
0xC |
4 |
unsigned int |
m_xpValue |
0x10 |
4 |
unsigned int |
m_xp |
0x14 |
4 |
unsigned int |
m_gold |
0x18 |
4 |
unsigned int |
m_generalState |
0x1C |
2 |
__int16 |
m_hitPoints |
0x1E |
2 |
unsigned __int16 |
m_maxHitPointsBase |
0x20 |
4 |
unsigned int |
m_animationType |
0x24 |
7 |
Array<unsigned __int8,7> |
m_colors |
0x2B |
1 |
unsigned __int8 |
m_effectVersion |
0x2C |
8 |
Array<unsigned __int8,8> |
m_portraitSmall |
0x34 |
8 |
Array<unsigned __int8,8> |
m_portraitLarge |
0x3C |
1 |
unsigned __int8 |
m_reputation |
0x3D |
1 |
unsigned __int8 |
m_hideInShadowsBase |
0x3E |
2 |
__int16 |
m_armorClass |
0x40 |
2 |
__int16 |
m_armorClassBase |
0x42 |
2 |
__int16 |
m_armorClassCrushingAdjustment |
0x44 |
2 |
__int16 |
m_armorClassMissileAdjustment |
0x46 |
2 |
__int16 |
m_armorClassPiercingAdjustment |
0x48 |
2 |
__int16 |
m_armorClassSlashingAdjustment |
0x4A |
1 |
char |
m_toHitArmorClass0Base |
0x4B |
1 |
unsigned __int8 |
m_numberOfAttacksBase |
0x4C |
1 |
unsigned __int8 |
m_saveVSDeathBase |
0x4D |
1 |
unsigned __int8 |
m_saveVSWandsBase |
0x4E |
1 |
unsigned __int8 |
m_saveVSPolyBase |
0x4F |
1 |
unsigned __int8 |
m_saveVSBreathBase |
0x50 |
1 |
unsigned __int8 |
m_saveVSSpellBase |
0x51 |
1 |
char |
m_resistFireBase |
0x52 |
1 |
char |
m_resistColdBase |
0x53 |
1 |
char |
m_resistElectricityBase |
0x54 |
1 |
char |
m_resistAcidBase |
0x55 |
1 |
char |
m_resistMagicBase |
0x56 |
1 |
char |
m_resistMagicFireBase |
0x57 |
1 |
char |
m_resistMagicColdBase |
0x58 |
1 |
char |
m_resistSlashingBase |
0x59 |
1 |
char |
m_resistCrushingBase |
0x5A |
1 |
char |
m_resistPiercingBase |
0x5B |
1 |
char |
m_resistMissileBase |
0x5C |
1 |
unsigned __int8 |
m_detectIllusionBase |
0x5D |
1 |
unsigned __int8 |
m_setTrapsBase |
0x5E |
1 |
unsigned __int8 |
m_loreBase |
0x5F |
1 |
unsigned __int8 |
m_lockPickingBase |
0x60 |
1 |
unsigned __int8 |
m_moveSilentlyBase |
0x61 |
1 |
unsigned __int8 |
m_trapsBase |
0x62 |
1 |
unsigned __int8 |
m_pickPocketBase |
0x63 |
1 |
unsigned __int8 |
m_fatigue |
0x64 |
1 |
unsigned __int8 |
m_intoxication |
0x65 |
1 |
char |
m_luckBase |
0x66 |
15 |
Array<char,15> |
m_proficiencies |
0x75 |
1 |
unsigned __int8 |
m_bNightmare |
0x76 |
1 |
unsigned __int8 |
m_nTranslucent |
0x77 |
1 |
char |
m_repChangeKilled |
0x78 |
1 |
char |
m_repChangeJoined |
0x79 |
1 |
char |
m_repChangeKicked |
0x7A |
1 |
unsigned __int8 |
m_undeadLevel |
0x7B |
1 |
unsigned __int8 |
m_trackingBase |
0x7C |
32 |
Array<char,32> |
m_trackingTarget |
0x9C |
400 |
Array<unsigned int,100> |
m_speech |
0x22C |
1 |
unsigned __int8 |
m_level1 |
0x22D |
1 |
unsigned __int8 |
m_level2 |
0x22E |
1 |
unsigned __int8 |
m_level3 |
0x22F |
1 |
unsigned __int8 |
m_sex |
0x230 |
1 |
unsigned __int8 |
m_STRBase |
0x231 |
1 |
unsigned __int8 |
m_STRExtraBase |
0x232 |
1 |
unsigned __int8 |
m_INTBase |
0x233 |
1 |
unsigned __int8 |
m_WISBase |
0x234 |
1 |
unsigned __int8 |
m_DEXBase |
0x235 |
1 |
unsigned __int8 |
m_CONBase |
0x236 |
1 |
unsigned __int8 |
m_CHRBase |
0x237 |
1 |
unsigned __int8 |
m_morale |
0x238 |
1 |
unsigned __int8 |
m_moraleBreak |
0x239 |
1 |
unsigned __int8 |
m_hatedRace |
0x23A |
2 |
unsigned __int16 |
m_moraleRecoveryTime |
0x23C |
2 |
unsigned __int16 |
m_mageSpecUpperWord |
0x23E |
2 |
unsigned __int16 |
m_mageSpecialization |
0x240 |
8 |
Array<unsigned __int8,8> |
m_scriptOverRide |
0x248 |
8 |
Array<unsigned __int8,8> |
m_scriptClass |
0x250 |
8 |
Array<unsigned __int8,8> |
m_scriptRace |
0x258 |
8 |
Array<unsigned __int8,8> |
m_scriptGeneral |
0x260 |
8 |
Array<unsigned __int8,8> |
m_scriptDefault |
Notes
Related to CRE V1.0 Header
m_generalState (offset
0x18
) contains values found inSTATE.IDS
m_animationType (offset
0x20
) contains values found inANIMATE.IDS
m_effectVersion (offset
0x2B
) contains:0
version 1 EFF or1
version 2 EFFm_hatedRace (offset
0x239
) contains racial enemy values found inRACE.IDS
CCreatureFileItem¶
Offset |
Size (Total: 20) |
Type |
Field |
0x0 |
8 |
Array<unsigned __int8,8> |
m_itemId |
0x8 |
2 |
unsigned __int16 |
m_wear |
0xA |
6 |
Array<unsigned __int16,3> |
m_usageCount |
0x10 |
4 |
unsigned int |
m_dynamicFlags |
Notes
Related to CRE V1.0 Items Table
m_wear (offset
0x08
) item expiration timem_usageCount[3] (offset
0x0A
) item quantity/chargesm_dynamicFlags (offset
0x10
) contains: bit0
= Identified, bit1
= Unstealable, bit2
= Stolen, bit3
= Undroppable
CCreatureFileKnownSpell¶
Offset |
Size (Total: 12) |
Type |
Field |
0x0 |
8 |
Array<unsigned __int8,8> |
m_knownSpellId |
0x8 |
2 |
unsigned __int16 |
m_spellLevel |
0xA |
2 |
unsigned __int16 |
m_magicType |
Notes
Related to CRE V1.0 Known Spells
m_magicType (offset
0x0A
) contains:0
= Priest,1
= Wizard,2
= Innate
CCreatureFileMemorizedSpell¶
Offset |
Size (Total: 12) |
Type |
Field |
0x0 |
8 |
Array<unsigned __int8,8> |
m_spellId |
0x8 |
2 |
unsigned __int16 |
m_flags |
0xA |
2 |
Array<unsigned __int8,2> |
structureAlignment1 |
Notes
Related to CRE V1.0 Memorized Spells Table
m_flags (offset
0x08
) contains: bit0
= Memorised or bit1
= Disabled
CCreatureFileMemorizedSpellLevel¶
Offset |
Size (Total: 16) |
Type |
Field |
0x0 |
2 |
unsigned __int16 |
m_spellLevel |
0x2 |
2 |
unsigned __int16 |
m_baseCount |
0x4 |
2 |
unsigned __int16 |
m_count |
0x6 |
2 |
unsigned __int16 |
m_magicType |
0x8 |
4 |
unsigned int |
m_memorizedStartingSpell |
0xC |
4 |
unsigned int |
m_memorizedCount |
Notes
Related to CRE V1.0 Spell Memorization Info
m_magicType (offset
0x06
) contains:0
= Priest,1
= Wizard,2
= Innatem_memorizedStartingSpell (offset
0x08
) index into memorized spells (array of CCreatureFileMemorizedSpell structures) of first memorized spell of this type in this levelm_memorizedCount (offset
0x0C
) count of memorized spell entries in memorized spells array of memorized spells of this type in this level
CCreatureFileOffsets¶
Offset |
Size (Total: 100) |
Type |
Field |
0x0 |
1 |
unsigned __int8 |
m_enemyAlly |
0x1 |
1 |
unsigned __int8 |
m_general |
0x2 |
1 |
unsigned __int8 |
m_race |
0x3 |
1 |
unsigned __int8 |
m_class |
0x4 |
1 |
unsigned __int8 |
m_specifics |
0x5 |
1 |
unsigned __int8 |
m_gender |
0x6 |
5 |
Array<unsigned __int8,5> |
m_specialCase |
0xB |
1 |
unsigned __int8 |
m_alignment |
0xC |
4 |
int |
m_instance |
0x10 |
32 |
Array<char,32> |
m_name |
0x30 |
4 |
unsigned int |
m_knownSpellListOffset |
0x34 |
4 |
unsigned int |
m_knownSpellListCount |
0x38 |
4 |
unsigned int |
m_memorizationLevelListOffset |
0x3C |
4 |
unsigned int |
m_memorizationLevelListCount |
0x40 |
4 |
unsigned int |
m_memorizationSpellListOffset |
0x44 |
4 |
unsigned int |
m_memorizationSpellListCount |
0x48 |
4 |
unsigned int |
m_equipmentListOffset |
0x4C |
4 |
unsigned int |
m_itemListOffset |
0x50 |
4 |
unsigned int |
m_itemListCount |
0x54 |
4 |
unsigned int |
m_effectListOffset |
0x58 |
4 |
unsigned int |
m_effectListCount |
0x5C |
8 |
Array<unsigned __int8,8> |
m_dialog |
Notes
Related to offset 0x0270
of CRE V1.0 Header
CCriticalEntry¶
Offset |
Size (Total: 28) |
Type |
Field |
0x0 |
8 |
m_res |
|
0x8 |
4 |
int |
m_hitOrMiss |
0xC |
4 |
int |
m_slot |
0x10 |
4 |
int |
m_attackType |
0x14 |
4 |
int |
m_itemType |
0x18 |
4 |
int |
m_bonus |
CCriticalEntryList¶
Offset |
Size (Total: 56) |
Type |
Field |
0x0 |
56 |
baseclass_0 |
CCrypt¶
Offset |
Size (Total: 0) |
Type |
Field |