Skip to content

v4.11.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 19:29
· 120 commits to main since this release
v4.11.0
1d740cb

cleanmodels v4.11.0

Warnings that say where the damage is, and fewer that aren't damage at all. Found by checking the Layonara haks' 27,000 tile models, where the first count of "damaged" files was 16 times too high.

Warnings name the node and the list

  • NaN and infinite floats in a binary are now reported once per list of a node, with the count, instead of once per float with no node. One damaged tile went from 218 lines to 3:
    [WARN] decompile [construction01] off=153144: 164 NaN/Inf floats in tangents replaced with 0 (the first at this offset, raw bits: 0xFFC00000)
  • Damaged ASCII list entries name the node and the list as well as the line:
    line 130: node "Mesh248", verts: "2>4000001" is read as 2, as the game reads it, and the values after it in the entry are set to 0
  • Unknown-controller warnings give the byte offset of the controller key; before, the offset field held the controller type.

Light controller 144 is a note, not a warning

Older EE compilers wrote controller 144 on lights: 1,408 of them in the base game, all with value 1. The game's current compiler writes it for no keyword, and ASCII has no keyword for it, so decompiling drops it, as before (nwn-mdl-spec E51). It is now reported as an info note, shown with --verbose, instead of an "unknown controller" warning that made healthy models look damaged.

JSON and JSON-lines results have a new notes field: the same fields as warnings (kind, offset, node, message), not counted as warnings.

lightmapped_tile check removed

It reported the mesh lightmapped byte of tile models, such as LightMapped=253. The game's compiler leaves that byte uninitialised, and its ASCII parser reads no lightmapped keyword, so the value means nothing (nwn-mdl-spec MDL-BIN-051).

Checking

The Python port carries every change. On the game's 32,832 models, decompile, parse and compile give the same output and warnings as the Go build, and the decompile warnings and notes match too. Compiled and decompiled output is unchanged from v4.10.0: this release changes what is reported, not what is written.