As a player I want to place my walls as efficiently as possible. AoE2 has two kinds of wall - “orthogonal” and “diagonal”. When I draw a line from A to B, I want the game to combine orthogonal and diagonal walls to make a shortest path from A to B.

The current wall placement algorithm does not draw a shortest path. Unless A to B is exactly a diagonal, the game will always use orthogonal walls. This wastes time and resources – but even more annoyingly, it makes it very hard to place a diagonal wall quickly. Misclick by one tile and your wall is completely different!

Here’s an illustration of the problem, showing a wall with the current algorithm, and the wall that I think it should have placed instead:

What do others think? Would this be an improvement? Does anyone like the current behavior? And would it be possible to implement this change with a mod? (I suspect not, unfortunately.)

So much this.
One of the possible solutions could be that with the wheel of the mouse you can select the many possible ways to place walls/palisades (just like you rotate gates).

@Jameshfisher i spent many many many many many many many many many many many many many many many many many many many many many many many minutes finding this for you

Thank you, the purpose of the CodePen and the scenario was indeed to let people experiment this new walling (with possibilities to cycle between the configurations, as mentioned by @Hectornauta), so that devs could maybe integrate it in the game.

To my knowledge, it is unfortunately not possible to make a mod available while playing normal games.

I made a scenario (available from the in-game Mods browser) called Age of Salamanders to let you test in a specific place how the new wall suggestion would behave. You can find the information here.

I also made a javascript tool to test it from your navigation browser, see here.