From 659b43a63bd56fd030bf46e6f3c0d67eed93e248 Mon Sep 17 00:00:00 2001 From: BFoster-BF Date: Mon, 12 Oct 2026 09:15:31 +0100 Subject: [PATCH 1/3] Update bug.yml Updated Yaml Test --- .github/ISSUE_TEMPLATE/bug.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 88ca056a93..be1fbd2eb4 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -20,6 +20,18 @@ body: validations: required: false + - type: input + id: resolution + attributes: + label: Game resolution + placeholder: e.g. 1920x1080 + description: > + If you report a problem from within the game, this will have been filled + automatically with the current resolution. You can change this if you + are reporting a problem you saw in a different resolution. + validations: + required: false + - type: input id: scene attributes: From f8a7b435224d4c4667982267df4a1394ac4f0873 Mon Sep 17 00:00:00 2001 From: BFoster-BF Date: Mon, 12 Oct 2026 10:14:15 +0100 Subject: [PATCH 2/3] Update bug.yml --- .github/ISSUE_TEMPLATE/bug.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index be1fbd2eb4..f3e358179d 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -26,9 +26,7 @@ body: label: Game resolution placeholder: e.g. 1920x1080 description: > - If you report a problem from within the game, this will have been filled - automatically with the current resolution. You can change this if you - are reporting a problem you saw in a different resolution. + If you report a problem from within the game, this will have been filled automatically with the current resolution. You can change this if you are reporting a problem you saw in a different resolution. validations: required: false From 4bada16757ae51c90b15a299025ecca0190a29d5 Mon Sep 17 00:00:00 2001 From: BFoster-BF Date: Mon, 12 Oct 2026 14:35:23 +0100 Subject: [PATCH 3/3] Update --- .github/ISSUE_TEMPLATE/bug.yml | 17 ++++++++++++++++- scenes/globals/pause/report_bug_button.gd | 14 ++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index f3e358179d..7c8dfb6d93 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -26,7 +26,9 @@ body: label: Game resolution placeholder: e.g. 1920x1080 description: > - If you report a problem from within the game, this will have been filled automatically with the current resolution. You can change this if you are reporting a problem you saw in a different resolution. + If you report a problem from within the game, this will have been filled automatically with the current resolution. + + You can change this if you are reporting a problem you saw in a different resolution. validations: required: false @@ -45,6 +47,19 @@ body: validations: required: false + - type: input + id: location + attributes: + label: Player location (X,Y) + placeholder: e.g. 0,0 + description: > + Provide the player's coordinates in the format `X,Y` (integers only, no spaces). If reporting from within the game, + this will have been filled automatically with the player's current location. + + Leave blank if location is irrelevant to the issue. + validations: + required: false + - type: textarea id: about attributes: diff --git a/scenes/globals/pause/report_bug_button.gd b/scenes/globals/pause/report_bug_button.gd index 6b1d4c5f36..fe0b406ccb 100644 --- a/scenes/globals/pause/report_bug_button.gd +++ b/scenes/globals/pause/report_bug_button.gd @@ -22,4 +22,18 @@ func _on_pressed() -> void: if current_scene: url += "&scene=" + current_scene.scene_file_path.uri_encode() + var game_resolution := DisplayServer.window_get_size() + if game_resolution: + url += "&resolution=" + ("%sx%s" % [game_resolution.x, game_resolution.y]) + + var player := get_tree().get_first_node_in_group("player") + if player: + url += ( + "&location=" + + ( + ("%s,%s" % [player.get_global_position().x, player.get_global_position().y]) + . uri_encode() + ) + ) + OS.shell_open(url)