Thread Tools
Old January 1, 2001, 16:31   #1
ACOLKitty
Prince
 
ACOLKitty's Avatar
 
Local Time: 02:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Triangle of Death Founding Member and Ambassador to Polytubbie land.
Posts: 334
Fixing the passive AI.
I have been testing out some of the mods that have been suggested for making the AI more aggressive. I implemented Matte979 and other suggestions and was quite surprised at the increase of aggression in the early game.

However it seems there is another problem. If you are the most powerful civ you will not be attacked. In the test game there are 8 civs, 2 peace treaties, 2 civs that hate me with cease fires that are very old and then the rest dislike me. I am laying on HARD for this test.

I am ranked #1 because af an immense economy despite being behind in tech and military.

To see if I would be attacked I disbanded ALL of my units and just ran 50 turns.

Not one attack. A few offers to exchange maps and a couple of spy attampts.

---

---

So in other words, the mod only works if you are weaker than the computer, which doesn't last long in my games.

I am going to start hunting for the code to change this if anyone knows whare it is and how to change it....
ACOLKitty is offline  
Old January 1, 2001, 18:49   #2
BlueO
Warlord
 
Local Time: 01:48
Local Date: October 31, 2010
Join Date: Dec 2000
Posts: 144
The samething happened to me, when I was playing on very hard, 25 ai. None of the ai ever attacked me, except at the beginning. I eventually got the lead, but one of the ai was closing in on me, very very close. After I got nukes, I launched my assault on this ai and noticed that it did nothing at all. I eventually turned on fog of war and noticed that it had 10 10+ stacks fortified around a city along the rail network.

I got suspicious, so I put some additional rails around them. Next turn, a couple of those units budged. Put some more rails, no effect. So I deleted a couple stacks here and there, and behold, a lot of those stacks began to move! Several turns later, all the cities I captured, the ai took back. It even launched assaults on my border cities with stack 10 armies! I lost my capitol too (it wasn't very foritifed).

In summary, if the ai has too many units, it'll all eventually get stuck around one of its city due to its poor road network. (ie, a big stack moving along the road, can't pass through a city with huge stacks in it. If too many big stacks converge on this city, they'll all get stuck and fortify themselves. This traffic jam will increase, until all of the ai's mobile units get stuck) I got disheartened by this new discovery in the ai, I never completed my game...though I might continue later to see if the ai can defeat me, after I unclutter all of its fortified units...
BlueO is offline  
Old January 1, 2001, 19:11   #3
ACOLKitty
Prince
 
ACOLKitty's Avatar
 
Local Time: 02:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Triangle of Death Founding Member and Ambassador to Polytubbie land.
Posts: 334
I thought of that since I read it somewhere. Didn't help.

I went back to where I had started the test and reset the turns to 0, changed all my production to infrastructure, and deleted all my units except 2 diplomats and a spy. I linked all the AI cities to ine by railways and changed all my cities to have all scientists so they would stop growing.


After cycling through 45 turns one of my two peace treaties was violated when a cannon attacked my diplomat who was standing next to an empty size 25 city. The cannon then fortified next to my open city and remained there for a long time. The next turn my other diplomat was killed by another civ.

I then kept cycling turns. troops would come up to my empty cities and fortify outside of them.

-turn 91 I declared war on all the other civs and broke cease fires.
-turns 101-121: 7 of my cities were taken. All but 1 were below size 10.
-turns 122-162: was sent 5 cease fire requests from different civs.
-turn 163: placed enemy units outside of half my cities.
-turn 180: Turned it off and went online.

This left me with 15 large cities that were undefended surrounded, and not producing anything. The computer did pirate and raze a few times over the 180 turns but was incapable of taking my cities.

Great huh?
ACOLKitty is offline  
Old January 1, 2001, 22:10   #4
Cyrius
Chieftain
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Minneapolis, MN, USA
Posts: 71
Two questions:

1. What difficulty level?

2. Did you try provoking the AI's in any way? I think this may be necessary. Try threatening, demanding gold and techs and stuff, spying continuously (and trying revolts) park a few units on AI's territory and just leave em there, ect. ect.

Of course, you probably shouldn't have to provoke the AI to get it to attack you. Aggressive personalities should attack you on their own, I suppose. Hmm.

(edit)
I'll tell you what just happened to me. I started a game on Hard, and found myself near the German (aggresive imperialist). He was encroaching on land I wanted, so I parked a warrior near his size one city and threatened him to give it to me or else I would destroy it. Of course, he refused, and I promptly destoyed it. Then, I fortified the warrior, and he later destroyed the warrior. Then, much to my suprise, he marched an army of 2 archers and a hoplite down and attacked my capital and took it by force. I later recaptured the captial and went on an all-out offensive, using his captured cities to produce more units to fight him with. Currently, he's tied up in defense and doesn't send anything to attack my home cities besides slavers (sent two after me already). Curious thing is, that while he had my capital he built a mine and a city wall instead of more troops. Bizzare, huh? Well. At least he attacked my capital! Currently I'm trying to attack his 12-stack capital with my 12-stack army and loosing again and again. I need catapults.
[This message has been edited by Cyrius (edited January 01, 2001).]
Cyrius is offline  
Old January 1, 2001, 23:23   #5
WesW
Apolytoners Hall of Fame
 
WesW's Avatar
 
Local Time: 03:48
Local Date: October 31, 2010
Join Date: Mar 2007
Location: Florence, Al., USA
Posts: 1,554
Great thread here, guys. This is the kind of info I need to figure out how the AI works and how to improve it.
I think most of the problems you have described can be fixed, it's just a matter of studying the right text files.
WesW is offline  
Old January 2, 2001, 00:36   #6
ACOLKitty
Prince
 
ACOLKitty's Avatar
 
Local Time: 02:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Triangle of Death Founding Member and Ambassador to Polytubbie land.
Posts: 334
quote:

Originally posted by Cyrius on 01-01-2001 09:10 PM
Two questions:

1. What difficulty level?

2. Did you try provoking the AI's in any way? I think this may be necessary. Try threatening, demanding gold and techs and stuff, spying continuously (and trying revolts) park a few units on AI's territory and just leave em there, ect. ect.

Of course, you probably shouldn't have to provoke the AI to get it to attack you. Aggressive personalities should attack you on their own, I suppose. Hmm.

(edit)
I'll tell you what just happened to me. I started a game on Hard, and found myself near the German (aggresive imperialist). He was encroaching on land I wanted, so I parked a warrior near his size one city and threatened him to give it to me or else I would destroy it. Of course, he refused, and I promptly destoyed it. Then, I fortified the warrior, and he later destroyed the warrior. Then, much to my suprise, he marched an army of 2 archers and a hoplite down and attacked my capital and took it by force. I later recaptured the captial and went on an all-out offensive, using his captured cities to produce more units to fight him with. Currently, he's tied up in defense and doesn't send anything to attack my home cities besides slavers (sent two after me already). Curious thing is, that while he had my capital he built a mine and a city wall instead of more troops. Bizzare, huh? Well. At least he attacked my capital! Currently I'm trying to attack his 12-stack capital with my 12-stack army and loosing again and again. I need catapults.
[This message has been edited by Cyrius (edited January 01, 2001).]


I started the game on Hard since this was only the second time I played it (going to get my money worth
)

In the beginning game I usually run into a similar situation that you describe. The computer attacks, fights yadda yadda yadda. After a while it just stops trying.

Before just cycling turns I had been picking on the computer in all kinds of ways, threats, requests for gold, etc.

It never did anything but the diplomacy was pretty bad against me.

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

For the next test.

I did one more test for aggression.

Someone made a smartass comment about noone ever dying and if you only built one city you would be around till the end of the game as long as you didn't do anything stupid (like disbanding your city and fighting a babarian with your settler).

I started a small map on HARD with 8 civs, built my 2 cities Sorry, not 1), placed them both on default city manager and started cycling turns.

The only things I did was make PW the highest and destroy some troops every so often because of the messages about not being able to build more troops.

Here is everything that happened.


I met all the civs.
2 declared war on me because they were angery about my embargo against them (this has happened to me before, anyone else?), on turn 308 I recieved 2!!! threats for money, both of which I declined, on turn 479 I was bombarded by a cannon and then it rolled away.

That is it. I stopped at turn 636. All the civs were still alive.

I cannot see how the computer can ever win.

They cannot form alliancs with each other-no diplo
This also prevents them from ever covering 60% with obeliscs-no science
They never kill each other off- no war victory.


This game would be awesome if the computer had diplomatic relations with each other and accually attacked.
ACOLKitty is offline  
Old January 2, 2001, 01:13   #7
Alpha Wolf
Chieftain
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Feb 2001
Location: Prince of the Barbarians
Posts: 0
I'm playing on impossible with 5 other civs on a world with 3 large islands. The zulus were the only other civ on my island. i manged to find the chokepoint first and stacked troops there til I had enough PW for a fort. The zulus tried to send a few same stacks against the chokepoint but they are on pretty bad land and cant produce much altho they did build ramayana. BTW, Attila also managed to BUILD, not capture Hagia Sophia.

I crossed over to another island and ran into the chinese. We traded maps and to my horror they were everywhere. They had sliced thru the Welch heartland leaving nothing but a few small outpost cities. I'm only at 300ad but it looks like the chinese are running thru the remaining 2 civs also. I've been watching cities change hands altho the largest stack in the field I've seen is 8, but the Zulus have one city fortified with 11 and without catapults yet, it'll be to costly to take that city..for now!!! Surprisingly, even tho I'm playing the hardest barbarians, I havent seen much of them, and when i do, the civs seem to be attacking them immediately.

------------------
History is written by the victor.
Alpha Wolf is offline  
Old January 2, 2001, 19:35   #8
BlueO
Warlord
 
Local Time: 01:48
Local Date: October 31, 2010
Join Date: Dec 2000
Posts: 144
Well, I continued my last game where I found the cpu had units cluttered up. I wrote a simple slic code to unclutter them. To make the long story short, the cpu continued to be pretty passive, it did attack and conquered 2 of my cities, but I took them back pretty easily. After that, the cpu didn't bother me one bit, even after I took over half of its cities.

I'm beginning to think, how aggressive the ai behaves is tied in with the overall ranking. The best game I had was on impossible setting, 8 ai, giant map. I was kept to the 4th overall ranking, and the ai was extremely agressive. It was always retaking cities after I captured them and I was barely expanding. I eventually lost when nuclear fallout covered the land with dead tiles (after I launched a nuke at a cpu for invading one of my cities, and it countered with 4 MAD nukes!!!), and I hadn't researced conversation. The ai had, and they were rebuilding the dead tiles...while my whole empire is pretty much covered in black.

I'm not saying modifing the strategy and goal files isn't important, they are to make the cpu more aggressive and attack each other, but if the human player's overall ranking becomes too high, then none of those setting matters. I'm going to start a new game on very hard setting, and make sure to stay behind the cpu's overall ranking, to see if they'll remain aggressive. If they do, then it would seem, the best solution is to redo the ranking systems...or force the ai to use military ranking instead of overall ranking as an aid to determine who they attack.
BlueO is offline  
Old January 3, 2001, 01:45   #9
Bluevoss
Prince
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Orlando, Florida
Posts: 326
I've got a hard game going with the changes Alpha Wolf suggested (I think he came up with the timeslice changes). I'm also playing with 10 attack pt Coracles. Now, there is a mediteranian in my game. I've managed to bottle it up with some units. For a while, I would sink anything that came in. But its MORE EFFECTIVE to take those same fleets and just park them all over the place, making a barrior to entry. The Persians just mill around out there and give up and go away.

Talk about passive-agreesive.

Then I sent three Coracles out to explore the world. While I saw lots of enemy units (some stacked to '2') (all mine are singles), nobody bothered me. Could it be that the AI dosn't know how to use Coracles in attacks (even though they have 10 points now). Is there something else I need to set?

I have an email in to activision, asking what their plans are, AI-wise. Sheesh. I hope we don't have to build this game ourselves....



------------------
Bluevoss-
Bluevoss is offline  
Old January 3, 2001, 17:52   #10
ACOLKitty
Prince
 
ACOLKitty's Avatar
 
Local Time: 02:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Triangle of Death Founding Member and Ambassador to Polytubbie land.
Posts: 334
That is why I ran the game without ever doing anything. I was so far behind in everything that the rank should not have mattered. When there are tanks rumbling by your city and you have 6 hopolites fortified, the enemy should kick your ass.
ACOLKitty is offline  
Old January 3, 2001, 18:08   #11
Bluevoss
Prince
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Orlando, Florida
Posts: 326
So who is working on the AI? Activision? Individuals? Teams?

I'm just trying to get a handle on where this is going. Can the AI be fixed? I'd sure hate to let this thing slide back into the dead CD drawer.

Just a thought - I never got a chance to really play CTP1 (I played a little, but my life was sorta busy back then). My questions are...

1) Was the game more aggressive? And...
2) Was the code different? Or are they using the same background code to run things.

My thought (my long-shot through) is that we might be able to look at the CTP1 code to get the CTP2 AI jumpstarted.

Bluevoss is offline  
Old January 3, 2001, 19:17   #12
colorme
Warlord
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Nov 2000
Posts: 122

I haven' t done much modding for CTP1, but my understanding is that while the Slic used is similar to CTP2, the various AI database files are different. In particular, there were these .fli files in CTP1, which were similar to the `Strategic states' of CTP2. I would suspect most of the game engine is similar though. The problem of aircraft running out of fuel, and aircraft-less aircraft carriers existed in CTP1 also. AI was not particularly aggressive there either, but I remember it making some decent attacks.
colorme is offline  
Old January 5, 2001, 03:37   #13
ACOLKitty
Prince
 
ACOLKitty's Avatar
 
Local Time: 02:48
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Triangle of Death Founding Member and Ambassador to Polytubbie land.
Posts: 334
CTP1 was an abortion that in my opinion was unplayable. It did attack though.


CTP2 is playable, but there is no point. There is no challenge. It is just a Sim game without the fun or graphics.
ACOLKitty is offline  
Old January 5, 2001, 04:19   #14
Alpha Wolf
Chieftain
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Feb 2001
Location: Prince of the Barbarians
Posts: 0
Take a look on my webpage for some changes that I made. Most are marked by JAW but not all of them. i have very active barbarians and AI. In fact, in my last game the barbarians grouped in a stack of 12 to take my 2nd best city. It bypassed a city that had better defenses to hit this one and I had 3 archers and 4 hoplites in it. Guess I needed to build a city wall. I've seen barbarians from a hut step back, group then attack, because one on one they would have lost.

I throw files up there so I can look at them at lunch but its not really setup as a mod. i had hoped to get more things like natural disasters figured out and I wanted to make sure that the AI was more aggressive on a regular basis and that my first few tests games werent flukes.

------------------
History is written by the victor.
Alpha Wolf is offline  
Old January 5, 2001, 20:36   #15
joe77
Chieftain
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Jan 2001
Location: Seattle, Washington US of A
Posts: 26

I am one of those folks who went it and changed the Powerbonus and the alloted time per turn for the ai...and I beleive it those changes made a significant differnce in the aggressiveness of the ai...the computer still only survives my wrath on impossible level because it cheats like Sean Connery on Celeb Jeopardy but its way more interested in looting my cities and pilaging my women and children than ever before...the next step IMHO is to teach it to make grand sweeping offensive as right now all it does is peck away at the edges of my empire.

-Joe
joe77 is offline  
Old January 7, 2001, 05:22   #16
Basileus of the Romans
Settler
 
Local Time: 09:48
Local Date: October 31, 2010
Join Date: Jan 2001
Location: United States
Posts: 23
Sorry in advance for the length...

I recently finished a hard-level game with some customized civs which had some examples of what you guys are talking about.

Perhaps the government types or aggression factor has something to do with fixing the AI?

I hope this information can be of some help.

Here is the overview of my game.

Central Continent (mostly plains, few rivers, with large mountain ranges in the center)

-The Byzantines (player, CEASAR, SCI_MANY) Was Monarchy, Theocracy, Democracy, Corporate Republic, then Virtual Democracy. Won by Science Victory in 2250 with 62 cities. Peace treaties refused by the Mayans and Arabians. Science pacts with Greeks and Carthaginians. Trade pact with Carthaginians. Alliance with Carthaginians. All pacts and treaties were initiated by the player.

-The Nicaraguans (STALIN, WAR_FEW) were defeated early by the player while in Tyranny. They had no contact with anyone. They were in the Ancient Age.


Northern Continent (Large forests and some grasslands, plains farther south)

-The Greeks (CEASAR, WAR_FEW) were Fascist for most of the game, then went to Corporate Republic when it was available. They were in constant war with the Native Americans and the Arabians, went to war with the Mayans after a long time (though did nothing against them), went to war with the Indians after the player began building the Solaris Wonder and were on bad terms with everyone else. They were on good terms with the player after regular donations of gold and technology. At the end of the game, they had conquered four cities (two Arabian, two Indian). They ended the game a Corporate Republic with 13 cities. The main Greek countryside was mostly plains. They made it to the Genetic Age with some help from the player.

-The Arabians (customed civ, DEGAULLE, WAR_FEW) were Fascist when first encountered, and remianed so for the entire game. They were in a constant state of war with the Native Americans, the Greeks, and the Indians. They were on bad terms with everone else. They ended the game a Fascism with 5 cities. They managed to capture one NA city early, and the NA's did not bother to retake it, even though it was in the middle of NA lands. The Arabian countryside was almost entirely forest and tundra. They remained in the Modern Age.

-The Native Americans (NADER, WAR_FEW) were Democracy when encountered, and remianed so until Corporate Repblic was available. As stated above, they were in constant war with the Greeks and Arabians. They were on bad terms with everyone else. The NA lands were mostly forest with some grassland. They eventually colonized some islands to their south peacefully. They ended the game a Corporate Republic with 12 cities. They remianed in the Modern Age.

Western Continent (forest, swamp, and grassland)

-The Indians (STRANGELOVE, SCI_MANY) were Democracy the entire game. They were at war with the Carthaginains, the Mayans, and the Greeks. India was mostly forest and swamp, with large cities in the western grasslands. The Indians did some colonizing outside of their home continent, but the colonies were taken by the player. They ended with 8 cities (about 17 before the player took many through cyber ninjas/egalitarian act). The Indians made it to the Genetic Age on their own.

Southern Islands (grasslands, mountains, and forest)

-The Carthaginians (customed civ, GHANDI, SCI_FEW) were Fascism when first encountered, but changed to Democracy when available, then to Corporate Republic. They were in constant war with the Mayans and Indians, allied with the player (after massive aid in the form of gold and techs) and on bad terms with eveyone else. The Carthaginians were large colonizers in the beginning, but their overseas colonies were all conquered by the Mayans and the Indians. The Carthaginians' home island was almost entirely plains, with some desert. They ended with 14 cities (four given by the player) and a Corporate Republic. They made it to the Genetic Age with massive help from the player.

-The Mayans (STALIN, WAR_FEW) were Fascism when encountered, and remianed so until losing a major war with the player (whereupon four Mayan cities, including the capital, were nuked), whereupon they became a Corporate Republic after a while. The Mayans ruled two large islands. One (the home island) was very mountainous and forested- the major cities were in the grassland (those were the ones nuked, BTW). The second island was largely conquered from the Carthaginians, and was mostly forest with some grassland and mountians. The Mayans started (and never finished) wars with the Carthaginians, the Indians, and the Greeks, and eventually accepted a cease-fire initiated by the player after losing about 6 cities. The Mayans ended with about 11 cities in the Modern Age, though they had about 20 at their height. They did capture 4 cities in India, and took 3 cities on the Carthaginian home island.

Most of the conquering aside from the loss of the Carthaginian colonies was after Cargo Helicopters became available to transport infantry units. A great deal of fighting was done with Tanks, Fascists, and Machine Gunners. The Mayans liked aircraft and did periodic bombardments on cities.

Again, sorry for the length, but I hope this information is of some use.
Basileus of the Romans is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:48.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team