Skip to content

Add Valve-220 map format support to quemap.#831

Open
skies912 wants to merge 4 commits into
mainfrom
feature/valve220-map-format
Open

Add Valve-220 map format support to quemap.#831
skies912 wants to merge 4 commits into
mainfrom
feature/valve220-map-format

Conversation

@skies912

Copy link
Copy Markdown
Collaborator

Auto-detects Valve-220 by peeking for '[' after the texture name; falls back to standard Q3 format if not present. Both formats are supported transparently with no flags required.


Ran into issues aligning faces in cavern - this helps. TB support for patch editing is coming too, which will also help alot.

Auto-detects Valve-220 by peeking for '[' after the texture name;
falls back to standard Q3 format if not present. Both formats are
supported transparently with no flags required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds transparent support for Valve-220 (“explicit texture axes”) brush-side texture mapping in quemap, auto-detecting Valve-220 syntax in .map files and adjusting texture vector generation accordingly to improve face alignment (e.g., in cavern).

Changes:

  • Detect Valve-220 brush-side syntax during map parsing by peeking for [ after the texture name.
  • Add a brush_side_t::valve flag and generate texture vectors differently when Valve-220 axes are present.
  • Print a simple “Map format” note during qbsp compilation based on whether any Valve-220 sides were detected.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/quemap/map.c Adds Valve-220 vs standard format detection and parsing for brush-side texture parameters.
src/quemap/map.h Extends brush_side_t with a valve flag indicating Valve-220 axis usage.
src/quemap/texture.c Adds Valve-220-specific texture vector handling using explicit axes.
src/quemap/qbsp.c Prints the detected map format after loading the map.

Comment thread src/quemap/texture.c
Comment thread src/quemap/map.c Outdated
Comment thread src/quemap/map.c Outdated
jdolan and others added 3 commits June 12, 2026 08:45
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

3 participants