TheSuperHackers / GeneralsRankedMaps

Generals Zero Hour Ranked Maps
MIT License
8 stars 6 forks source link

[Candidate 3v3 Aeon of Excalibur ZH v5] AI is unable to build tech tree until it reached Supply Docks very far away #489

Open xezon opened 11 months ago

xezon commented 11 months ago

Observed behavior

AI is unable to build tech tree until it reached Supply Docks very far away.

Expected behavior

AI can build its tech tree early without problems.

Screenshots

shot_20231125_173708_18

shot_20231125_173712_19

xezon commented 11 months ago

When playing 1v1v1v1v1v1 then the center AI will not build a Power Plant and anything else, perhaps because it cannot find a Supply Dock.

shot_20231125_175611_21

toirehantaa commented 11 months ago

it's a 3v3 map. Idk why you are even trying a 1v1v1v1v1. AI players can't build near enemies. They are too close. That the AI only builds near supply docks and not crates is due to the hardcoding of its behaviours. Not a map problem. Close the blocker please

xezon commented 11 months ago

Perhaps place an empty Supply Dock under the terrain to trick the AI into building Supply Depots?

toirehantaa commented 11 months ago

I fear that this will completely break the map :,) Take a look at my map called "Urban Downfall" - I implemented a new thing called stacked supply docks. You can still collect from the top one technically even though you have a supply at the bottom. I suspect that for money collection, the height doesn't matter. So the AI and perhaps even the player will be able to collect from a supply stuck below the ground

toirehantaa commented 11 months ago

I also suggest you to not flag AI problems, except for when they don't work at all. Because they are always related to the AI itself and not to the map, sadly.

xezon commented 11 months ago

The map design must consider technical limitations and try to find ways to avoid running into problems.

To give example, if a certain asset placed in a map was crashing the game client, then the right course of action would be to not use that asset, instead of blaming the asset of being faulty.

toirehantaa commented 11 months ago

image image image I'd be willing to change the crates into supply docks under the condition that they are sunken into the ground like this - as the supporting platform does not fit the base layout the slightest, further than this is something I don't want to do

toirehantaa commented 11 months ago

this would be fixing the AI building problem, so there's that

xezon commented 11 months ago

I see that space is tight. Supply Dock looks odd when sunken and clipping into mountain. Would it perhaps be possible to elevate the Docks over the mountains and water by placing some structures underneath that would setup the foundation for it?

Jundiyy commented 10 months ago

If the map is made for 3v3 then AI should be considered that way, it won't build properly if it has an enemy next to it, especially early on. In this case, the testing should be done as teams and not Free For All.

AI will only gather from x amount of money from Crates or Docks, otherwise will ignore making a Supply there, it's been a while but I think it was $10,500. Unless there are no Crates and Docks with that much money on the map.

xezon commented 10 months ago

AI test was done in 3v3 and 1v1v1v1v1v1. This report is mainly concerned about 3v3 AI setup.

Jundiyy commented 10 months ago

I can't see any Docks in the base. If that's the case then the AI will not build up in the base. As mentioned above, there is a minimum amount required on the Docks or Crates before the AI will go there. You'd need to have one of the crates with a lot more money in the Base. If the problem is due to the Docks then I would remove the blocker, perhaps manual scripts could help here, never tried it though. If a map has no Docks at all then I've seen the AI build near Crates.

xezon commented 10 months ago

Making one crate high value is also an option if it solves this issue. It would violate one of the Ranked Maps rules but having better functioning AI would be preferable I believe.

toirehantaa commented 10 months ago

I wont be editing small supply crates for the sake of having AI work on the map - since it's against the rules and since they give no optical feedback that they are having a higher value. It already is a problem for AI to be so close to each other in a team, the building space is rather limited for them anyways. You guys will have to accept that this map is not well suited for AI. As mentioned above, I can offer to put supplydocks into the ground like this if you really want AI to work properly, but this is as far as I am ready to go. I wont let the hang from the cliff like said before, it does not suit the style. So we will have docks like this or we will go back to crates - you decide

xezon commented 10 months ago

Yes changing value of Supply Piles is not optimal either. Either way it would violate current rules. Perhaps someone else has a clever idea.

Who is in favor of leaving AI as is? AI needs to drive along half the map before it can start building tech tree, so in practice it will be very easy to beat AI on this map by simply intercepting the worker unit on the side lanes.

xezon commented 10 months ago

Tanso has requested to demote this from blocker. Demoted.

xezon commented 9 months ago

I tested new design in map. It fixes the AI build. But it does not look good.

Some of the Supply Boxes clip into terrain.

shot_20240122_191243_13

Some moving lights are visible on the terrain.

shot_20240122_191256_14

And when the Supply Dock is depleted, then there will be a structure sunk into the terrain, barely visible but selectable.

shot_20240122_192516_17

Perhaps put 1 proper Supply Dock at the back and Supply Piles at the front? Then AI can share the supply at the back and build their tech tree.