Thread Tools
Old December 2, 2000, 08:48   #1
MarkG
Guest
 
Posts: n/a
Weak AI? Give him more time!
i think giving more time to the ai will probably make it better.

open Const.txt under Call To Power 2\ctp2_data\default\gamedata and find these lines
quote:

AI_GOAL_TIME_SLICE 25 # time in milliseconds for an AI frame
AI_MAX_TIME_SLICE 250 # (in milliseconds)if the ai exceeds this time its turn is ended
AI_TOTAL_TIME_SLICE 3000 # (in milliseconds) if the total time in time in the ai player exceeds this its turn is ended


i've changed them to 75, 1250 and 13000 and it seems to have some effect.
 
Old December 2, 2000, 10:38   #2
marc420
Warlord
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jun 1999
Location: Oceania
Posts: 123
Thanks!

I saw those settings yesterday while browsing through const.txt, and I wondered if that would help.

I had an old, old chess program where you controlled the difficulty of the AI by controlling how much time the AI had to search for the best move. If you give it more time, it can run through more possibilities, and thus (hopefully) play smarter.

marc
marc420 is offline  
Old December 2, 2000, 17:43   #3
WesW
Apolytoners Hall of Fame
 
WesW's Avatar
 
Local Time: 03:50
Local Date: October 31, 2010
Join Date: Mar 2007
Location: Florence, Al., USA
Posts: 1,554
Here is what we did in the Med mod 4. This is from the Miscellaneous readme:

"AI_GOAL_TIME_SLICE 125 # time in milliseconds for an AI frame
AI_MAX_TIME_SLICE 1250 # (in milliseconds)if the ai exceeds this time its turn is ended
AI_TOTAL_TIME_SLICE 15000 # (in milliseconds) if the total time in time in the ai player exceeds this its turn is ended.
(These were all increased by a factor of 5)

Note: For those of you with older computers (generally under 300MHz), I would suggest that you increase the timeslice settings by an additional factor of five (for a total factor of ten), as these changes have been seen to have very significant effects on AI performance for those machines."
WesW is offline  
Old December 3, 2000, 17:51   #4
colorme
Warlord
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Nov 2000
Posts: 122

Mark,

Did you see a substantial increase in AI intelligence by increasing the AI time slice? I have a P3 450 MHz
colorme is offline  
Old December 3, 2000, 18:45   #5
MarkG
Guest
 
Posts: n/a
i did see a significant difference in the war part: much more attacks, with use of stacks(although he did some idiotic things too, like sending 1 catapult alone to attack a city), better defence(always has some bombarding unit), use of slavers(which he did anyway though)

in the diplomat part there was not much of a change: no sending of diplomats, basically waiting for to create an embassy and be "nice", etc

i would definately recommend you increasing those numbers though. it's worth a try
 
Old December 3, 2000, 19:57   #6
Kautilya
King
 
Local Time: 03:50
Local Date: October 31, 2010
Join Date: Feb 2000
Location: St Louis, MO
Posts: 1,905
Thanks for the tip.
Although if you increase it ten times does this mean that the computer will take exactly ten times for each move? My computer is a P2 300 so it's already quite slow in the latter stages.
Kautilya is offline  
Old December 12, 2000, 17:40   #7
Azmel2
Settler
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Aug 2000
Location: Santa Monica, CA USA
Posts: 9
quote:

Originally posted by MarkG on 12-03-2000 05:45 PM
i did see a significant difference in the war part: much more attacks, with use of stacks(although he did some idiotic things too, like sending 1 catapult alone to attack a city), better defence(always has some bombarding unit), use of slavers(which he did anyway though)

in the diplomat part there was not much of a change: no sending of diplomats, basically waiting for to create an embassy and be "nice", etc

i would definately recommend you increasing those numbers though. it's worth a try


I'm sorry to say that those values in const.txt won't have any effect on the ctp2 AI. The only way to get the AI to spend more time thinking is to play on the hardest difficulty level. I probably should have made this a parameter, but I didn't get the chance.

-- Richard
Azmel2 is offline  
Old December 12, 2000, 17:53   #8
pchang
King
 
pchang's Avatar
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Aug 1999
Location: Mill Valley
Posts: 2,887
quote:

Originally posted by Azmel2 on 12-12-2000 04:40 PM
I'm sorry to say that those values in const.txt won't have any effect on the ctp2 AI. The only way to get the AI to spend more time thinking is to play on the hardest difficulty level. I probably should have made this a parameter, but I didn't get the chance.

-- Richard


ARGGGHHHHH!!!!!!

Does this mean it didn't do anything in CTP1 either?
pchang is offline  
Old December 12, 2000, 19:31   #9
MarkG
Guest
 
Posts: n/a
quote:

Originally posted by Azmel2 on 12-12-2000 04:40 PM
I'm sorry to say that those values in const.txt won't have any effect on the ctp2 AI. The only way to get the AI to spend more time thinking is to play on the hardest difficulty level. I probably should have made this a parameter, but I didn't get the chance.
dear god, i must have been dreaming...
i'm telling you, it was smarter!

 
Old December 13, 2000, 14:48   #10
pchang
King
 
pchang's Avatar
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Aug 1999
Location: Mill Valley
Posts: 2,887
This thread would seem to indicate that the AI would perform much better on a 1GHZ Athlon than a 33MHZ Celeron.
pchang is offline  
Old December 13, 2000, 14:58   #11
MrFun
Emperor
 
MrFun's Avatar
 
Local Time: 04:50
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Illinois
Posts: 8,595
Hey Mark - does increasing the AI's time to make decisions enable it to transport a substantial attacking army overseas?
MrFun is offline  
Old December 14, 2000, 01:55   #12
MarkG
Guest
 
Posts: n/a
quote:

Originally posted by MrFun on 12-13-2000 01:58 PM
Hey Mark - does increasing the AI's time to make decisions enable it to transport a substantial attacking army overseas?
i havent played a game with that setting(e.g. i didnt have lots of sea)

 
Old December 14, 2000, 21:58   #13
marc420
Warlord
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jun 1999
Location: Oceania
Posts: 123
Hmm, like MarkG, I must have been dreaming. I'd have sworn it was playing better. I even got lazy and left my capital weakly guarded and it came over and took it from me. Yes, I actually saw the AI launch an attack.

So question: Do these settings do anything? And if so, what do they do? I'm curious, so I'd like to know if you can tell us anything without giving away any Activision secrets about AI programming.
marc420 is offline  
Old December 14, 2000, 22:21   #14
Rebel Rick
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Oct 2000
Location: Asuncion, Paraguay
Posts: 48
Off course there is an effect... i don't know why these people lie about that.

i saw the AI build 2-3 stacks of 12 units, attack-ranged, penetrate my front lines (not guarded), search for the "prettiest" cities, and launch attacks (i just was prepared inside the cities, if not i would have lost them easily)...

plus, they defend better... all that and more after the changes...
Rebel Rick is offline  
Old December 20, 2000, 07:45   #15
ChaosSpeeder
Settler
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Nov 1999
Location: Germany
Posts: 18
Hi,

quote:

Originally posted by Rebel Rick on 12-14-2000 09:21 PM
plus, they defend better... all that and more after the changes...


what are the other changes?

bye, Andre
ChaosSpeeder is offline  
Old December 24, 2000, 14:50   #16
Dyzee400
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Long Island, NY, USA
Posts: 85
Anyone find out if this really does anything?
Dyzee400 is offline  
Old January 5, 2001, 01:33   #17
Bed23
Settler
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jan 2001
Posts: 18
i played 2 weeks on a p100 (near a hundred hours)

i played on a medium map at medium difficulty with 3 or 4 AIs
near the end of the game(i was making the gaia controler) each turn was around 1 or 2 mins so i dont think this values are used in ctp2 sorry guys

that would have been great
Bed23 is offline  
Old January 5, 2001, 14:37   #18
Alisia
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Defender of the AI
Posts: 34
I think you need to be informed about something... Not sure, but I think you got something a bit wrong...

The time setting is the time it takes per unit and base to decide what to do. Increate the individual time, and it will look longer (or further away, if it is a unit) for a good move. The last slider is the total time it may take.

So, the more units an AI has, the longer a turn takes for him, that is also why the AI is slower at the end of the game (duh ). Trick is, when you dont increase the last number enough, the computer might "skip" units and cities because it is out of time. Increasing the first two settings too much will increase the time it takes for each "unit" too much, and you will have to wait about 10 minutes for every AI player
Alisia is offline  
Old January 5, 2001, 15:22   #19
Alpha Wolf
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Feb 2001
Location: Prince of the Barbarians
Posts: 0
I take back every "she's just a whiny girl thought that I had". Alisia, you seem to have a better grasp of how this game works than the average player. Any tips on inproving the diplomacy part? About the only thing I've looked into that so far is the no trepassing aspect. If you make that agreement, the AI will immediate fortify because its the moving that causes the breach of agreement not the actual presence of the unit.

------------------
History is written by the victor.
Alpha Wolf is offline  
Old January 5, 2001, 20:38   #20
joe77
Chieftain
 
Local Time: 09:50
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 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.

So erm Viva la Revolution and whatever

-Joe
joe77 is offline  
Old January 6, 2001, 14:12   #21
Slax
Prince
 
Slax's Avatar
 
Local Time: 04:50
Local Date: October 31, 2010
Join Date: Dec 1969
Location: London, Ontario, Canada
Posts: 657
Joe77, I think you will find in these threads (including this one) that these values are unused by CTP 2.

[This message has been edited by Slax (edited January 06, 2001).]
Slax is offline  
Old January 11, 2001, 06:41   #22
joe77
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jan 2001
Location: Seattle, Washington US of A
Posts: 26
heh well I feel like those changes did something...too bad for you if you didnt even try it cause some goofball said not too ..Azreal or whatever wrote the bad AI in the first place or what something to do with activision putting out this boo-boo...why should I listen to someone who put his name..so to speak...on an unfinish product...

and your canadian...I've played enough hockey in your country and listen to enough of your talk radio to know not to listen to anything you say..fast ferries my buttt-hole haha half your country plus alberta wants to break off...you guys are all messed up ...but the sushi is great in vancouver so I forgive you
joe77 is offline  
Old January 11, 2001, 09:06   #23
Slax
Prince
 
Slax's Avatar
 
Local Time: 04:50
Local Date: October 31, 2010
Join Date: Dec 1969
Location: London, Ontario, Canada
Posts: 657
Good luck fixing the game Joe77. Hope you get help.
Slax is offline  
Old January 12, 2001, 20:50   #24
joe77
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jan 2001
Location: Seattle, Washington US of A
Posts: 26
I'm sorry Slax that was a little harsh..my bad please dont be mad
joe77 is offline  
Old January 20, 2001, 11:23   #25
Changmai Beagle
Warlord
 
Changmai Beagle's Avatar
 
Local Time: 02:50
Local Date: October 31, 2010
Join Date: Oct 1999
Location: Corporate Warlord of the Great White North & Warmer Climes
Posts: 157
Has anyone been able to determine if this change does anything?
P.S. Joe77, just think - if the Hudson's Bay Co. had done a bit better job you'd be Canadian.
Changmai Beagle is offline  
Old January 20, 2001, 15:10   #26
kormer
Chieftain
 
Local Time: 09:50
Local Date: October 31, 2010
Join Date: Jan 2001
Posts: 58
I tested it on palpatines super-large world map. It was about the industrial revolution, and the whole world was filled up. It took about 15 minutes per turn with and without the changes on a 700mhz computer.
kormer 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:50.


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