The engine loads archives in a specific order, usually data.xp3 → patch.xp3 → patch2.xp3 . But two special script hooks exist: patch.tjs and xp3filter.tjs .
xp3filter.tjs runs before the console is fully initialized. Debugging prints might not appear. Use System.inform() for early checks. Patch.tjs Xp3filter.tjs
It is often uniquely tailored to a specific game or developer. The engine loads archives in a specific order, usually data