Random Map Scipts with Custom Sizes do not Properly Center Camera in the Editor

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • GAME BUILD #: 101.102.28520.0 (#94056) 12194550 (The live version as of October 18th, 2023).
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED


When using the (relatively new) override_map_size instruction in a random map script, the camera is not positioned at the center of the map when generating maps in the editor. Instead it is centered at the right corner.

This behavior is disruptive to the workflow of map scripting, since the map author needs to scroll the camera repeatedly when generating sample maps using the scenario editor.

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

  • 100% of the time / matches I play (ALWAYS)

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Here’s the steps to reproduce the issue:

  1. Create a map script with override_map_size 36
  2. Use the Map tab in the editor.
  3. Generate a random map on Tiny size using that map script.
  4. Observe the camera is not at the center of the map, but rather at the corner of the map.

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?

The camera should be centered at the center of the map. Or, if the map does not change size, should remain at the same location without moving (this would be a feature enhancement though).

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.

In the image, see how the rightmost corner of the map is at the center of the camera just after we clicked “Generate Map.”

:arrow_forward: GAME FILES (SAVE / RECORDING)

:point_down: Attach a SAVE GAME (.aoe2spgame) or GAME RECORDING (.aoe2record) of the match where you encountered the issue. Link it below if using an external file service.

Here’s a minimal script to showcase the issue.

override_map_size 36

Hi @TWest6709 !
I asked the team about this issue, I’ll reply once I get an answer :slight_smile: