Page 1 of 1

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

Posted: Fri May 03, 2013 4:04 pm
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

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

Posted: Wed Dec 18, 2013 6:49 am
by tr_warrior
AI makes fine work by those walls UNLESS you ally with them. Walls all over your base.

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

Posted: Fri Dec 20, 2013 12:47 am
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