Skip to content

fix: correct spawn point formatting in mgemod_spawns.cfg#256

Merged
sonikro merged 1 commit into
mainfrom
fix-mge-spawnpoints
Mar 21, 2026
Merged

fix: correct spawn point formatting in mgemod_spawns.cfg#256
sonikro merged 1 commit into
mainfrom
fix-mge-spawnpoints

Conversation

@sonikro
Copy link
Copy Markdown
Owner

@sonikro sonikro commented Mar 21, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 21, 2026 23:40
@sonikro sonikro enabled auto-merge (rebase) March 21, 2026 23:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes malformed spawn point entries in the MGE mod spawn configuration so that arenas/spawns parse correctly in SourceMod/KeyValues format.

Changes:

  • Corrects multiple spawn entries where the 6-number spawn value was split/mis-quoted (e.g., "x y z" 0 yaw 0""x y z 0 yaw 0").
  • Restores missing closing quotes on several spawn lines to prevent KeyValues parse failures.

"6" "32 11580 -3224" 0 285 0"
"1" "562 11624 -3188 0 255 0"
"2" "562 10392 -3196 0 105 0"
"3" "32 10436 10436 0 75 0"
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

Product Mid 2 spawn "3" is set to "32 10436 10436 0 75 0", which makes the Z coordinate equal to the Y coordinate and doesn’t match the other spawns in this arena (Z is ~-3xxx). Now that the entry is properly formatted, this likely produces an invalid/out-of-bounds spawn. Please confirm and correct the intended Z value.

Suggested change
"3" "32 10436 10436 0 75 0"
"3" "32 10436 -3224 0 75 0"

Copilot uses AI. Check for mistakes.
"4" "-447 -768 -500 0 90 0"
"5" "-1332 -644 -762 0 45 0"
"6" "-856 432 7762" 0 0 0"
"6" "-856 432 7762 0 0 0"
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

In Granary Mid 1, spawn point "6" has a Z coordinate of 7762, which is wildly inconsistent with the other spawns in the same arena (mostly around -500/-762). Since this line is now correctly formatted and will be parsed, this likely becomes an in-game bad spawn (e.g., out of bounds). Please verify the intended Z value (this looks like it may have been meant to be -762).

Suggested change
"6" "-856 432 7762 0 0 0"
"6" "-856 432 -762 0 0 0"

Copilot uses AI. Check for mistakes.
@sonikro sonikro merged commit 43186d6 into main Mar 21, 2026
13 checks passed
@sonikro sonikro deleted the fix-mge-spawnpoints branch March 21, 2026 23:50
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.

2 participants