fix(project): a module resref names a file, not a resource #93

Merged
archvillainette merged 1 commits from module-resref-is-a-filename into main 2026-08-01 08:59:26 +00:00
1 Commits
Author SHA1 Message Date
archvillainetteandClaude Opus 5 e86e839ed2 fix(project): a module resref names a file, not a resource
ci / ci (pull_request) Successful in 3m50s
module.resref is the name of the built .mod on disk, so the 16-byte resref
limit never applied to it — NWN:EE module file names are routinely longer.
The blanket check rejected ShadowsOverWestgate (19 characters) and blocked
sow-module#60.

It is now validated as a file name instead, which still rejects a resref
that is a path or an empty string.

The limit is kept where the value really does become a resref: a project
with paths.assets and no haks[] names its single generated HAK after the
module resref, and a HAK name is a resref the engine loads. That case now
says what to do about it rather than refusing every long module name.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 09:56:26 +02:00