M2Array stores a signed 32-bit self-relative offset. On x64 a separate
heap block can lie more than 2 GB from m_data, so relocated low-priority
.anim sequence data wrapped and crashed in ProcessEventCallbacks.
Add OsAllocNear/OsFreeNear (Win64): reserve a block within 1.5 GB of an
anchor. x64 now uses it for .anim buffers (load, cancel, destructor) and
for the skin vertex overflow, which again follows the Win32 structure
(m_flags |= 8, freed in ~CM2Shared). Texture combo arrays keep growing
m_data. All new code is under WOWDECOMP_ARCH_64.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- x64: texture combo, transform combo and converted vertex arrays are
appended to a grown m_data buffer instead of separate heap blocks, so
the self-relative 32-bit M2Array offsets always reach them; they are
freed with m_data (destructor frees only on Win32)
- FinishLoading clears header bits 0x20/0x40 from the file; the client
uses them to mark arrays it allocated, and later-expansion models set
them, which made the destructor free a pointer into the file buffer
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Old list #26-#77 and new list #1-#25: unit movement/vehicle passengers,
missile trajectory, trade skills, corpse/spirit healer UI, map flight
bounds, footprints, low detail render, shadow query gather/render,
CMapArea liquid sounds, weather type/pos deltas, world state init/set,
transport/chair/animated game objects, contact list packet, macros,
tracked achievements, tutorials, dungeon difficulty.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Ports verified against 12340 that take the x64 client from character
login to a playable world:
- Camera: SetView/ResetView, motion, free-look facing, tracking, bobs,
liquid bump, world collision; camera Lua scripts
- Input: world frame key/mouse layers, default action, mouselook,
turn/pitch player, TurnOrAction/CameraOrSelectOrMove scripts
- Movement: legal facing range, turn/pitch/raw facing events, transport
status, move spline copy, unit update info, smooth facing, anim end
- Units: component and extended display init, model fade/scale,
entity sort table, RenderEntitys, split-body culling
- Interiors: WMO group bounds, BSP segment link query, face linking,
interior lighting
- Collision: CMap::QueryFacets closure with frustum queries and NDCClip
- UI: game UI mouse filters, client control state, faction standing
packet, many *_Scripts.cpp Lua tables; name generator dictionary fix
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- CGObject_C base, CEffect, CObjectEffect/CObjectEffectManager effect states
- Unit, Player, Item/Container/Bag, Corpse, DynamicObject, GameObject and
all GameObject type classes (vtables matched slot by slot), Movement,
MovementShared, Missile, Vehicle/Passenger/Camera, combat log, caches
- Client object manager (0x4D3100-0x4D7880) incl. SMSG_UPDATE_OBJECT,
SMSG_COMPRESSED_UPDATE_OBJECT, SMSG_DESTROY_OBJECT; type ctors/PostInit
- CGGameUI::CanPerformAction and the ready part of CGInputControl
- Layouts named from descriptor fields and code; CM2Model 0x134 matrix,
CClientObjCreate tail, CGUnit_C/CGPlayer_C sizes 0x1008/0x1958
- WOWGUID struct replaces the IDB's WGUID low/high pair and guid uint64_t;
SmartGUID derives from it; member functions returning a guid keep
uint64_t (MSVC returns class types from members via hidden pointer);
structs with 4-aligned guids in 12340 use pack(4)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Grunt login ported end to end (SRP6 challenge/proof, version checksum,
realm list) and tested against a live server: authenticates, connects to
the world server (auth session with proof-of-work, header crypt), receives
the character list and shows character select
- Glue: realm list UI, character select (list, models, scripts), character
create screen + name generator, delete/rename/decline, Enter World up to
the loading screen; loading screen drawing and progress
- AccountData (times, update, upload/download), BannedAddOns, addon scan and
addon info, client cache version, tutorial flags
- Shutdown path at login state: world/map/liquid/weather teardown, NetClient,
ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows
- PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340),
ValidateName
- Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list),
CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor,
pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback
arguments, 37 class/struct forward-declaration mismatches
- IDB name sync (1217 names), verify aliases, harness large-element
instantiation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
ChaosModeUpdate (0x4C74F0) reordered to the binary's switch case layout
and case 15 written as 8 statements; verified. SE2::StopAllSounds takes
the unused int every 12340 caller pushes. Approval stamps for the
functions unblocked by the IDB splits (Button/Checkbox IsA, Checkbox
dtor, CSimpleFrame::NotifyDelayedLoad, CGxDeviceD3d9Ex ctor,
CM2Cache dtor) and for the re-reviewed IsSequenceLoaded,
OsGuiMessageBox, TexturePickAlternateFilename, three FMOD ctors and
luaG_concaterror.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Core (CSimpleFrame + Lua, CSimpleTop/CFrameStrata/CSimpleRender/
CRenderBatch, CSimpleRegion/CBackdropGenerator/CScriptRegion), animation,
text (FontString/Font/Fontable), texture and model, buttons, EditBox,
MessageFrame/MessageScrollFrame, MovieFrame/ColorSelect/StatusBar,
Slider/ScrollFrame/HTML/HyperlinkedFrame, all Lua method tables and
RegisterScriptMethods. Layouts, vtables and sizes rebuilt from the
12340 ctors, vtables and allocator initializers; CScriptObject vtable
slots 5/6 fixed; CSimpleFontedFrame is a real secondary base. Lua error
paths return after luaL_error as in 12340 (209 sites; 5 fall through).
Binary quirks kept and documented in docs/.
Supporting additions: Event key/char/ime/focus/size event headers,
Scrn/Scrn.h (ScrnLayerCreate), DivxDecoder import declarations,
C2Vector/CRect helpers, CM2Light dtor, OsInputEnableSecureMode, stpl.h
instance addresses, FrameXML LoadXML_AnimGroup/Create_SimpleMovieFrame.
Engine->WoW includes where 12340 calls directly: CSimpleModelFFX,
StringToMouseButton, GetDeclinedWord, EmblemTextureUpdate.
Also drops stale VERIFY stamps found invalid by the harness recheck.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Profile, TextBlock, Camera (+CameraInt.h), ParticleSystem2 (emitters,
track sampling, sort queue), RibbonEmitter, GfxSingletonManager managers
and the v1 CParticleEmitter destructor. All pass or approved with
explained diffs; 0 fails. Callee-cleanup helpers declared __stdcall,
float->int paths use CMath::fint_ (binary uses fistp). CLightning fields
named only; it is WoW/Common code. _Triage CAngle removed, Camera.h
repointed to CameraInt.h. CM2SceneRender Render calls cast for the new
signature. Services links freetype for the Gxu font headers.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Tools/M2Viewer opens a window, creates the D3D9 Gx device, loads an M2 from
bin/Win/Data through M2Cache/CM2Scene and spins it; Win32 and x64. Unported
engine functions it links but never reaches map to aborting stand-ins.
Engine pieces it needed: CGxDeviceD3d::XformSetProjection, CGxDevice::
XformSetViewport, GxXformSetViewport, CParticleEmitter2::Init and the
ParticleSystemManager projection statics. M2Scene.h now declares
s_localLighting/s_blendModes (they could not link), and the duplicate
particle emitter classes left in _Triage are removed.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
M2Model.cpp, M2Shared.cpp, M2Scene.cpp, CM2SceneRender.cpp, M2Light.cpp,
M2Cache.cpp and the new M2Data.cpp/.h (0x81C000-0x834900). Only the
std::sort internals for CModelBatch stay unported.
AnimationData lookups in ResolveSequenceFallback/SequenceFallbackById use
g_animationDataDB directly: 12340 inlines its record loads into M2Model.cpp.
Shared additions: CParticleEmitter2 vtable order and the plane/sphere/spline
emitters, CRibbonMat, Services/Camera.h, Base/SIMD, Base/ObjectAlloc.h (the
engine-side ObjectAlloc interface), CFacet, CAaRect, CiRange, the C44Matrix
16-float constructor and CMath fequal/fnotequal/FloatToInt64.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- MOUSEBUTTON/MOUSEMODE move to Engine/Source/Event/Types.h (WoW/Source/Console/Types.h
removed; COLOR_T is in ConsoleBase/Types.h).
- CRange and CBoundingBox move to Tempest (CRange.h, CBoundingBox.h); World.h includes them.
- TEXTURECACHE moves to Gxu/GxuFontMiscClasses.h (its code is in the Gxu font range,
0x6C8E70+); CACHEENTRY stays in WoW/Common/TextureCache.h.
- CGxDevice.h, CGxFont.h, M2Model.h, Event and Os drop their WoW includes.
Build clean on Win32/x64 (known Wow.exe link gaps only); verify unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Port BufCreate, PoolCreate/PoolDestroy, DeviceCreatePools,
DeviceCreateStreamBufs, IShaderLoad, ShaderCreate, ShaderDestroy,
CGxShader::Load/dtor, CGxPool dtor, CGxDevice ctor/dtor and
OsGetProcessorFeatures. CGxBuf gets its own header/source.
CGxPool/CGxBuf/CGxAppRenderState/CGxPushedRenderState become structs
(RTTI .?AU). HASHKEY_STRI derives from HASHKEY_STR. m_shaderList is
TSHashTable<CGxShader, HASHKEY_STRI>[6]; list offsets via offsetof.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Field names from the 12340 type library (x/y/z/w, a0..d3, minY/minX/maxY/maxX, b/t, c/r, n/d, origin/dir)
- Files renamed to match their class; CRay -> C3Ray; C3Segment, CRect, CiRect, C2iVector, C3iVector split out
- MouseEventData, CharacterInfo, M2Bounds moved out of Tempest headers
- 107 functions: C2/C3/C4Vector, C33/C34/C44Matrix, C4Quaternion, C4Plane, CAaBox, CAaSphere, C3Ray, CRect, CiRect, CImVector, NTempest
- 0x4C1C40 is cdecl (q, out): ported as static C44Matrix::FromQuaternion (guessed)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Storm moves under Engine/Source with its inner layout unchanged. All
includes use Engine/Source/Storm/..., Storm's include guards follow the
new path, and the top-level CMakeLists adds Engine/Source/Storm.
SFile.cpp (SFile::CreateOverlapped/DestroyOverlapped) moves to
Engine/Source/BlizzardCore.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Storm template library (TSLink, TSList, TSExplicitList, arrays, TSHashTable,
hash keys) and W32 sync classes (SCritSect, SSyncObject, SEvent, SMutex,
SSemaphore, SThread::SetPriority), written from the binary. Adds storm.h
with the Storm API the templates call. Generated headers updated for the
new homes and the array element types recovered from the binary.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>