Skip to content

Add server-side debug-draw toolkit (.debug vis: cells/LoS/path/collis…#386

Open
Krilliac wants to merge 6 commits into
mangoszero:masterfrom
Krilliac:feature/debug-visualizers
Open

Add server-side debug-draw toolkit (.debug vis: cells/LoS/path/collis…#386
Krilliac wants to merge 6 commits into
mangoszero:masterfrom
Krilliac:feature/debug-visualizers

Conversation

@Krilliac

@Krilliac Krilliac commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

…ion/height)

Engine-style debug markers spawned server-side and visible to the GM: map cells, line-of-sight, pathfinding (navmesh), collision raycasts and terrain height. Markers are colour-coded temporary gameobjects that auto-despawn, with per-instance hover tooltips showing each marker's captured values (hit coords, path point/type, height delta, ...) via a reserved GOOBER entry pool + a GO-query name override. Includes an optional colour-matched glow companion, a .debug vis clear to remove them on demand, .debug visual to play a spell-visual, and .debug perf for world-tick timing stats.

Apply src/game/DebugVis/sql/debugvis_marker_pool.sql once to create the marker pool.


This change is Reviewable

@codacy-production

codacy-production Bot commented Jun 20, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 120 complexity · 0 duplication

Metric Results
Complexity 120
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@AppVeyorBot

Copy link
Copy Markdown

Krilliac and others added 2 commits June 20, 2026 22:25
…ion/height)

Engine-style debug markers spawned server-side and visible to the GM: map cells,
line-of-sight, pathfinding (navmesh), collision raycasts and terrain height. Markers
are colour-coded temporary gameobjects that auto-despawn, with per-instance hover
tooltips showing each marker's captured values (hit coords, path point/type, height
delta, ...) via a reserved GOOBER entry pool + a GO-query name override. Includes an
optional colour-matched glow companion, a .debug vis clear to remove them on demand,
.debug visual <SpellVisualKit id> to play a spell-visual, and .debug perf for
world-tick timing stats.

Apply src/game/DebugVis/sql/debugvis_marker_pool.sql once to create the marker pool.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… options

One above the movement PR's 2026062000 so the value resolves cleanly to the highest
when both PRs merge. ConfVersion and MANGOSD_CONFIG_VERSION both derive from
MANGOS_WORLD_VER, prompting servers to refresh config after the DebugVis.* additions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Krilliac Krilliac force-pushed the feature/debug-visualizers branch from fca3992 to f06239e Compare June 21, 2026 03:28
@AppVeyorBot

Copy link
Copy Markdown

@billy1arm billy1arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The SQL file should be a pr to the database repo, not here

@billy1arm billy1arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Krilliac all sql files should be added to the database repo as a matching pr.

@billy1arm billy1arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please review and fix codacy issues
(https://github.com/mangoszero/server/runs/82537693197)

@billy1arm made 1 comment.
Reviewable status: 0 of 16 files reviewed, all discussions resolved.

Krilliac and others added 3 commits July 2, 2026 01:13
The WITH RECURSIVE seed requires MySQL 8.0 / MariaDB 10.2+, which breaks
compatibility with the older MySQL 5.5+/MariaDB 5.5+ servers MangosZero
supports. Replace it with a portable base-8 cross-join that produces the
same 512 gameobject_template entries (305000..305511).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GD6LV6acKwGd426dDQGPDF
Per project policy (CLAUDE.md) and review feedback, DB schema belongs in the
separate mangoszero/database repo as a matching migration PR, not in the server
tree. Remove debugvis_marker_pool.sql and repoint the doc comments to the
database repo. This also clears the Codacy 'Compatibility' findings that were
raised against the SQL file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GD6LV6acKwGd426dDQGPDF
# Conflicts:
#	cmake/MangosParams.cmake
@AppVeyorBot

Copy link
Copy Markdown

# Conflicts:
#	src/game/Object/Object.cpp
#	src/game/WorldHandlers/World.cpp
@AppVeyorBot

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants