Skip to content

Index audio and texture assets - #57

Merged
ViTeXFTW merged 2 commits into
devfrom
t3code/asset-indexing
Jul 18, 2026
Merged

Index audio and texture assets#57
ViTeXFTW merged 2 commits into
devfrom
t3code/asset-indexing

Conversation

@ViTeXFTW

Copy link
Copy Markdown
Owner

Summary

  • index WAV, MP3, TGA, and DDS basenames from loose directories and BIG archives
  • add asset-aware schema value types, completions, semantic classification, and gated missing-asset warnings
  • cover texture aliases and stems, cursor sequences, model draw track marks, and EVA side sound lists
  • document supported assets and root configuration

Why

Raw audio and texture references were previously plain strings, so the language server could neither complete them nor warn when an indexed asset was missing. The scanner also ignored those file types.

Impact

Configured game and mod roots now provide context-aware asset completion and existence checks without reading binary payloads or adding raw assets to navigation, rename, or definition flows. DDS-backed textures complete canonically as TGA references where the engine supports transparent lookup.

Validation

  • cargo test -p zerosyntax-schema
  • cargo test -p zerosyntax-analysis --test spec
  • cargo test
  • cargo test --release -p zerosyntax-analysis --test corpus -- --ignored --nocapture
  • release corpus: 2,217 files, zero syntax and unknown-block diagnostics

@greptile-apps

greptile-apps Bot commented Jul 18, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds raw audio and texture asset awareness to the language server. The main changes are:

  • Indexes WAV, MP3, TGA, and DDS assets from loose files and BIG archives.
  • Adds schema value types for audio files, audio stems, texture files, texture stems, and texture sequences.
  • Uses indexed assets for completions, semantic token classification, and gated missing-asset warnings.
  • Updates CLI, server scan wiring, tests, and documentation for asset root configuration.

Confidence Score: 5/5

This PR appears safe to merge with low risk.

The changes are cohesive, gated on indexed asset availability, and covered by targeted tests. No correctness or security issues were identified in the changed paths reviewed.

No files require special attention.

T-Rex T-Rex Logs

What T-Rex did

  • Ran the zerosyntax-schema test suite and confirmed the results: 13 passed, 0 failed (EXIT_CODE 0).
  • Executed the zerosyntax-analysis spec test and observed 1 test passed and 0 failed (EXIT_CODE 0).
  • Executed the full zerosyntax-analysis validation suite and confirmed 77 passed, 0 failed unit tests, integration tests passing, and corpus-only tests ignored per setup message.

View all artifacts

T-Rex Ran code and verified through T-Rex

Important Files Changed

Filename Overview
crates/analysis/src/diagnostics.rs Adds gated missing-audio and missing-texture warnings tied to indexed asset availability, with extension and DDS alias handling.
crates/analysis/src/completion.rs Adds asset-backed completion labels and snippets for audio files/stems and texture files/stems, including DDS-to-TGA canonical texture completion.
crates/analysis/src/index.rs Extends the workspace index with case-insensitive raw audio/texture asset tracking and generation updates when effective names change.
crates/server/src/scan.rs Adds WAV/MP3/TGA/DDS discovery from loose files and BIG archives without reading raw binary payloads except existing W3D model parsing.
crates/server/src/backend.rs Wires scanned raw assets into the shared workspace index and scan progress accounting.
crates/server/src/cli.rs Indexes scanned raw assets for one-shot CLI diagnostics and updates CLI base-root help text.
crates/schema/schema.json Marks relevant schema fields and sub-blocks with the new audio/texture value types so analysis can provide asset-specific behavior.

Reviews (1): Last reviewed commit: "Index audio and texture assets" | Re-trigger Greptile

@ViTeXFTW
ViTeXFTW marked this pull request as ready for review July 18, 2026 13:44
# Conflicts:
#	crates/analysis/src/completion.rs
#	crates/analysis/src/diagnostics.rs
#	crates/analysis/src/index.rs
#	crates/analysis/src/semantic.rs
@ViTeXFTW
ViTeXFTW merged commit 4e8fbbe into dev Jul 18, 2026
4 checks passed
@ViTeXFTW
ViTeXFTW deleted the t3code/asset-indexing branch August 13, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant