Skip to main content

RebuildFileLists Schema (ToIndex Types)

Source: WD2/wd2_strings.txt — XML schema definitions for the engine's file indexing system.

The Disrupt engine indexes files via ToIndex XML elements that define what file types to scan, where to find them, and how to preprocess them. These schemas drive the RebuildFileLists tool (Gibbed.Disrupt).

ToIndex types​

TypeVersionExtensionsFolderPathNotes
CollectionShapeToIndex3.xmleditor\collectionsystemWorld data, not pre-indexed
CollectionToIndex2.xmleditor\collectionsystemWorld data
DatabaseToIndex1.xmldatabases\building, databases\generic, databases\particlesemitters, databases\particlessystems, databases\prefabsPre-indexed, ItemName=Generic/PartSys/Prefab
DominoToIndex2.dominodominoScripting domino nodes
EntityToIndex1.xmlworlds;missions;entitylayersWorld data — entities
GenericToIndex1.entityregistry.xml, .xmlengine, engine\gamemodes\gamemodesconfigEntityClass, GameMode
GLMToIndex1.glmgraphicsGraphics level metadata
HkrToIndex1.hkrgraphicsHavok resource, XmlInvokeDep=false
NomadToIndex2.tree.xmlgraphicsNOMAD tree files
RealtreeToIndex2.rtagraphicsSpeedTree assets
ResourceFileToIndex1–2.dae, .dpas, .gamex, .lua, .markup, .proxy.xml, .skel.xml, .animtrackcol.xml, .dds, .seq, .naseq, .anseq, .liseq, .fxseq, .stimuli.dscVariousXmlInvokeDep varies per type
SoundInfoToIndex1.xmlsoundSound definitions
StateMachineBlobToIndex1.xmlengine\scripts\game\objects\pawn\stateMachinePawn state machines
TextureToIndex1.pnggraphics;ui;editorSmallMax=16384, MediumMax=393216, BigMax=4194304
WorldLayerToIndex1terrain.xmlworldsWorld data — terrain layers
XmlDepToIndex1.xmlgraphics;editor\scenesDependencies: glm;hkr;gamex;dae

Key flags​

  • IsPreIndexed — true for databases (already compiled), false for everything else
  • IsWorldData — true for entities, collections, world layers; false for graphics/sound
  • TopDirectoryOnly — true for sound, state machines, entity registries, game modes
  • XmlInvokeDep — true for .markup, .dae, resource files that reference other assets

Note on .xml overlap: Multiple ToIndex types handle .xml files — the distinction is FolderPath and flags, not extension. For example, EntityToIndex handles .xml in worlds;missions;entitylayers (IsWorldData=true), while SoundInfoToIndex handles .xml in sound (TopDirectoryOnly=true). GenericToIndex handles both .entityregistry.xml (specific pattern) and generic .xml in engine subdirectories.

Note on ResourceFileToIndex version: The 1–2 range indicates this type has two schema versions. Version 2 adds support for additional resource file types or changes XmlInvokeDep behavior per extension.

RebuildFileLists tool​

dotnet run --project projects/Gibbed.WatchDogs2.RebuildFileLists -- \
--install-path="/path/to/WATCH_DOGS2" \
--output-dir="output/" \
--data-prefix="data_win64"

Output: data_win64/filelist.txt — one path per line, backslash-separated.