Home/Articles/PC & Modding

CodeWalker fork targets silent GTA V metadata damage

A CodeWalker development fork documents severe GTA V Enhanced metadata round-trip bugs and claims 99.9% lossless rebuilds after fixes.

Original creator workstation with vehicle wireframes and modding interfaces

A CodeWalker fork maintained by the CoreFX project documents a subtle failure in GTA V Enhanced modding: opening game metadata as XML and saving it unchanged could silently alter thousands of fields.

The 3,812-file benchmark and technical root causes are developer-reported in a public GitHub fork; we did not compile or independently benchmark the software.

The problem is not a visible editor crash

The fork's maintainers report testing 3,812 metadata files from a stock Enhanced update.rpf. According to their README, only 1,125 files—29.5 percent—survived an unmodified decompile-and-recompile cycle without data loss before their fixes. After changes, the same project reports 3,809 lossless round trips, with two remaining data-loss cases and one XML parsing failure. These figures are repository-author test results, not measurements independently reproduced by this publication.

This is a more fundamental problem than a vehicle that looks wrong after export. If saving a file without edits changes its bytes or semantics, every later modification inherits uncertainty. A modder may believe they changed one setting while the tool has also removed a field introduced in a newer game build.

Why older schema tables lose newer fields

The project's explanation identifies a mismatch between the decompiler, which reads structure definitions embedded in each source file, and the compiler, which historically relied on hard-coded type tables. When a file contained members not represented by those tables, rebuilding could omit them. The README gives vehicledamage.ymt as an example in which tuning fields were reportedly erased.

The fork changes the builders to prefer the file's own schema when recompiling. That is a sensible general technique: use information supplied by the data being modified instead of assuming an old dictionary describes every variant. It still requires testing against actual target files and cannot be presented as universal safety across game releases.

A small locale error can become a huge vehicle change

The maintainers also document numbers written with comma decimals on some language settings. A value rendered as 4,2 could be read back as 42, producing a major change without an obvious error message. The fork pins invariant number formatting to avoid software adopting the Windows user's regional decimal convention.

Other reported fixes address XML escaping for literal punctuation, high-byte characters in metadata, and enum members that could resolve to the wrong vehicle part. The README says a problematic value could map an expected mod color to a collision-bone identifier. These are specific causes for creators to examine rather than treating corruption as mysterious bad luck.

How the fork protects an edit

For certain metadata, the project describes comparing a rebuilt unmodified source with a rebuilt edited source and applying only the meaningful changed bytes to the untouched original. It also updates checksum data when required. The aim is to preserve fields not explicitly edited rather than reserialize every undocumented piece.

The maintainers openly list three known exceptions. That disclosure is useful: a fail-safe refusal to write problematic files is preferable to a 'successful' export that silently harms a project. Anyone using the fork should read those limitations and make backups before changing valuable mods.

A fork is not an official CodeWalker update

The repository explicitly identifies itself as a fork of dexyfex's CodeWalker, with the original functionality attributed upstream. These modifications should not be reported as an upstream release or a tested fix for every GTA V installation. Nor are they GTA VI asset-format discoveries. The development is about GTA V Enhanced metadata and a clearer standard for validating file conversions.

Find a story

Tip: press Ctrl/⌘ + K from any page.