|
|
|
 |
|

April 16th, 2004, 06:06 PM
|
 |
Lieutenant Colonel
|
|
Join Date: Jan 2004
Posts: 1,276
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
Quote:
Originally posted by Gandalf Parker:
I wonder how much "thinking" this would take. I usually comment that it doesnt matter how long it takes a turn to process because its a "pass turn file to host" type game. But AI improvements mostly affect solo players and improving the AI would do any good if it changes the game to something too slow to hold their attention.
|
As an SP nerd, I would gladly pay 400% in turn generation time for better AI without blinking, and probably 800% if it were pretty decent. But that is just my sole opinion.
Go Arralen go!
|

April 17th, 2004, 07:10 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
I think Castle building is more important to an AI win than the spread of units purchased. And the formula would be easier to test. In fact if you turn on --scoredump you get an html with numbers for everything which would make the math much easier in later games (not have to count provinces and such)
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

April 17th, 2004, 11:53 PM
|
Second Lieutenant
|
|
Join Date: Feb 2004
Posts: 529
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
You mean it would be possible to download a mod that improves the AI and lets it build castles?! When can I download it?
|

April 18th, 2004, 12:19 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
Quote:
Originally posted by splooger:
You mean it would be possible to download a mod that improves the AI and lets it build castles?! When can I download it?
|
No the modding doesnt support directly changing the AI. Im just saying that we are more likely to get a small change to the linear AI than ever getting a complete rewrite.
There are some MODs in the work which might make a difference but as far as I can see they will have to be a mod for each nation you want AI'd. They would do things like make castles cheaper and remove the light units that the AI loves.
There are also some MAPs which strengthen the AIs.
[ April 17, 2004, 23:48: Message edited by: Gandalf Parker ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

May 9th, 2004, 05:54 PM
|
Corporal
|
|
Join Date: Sep 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
All right, imho the AI should build castles like this:
code:
Province
Province - Castle & Province - Province
Province
Province - Castle & Province - Province
Province
Just multiply it in all directions.
[ May 09, 2004, 16:54: Message edited by: MStavros ]
|

May 9th, 2004, 06:33 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
Quote:
Originally posted by MStavros:
All right, imho the AI should build castles like this:
code:
Province
Province - Castle & Province - Province
Province
Province - Castle & Province - Province
Province
Just multiply it in all directions.
|
OK now test it. Play a game pretending to be the AI and do that, faithfully. See if you can beat the AI's with it.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

May 9th, 2004, 07:01 PM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
[quote]Originally posted by Gandalf Parker:
Quote:
Originally posted by MStavros:
OK now test it. Play a game pretending to be the AI and do that, faithfully. See if you can beat the AI's with it.
|
Actually, he can't test it yet; as he haven't suggested any police for when the AI should build castles. As soon as it's got enough money at the start of a turn? If it's got enough money after recruiting units? And so on.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|

May 9th, 2004, 07:37 PM
|
Corporal
|
|
Join Date: Sep 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
Yes I any suggestions? The older replies here are very interesting btw.
[ May 09, 2004, 18:38: Message edited by: MStavros ]
|

May 9th, 2004, 09:06 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
[quote]Originally posted by Leif_-:
quote: Originally posted by Gandalf Parker:
Quote:
Originally posted by MStavros:
OK now test it. Play a game pretending to be the AI and do that, faithfully. See if you can beat the AI's with it.
|
Actually, he can't test it yet; as he haven't suggested any police for when the AI should build castles. As soon as it's got enough money at the start of a turn? If it's got enough money after recruiting units? And so on. Yeah I was hoping he would notice it. If he blindly pursues his castle plan he would end up with no troops.
I figure the best castle-building time frame would be when the AI has enough money for a castle without saving. It would also be easiest to program. But his present configuration looks like it would be finding a location to build on at about the 12 turn into the game. Is that when one turns income is more than the cost of a castle?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

May 9th, 2004, 09:10 PM
|
Private
|
|
Join Date: Jan 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: SUGGESTION: AI castle building algorithm
To take the fort-building suggestion in a slightly different direction, (maybe it will spur someone's creativity), is anyone complaining about the temple building algorithm the AI has? If not, wouldn't it be possible to modify the temple building AI into a temple-or-fort building AI? As in, if the temple check passes but too many temples exist, start to focus on forts? If no suitable fort location is found, then revert back to building a temple this turn. That could answer the "when" to build a fort, and "how" to accumulate resources for the fort. My post doesn't deal with "where" the fort should be built, others have proposed options for that.
But if the AI can afford to build 200gc temples, it can afford to build a 250gc fort. And if it can afford to build 2 temples over a span of a couple turns, it certainly could have instead afforded to build the 450gc castle, and so on...
I don't know how the temple-building AI works exactly, whether it only builds temples when it has the 200gc at the start of the turn, or whether it saves the 200 over the course of many turns. Either could be adapated to fort-building. In the latter you just save over more turns, in the former you can just store/save 200gc (or 250 would be a better option for the initial save) until enough money is accumulated to build that fort.
The temple building AI is rather decent at getting the job done, so it handles a lot of cases by itself. Early game it takes a while for the AI to build their temples, so the forts would naturally come after a certain proportion of temples were built. And the AI would start to build a fort or two when it hit that time period where the AI starts to fill up every province with a temple (IMO this is about the prime time when forts should be appearing). However, late-game if an AI was conquered to only a few remaining provinces and had a temple in each, the building-AI would say 'focus on building forts', but the "where" condition in most cases would prevent the castle from being built [unless of course one of those remaining provinces was some choke-point / high resource / not adajcent to another fort type condition]. So the AI wouldn't in most cases "waste" money building forts late-game when it had a small territory size.
Of course there'll be some holes in the idea and/or limitations since its quite a rough draft, but maybe it'll give someone a more 'developed' idea.
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|