Skip to content

DMX file produced by KeyValue2 codec produces incompatible files with SourceFilmmaker studiomdl #4

@REDxEYE

Description

@REDxEYE

Archive with problematic DMX files.
decompiled 0.72.zip
Error raised by studiomdl.

Compiling with Crowbar 0.72: "D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\tf_movies\models\player\hwm\decompiled 0.71\demo.qc" ...

Compiling "demo.qc" ...
Output from compiler "D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\bin\studiomdl.exe":
qdir: "d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf_movies\models\player\hwm\decompiled 0.71"
gamedir: "D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\usermod"
g_path: "demo.qc"
Building binary model files...
Working on "demo.qc"
WARNING: d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf_movies\models\player\hwm\decompiled 0.71\demo_morphs_sfm.dmx(441) : Expecting element type, didn't find it!
WARNING: DmElement, WARNING: DmeCombinationOperator, WARNING:
ERROR: d:\steamlibrary\steamapps\common\sourcefilmmaker\game\tf_movies\models\player\hwm\decompiled 0.71\demo.qc(7): - could not load file 'demo_morphs_sfm.dmx'
ERROR: Aborted Processing on 'player/hwm/demo.mdl'
... Compiling "demo.qc" finished. Check above for any errors.

... Compiling with Crowbar 0.72: "D:\SteamLibrary\steamapps\common\SourceFilmmaker\game\tf_movies\models\player\hwm\decompiled 0.71\demo.qc" finished.

After a small investigation, I noticed that if I remove all trailing commas (comma after the last item in an array) in arrays, studiomdl stops complaining and compile the model without any other error.

Datamodel.py does not have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions