Hi everyone,
I’ve been experimenting with the Age of Empires IV Content Editor, trying to figure out if it’s possible to create a generated map (as opposed to crafted map) and have it automatically place structures like stone walls during the map generation process.
So far, I’ve looked into some existing generated map and wrote some basic .lua and .scar. Specifically, I tried to put .lua (generating terrain) and .scar (generating walls) in the same folder; however, it seems that .scar didn’t work and there was not any walls generated.
One of the main challenges I’ve run into is that I don’t fully understand the full lifecycle of a generated map in AoE4—specifically, when and how it’s appropriate to spawn persistent objects such as buildings.
I’ve checked various tutorials and documentation but haven’t found a clear explanation or working example that does exactly this.
Has anyone managed to generate a map and programmatically place buildings (not just terrain or resources) as part of the generation process? If so, could you point me in the right direction or provide a small example?
Any help would be greatly appreciated. Thank you!