Gotten the Computer AI to build two sets of walls - always!

Discuss, upload or download a new Scenario

Moderators: Global Moderator, Age Moderator

Post Reply
User avatar
murdilator
N3O Member
N3O Member
Posts: 249
Joined: Sat Sep 20, 2008 10:29 pm
Location: Norway

Gotten the Computer AI to build two sets of walls - always!

Post by murdilator »

Well gentlemen, we've gotten a feat under our nose.


Finally the Age of Empires III computer AI always builds walls, and I've made them do so from Industrial onwards.

I've uploaded a version on HG that is without the N3O Fan Patch, if any of you want to test against the AI there. Do note that it is not fully tested in comparison with my one on the newest N3O FP release, but it still will build the two sets of walls, and handles German Town Farmers shipment correctly.

Screenshots:

http://s402.photobucket.com/user/murdil ... ort=3&o=34

Upgraded Walls:

http://s402.photobucket.com/user/murdil ... ort=3&o=31

My walls:

http://s402.photobucket.com/user/murdil ... ort=3&o=28

I sneak attack him:

http://s402.photobucket.com/user/murdil ... ort=3&o=30

He already has all his units Imperial: (note that he played with a 20% handicap in this game; I may add more handicap like that, but make them focus on more other resources early on)

http://s402.photobucket.com/user/murdil ... ort=3&o=27

His Base: first wall has some gaps, but the second closes them off up above. Besides, this allows him to freely move his army without wasting wood:

http://s402.photobucket.com/user/murdil ... ort=3&o=24



Link to the Improved Wall-building AI for the original Game:

http://aoe3.heavengames.com/downloads/s ... ileid=3390


Newest version of the N3O Patch (we are heading back to the original idea of N3O FP, by adding as few buildings/units as possible, just improving the original game).

http://aoe3.heavengames.com/downloads/s ... ileid=3466


Note: this is inspired by a talk I had with Sporting_Lisbon. He told me the AI should always build and upgrade walls, so I just set a "rule" active in the AI coding, hoping that it would work, and it did. Then I added a second of the same rule type, and simply enabled it too upon the computer hitting Industrial. What would I know that the computer would build two walls simultaneously, and nearly beat me within 40 minutes? (I had a come-back victory, but it lasted 1 hour and 30 minutes).


Screenshots will be uploaded, prooving that what I say is true.


regards,


murdilator
Last edited by murdilator on Fri May 03, 2013 4:46 pm, edited 1 time in total.
"Feel the Might of the Sioux!" - Gall, when fighting and defeating your army at his own base.

---------------

Scenario Design Competition Participant 2009:

3v3 WildernessRoad: https://aoe3.heavengames.com/downloads/ ... ileid=2521
tr_warrior
Conscript
Conscript
Posts: 4
Joined: Wed Jan 09, 2013 6:58 pm

Re: Gotten the Computer AI to build two sets of walls - alwa

Post by tr_warrior »

AI makes fine work by those walls UNLESS you ally with them. Walls all over your base.
Last edited by tr_warrior on Wed Dec 18, 2013 8:19 pm, edited 1 time in total.
User avatar
murdilator
N3O Member
N3O Member
Posts: 249
Joined: Sat Sep 20, 2008 10:29 pm
Location: Norway

Re: Gotten the Computer AI to build two sets of walls - alwa

Post by murdilator »

You can delete their buildings and walls if they die by resigning.


Also, another suggestion is to build with the walls, and not against. Its true they build into your base. It's also true that it is quite positive, as they can never have the intelligence of a human player.


It builds a wall in a "ring" pattern right now, calculated with some randomization, etc. I'm not sure there are other intelligent ways that have been made to make them build walls otherwise.

You can manually adjust how far their walls extend, thought the first one ought to be 58.0, 59.0, or 60.0. Earlier versions, I only had one layer of wall, because yes, they did build into your base a bit. Nevertheless, later versions of my patch have included more gates for the AI, so that this does not make much of a problem.


regards,


murdilator
"Feel the Might of the Sioux!" - Gall, when fighting and defeating your army at his own base.

---------------

Scenario Design Competition Participant 2009:

3v3 WildernessRoad: https://aoe3.heavengames.com/downloads/ ... ileid=2521
Post Reply