xsCreateUnit parses bool arguments incorrectly [Mac only]

Note: I’m not sure if Feral monitors this forum, do they? I can report elsewhere too, but here it seems more helpful if other modders or mod players run into it.

:play_button: GAME INFORMATION

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

  • GAME BUILD #: 101.103.48987.0 (#180059)(1.1.2RC1) 24094652
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Mac

:play_button: ISSUE EXPERIENCED

:backhand_index_pointing_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.

When playing on Mac,xsCreateUnit does not use its bool arguments as given in code, leading to units being created wrong (e.g. playing a sound instead of being placed as a foundation). Specifically:

  • The value for foundation is instead used for playCreatedSound .
  • The value for playCreatedSound is instead used for checkCollision.
  • The value for checkCollision does not seem to be used, and making a foundation seems impossible.

Note: xsCreateUnit also has a Mac bug with parsing the position vector argument, which I’ll report separately.

:play_button: FREQUENCY OF ISSUE

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

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

:play_button: REPRODUCTION STEPS

:backhand_index_pointing_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptiv e!

Here’s the steps to reproduce the issue:

  1. Download the scenario attached below.

    • It has xs code inside of a trigger, which calls xsCreateUnit to spawn palisades with all 8 combinations of those 3 arguments, on two different terrains (to testcheckCollision).
  2. Test it using the Mac version of the game.

:play_button: EXPECTED RESULT

:backhand_index_pointing_down: What was SUPPOSED to happen if the bug you encountered were not prese nt?

Units should be created based on arguments passed to xsCreateUnit, as they do on Windows (cf. pics)

:play_button: IMAGE

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

:play_button: GAME FILES (SAVE / RECORDING)

:backhand_index_pointing_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 ser vice.