Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-General/Help/Strategy/Multiplaying-Archive > News for all the AI programmers out there...
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Alisia is offline Alisia
Chieftain
Defender of the AI
Dec 2000
time: 05:14
Post  Old Post 07-01-2001 18:14
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
News for all the AI programmers out there... Support Apolyton, buy Galactic Civilizations

Well, reading my post "If you have comments about..." sure pointed out something. We have a lot of AI programmers out here

AlphaWolf
Dale
The Viceroy
Alisia

And off course a lot of people that are familiar with the textfile system of CtP2.

Now, here my sugestion: in stead of talking crap about the AI, let's work together. Stand as a group, and we might get premission from Activision to "tweak" the AI. They might even be able to provide us with a comlete list of all the values the AI looks at, and those that it uses to make a move. That would allow us to try our hands at a better AI, and Activision wont have to do a thing.

Perhaps an idea?

MarkG
Guest

Not Yet
time:
Post  Old Post 07-01-2001 19:11
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton buy from Amazon

when it comes to the text files, you dont need any permission from activision to change anything in it....

unless you're talking about geting into the exe...

Alisia is offline Alisia
Chieftain
Defender of the AI
Dec 2000
time: 05:14
Post  Old Post 07-01-2001 19:17
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

Okay... But do you think Activision might provide us with a list of all the commands? They probably have it lying around somewhere... Once we can get our hands on those, we can re-write parts of the AI, instead of just trying to change things...

BlueO is offline BlueO
Warlord

Dec 2000
time: 21:14
Post  Old Post 07-01-2001 21:16
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase the size of your Attachments

Actually, I've already begun some slic programming to make the ai more challenging. I have done all I can to the text files. The ai is now able to conquer its neighbors (unlike the shipped version), but it still rarely attack me.

So, using the activision documentation posted earlier on the creation forum, I came up with a pretty simple attack ai, that should launch waves after waves of armies against the human player. Its simple:

1) AI picks a big stack of army.
2) AI moves that stack to nearest human city.
3) AI attacks that city.
4) repeat.

To make sure the AI won't send everything, it will only send one stack at a time.

I have some success getting the code to work, but I still got lots problems to work out. I'll probably post the result of the new ai, in the creation forum when I'm done.

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 07-01-2001 21:21
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton buy from Amazon


Alisia,

Clearly, you've not been following the AI modification posts in the 'creation' thread. You're a little late in suggesting this

MrLeN is offline MrLeN
Chieftain
Melbourne
Jan 2001
time: 05:14
Post  Old Post 07-01-2001 21:46 Visit MrLeN's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase the size of your Attachments

quote:

Originally posted by colorme on 01-07-2001 11:21 AM

Alisia,

Clearly, you've not been following the AI modification posts in the 'creation' thread. You're a little late in suggesting this


Clearly, so what if she hasn't?

------------------
It's better to close your mouth and let everyone 'think' you're stupid, than open it and let everyone 'know' you are.

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 08-01-2001 10:59
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2


Well, I was just suggesting that it may do her some good to go back and check what AI mods have already been attempted, before she goes about bad-mouthing the
"We want a better AI" camp.

A lot of these mods we've tried are not the "make random changes", that she once implied.

So, Alisia, to paraphrase what you said - Go and do something useful, instead of just being the defender of the AI!

Ok, I was kidding there ...


Alpha Wolf is offline Alpha Wolf
Chieftain
Prince of the Barbarians
Feb 2001
time: 05:14
Post  Old Post 07-01-2001 23:27 Visit Alpha Wolf's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase the size of your Attachments

quote:

Originally posted by BlueO on 01-07-2001 11:16 AM
Actually, I've already begun some slic programming to make the ai more challenging. I have done all I can to the text files. The ai is now able to conquer its neighbors (unlike the shipped version), but it still rarely attack me.

So, using the activision documentation posted earlier on the creation forum, I came up with a pretty simple attack ai, that should launch waves after waves of armies against the human player. Its simple:

1) AI picks a big stack of army.
2) AI moves that stack to nearest human city.
3) AI attacks that city.
4) repeat.

To make sure the AI won't send everything, it will only send one stack at a time.

I have some success getting the code to work, but I still got lots problems to work out. I'll probably post the result of the new ai, in the creation forum when I'm done.


1. what activision documentation? or are you referring to the SLIC doc?

2. I've been having the same problem with my changes. The AIs pound each other, the barbarians pound on everyone but even they avoided my best defended cities. Altho i've lost many a city now. The biggest problems I see with the AI attacking are distance, and the pre attack AI calculation to determine if it can win. In my attempt to make the AI defenses better, I may have made it impossible for them to launch any attacks.

3. a single stack cant sustain an offensive very long. I've be victimized by some 12 unit stacks but with no replacements for their losses, eventually I win that war by wearing down their stack.

4. I'd be interested in what you already have done and compare it to my changes in whatever stage they are currently in.

------------------
History is written by the victor.

Alisia is offline Alisia
Chieftain
Defender of the AI
Dec 2000
time: 05:14
Post  Old Post 08-01-2001 00:49
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Okay, this effort was shattered before it even started

Oh, well, fine with me. I can live with the old AI. I just thought I could contribute to the community. Seems I was wrong.

Ta, life is hard, no?

The Viceroy is offline The Viceroy
Prince
tu mumbai se, mai Bombay se
Nov 2000
time: 05:14
Post  Old Post 08-01-2001 01:28
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization 2

Alisia,

I agree with bases that we should be doing something about this .... Activision/Firaxis/who ever, should take the time to at the least play test using a selected group from Apolyton .. As they are software houses themselves, I can't see them asking for coding assistance .. although I would gladly help out (for a price).

I think there is a wealth of Civ experience second to none here, from the players who have just started, to us "old" CIV1 players .. We could make a difference..

Although I wouldn't refer to our AI knowledge as "talking Crap" .. i get your point, its pretty meaningless moaning once the ship is launched..

Activision (and others) .. please take note .. we'd like to HELP! .. and were always here to help you make the damn best game .. just SHOUT!

------------------
"Wherever wood floats, you will find the British" . Napoleon
[This message has been edited by The Viceroy (edited January 07, 2001).]

BlueO is offline BlueO
Warlord

Dec 2000
time: 21:14
Post  Old Post 08-01-2001 02:30
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Increase Your PM Length

quote:

Originally posted by Alpha Wolf on 01-07-2001 01:27 PM
1. what activision documentation? or are you referring to the SLIC doc?

2. I've been having the same problem with my changes. The AIs pound each other, the barbarians pound on everyone but even they avoided my best defended cities. Altho i've lost many a city now. The biggest problems I see with the AI attacking are distance, and the pre attack AI calculation to determine if it can win. In my attempt to make the AI defenses better, I may have made it impossible for them to launch any attacks.

3. a single stack cant sustain an offensive very long. I've be victimized by some 12 unit stacks but with no replacements for their losses, eventually I win that war by wearing down their stack.

4. I'd be interested in what you already have done and compare it to my changes in whatever stage they are currently in.



yeah, the slic code documation. That really helps a lot, without it, I don't think I could write a single line of slic code.

I have the same problem with the ai as you. Except for the one game I had in impossible, the ai rarely attacks me. And when they do, I have no trouble taking the cities back because the cpu only sends that one stack. I've changed all sorts of values in the ai text files, but the only real difference I've seen, is changing so the ai will use a lot more of its production points for unit support, and the siege powerbonus. I also put in coldenemy and neutral targets in the siege goal. After all, the cpu don't use dipolmacy on each other anyways. And I find it extremely lame that I can take a cpu city, get a ceasefire. Then repeat until the cpu has nothing left... not that ceasefire do all that much since the cpu is already so passive.

In my slic code, I take a big stack, and keep giving it MoveToPath order to a human city. The problem now is, the ai keeps taking that stack and order it to defend. I need to find a way to relinquish control when that happens. I also need a way to gather an attack force, instead of letting the cpu do it itself. In my observations, the cpu has tons of forces, but all of them are defending. I need to take a unit here and there, and move it to a gathering point. There's probably more problems I haven't foresee...


[This message has been edited by BlueO (edited January 07, 2001).]

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 08-01-2001 04:10
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Browse Apolyton AD-FREE

quote:

Originally posted by BlueO on 01-07-2001 04:30 PM
In my slic code, I take a big stack, and keep giving it MoveToPath order to a human city. The problem now is, the ai keeps taking that stack and order it to defend. I need to find a way to relinquish control when that happens. I also need a way to gather an attack force, instead of letting the cpu do it itself. In my observations, the cpu has tons of forces, but all of them are defending. I need to take a unit here and there, and move it to a gathering point. There's probably more problems I haven't foresee...


[This message has been edited by BlueO (edited January 07, 2001).]


I've tried the same approach a while back. My impression is that the MoveToPath order doesn't work as you'd think it does. Try the MoveToOrder (the one that moves only one square). That definitely works. Only problem is, it is not clear then how to make the stack move along a particular path.

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:14
Post  Old Post 08-01-2001 07:12
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Browse Apolyton AD-FREE

quote:

Originally posted by Alisia on 01-07-2001 08:14 AM
Well, reading my post "If you have comments about..." sure pointed out something. We have a lot of AI programmers out here

AlphaWolf
Dale
The Viceroy
Alisia



Alisia,

Actually, I've only done the basics of AI programming. My training at uni was designed more at designing and flowcharting an AI, not programming it.

------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

Alpha Wolf is offline Alpha Wolf
Chieftain
Prince of the Barbarians
Feb 2001
time: 05:14
Post  Old Post 08-01-2001 07:56 Visit Alpha Wolf's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Increase the size of your Attachments

I assume she was referring to game AI programming. I've only taken one elementary AI class and that was years ago.

------------------
History is written by the victor.

BlueO is offline BlueO
Warlord

Dec 2000
time: 21:14
Post  Old Post 08-01-2001 08:25
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:

Originally posted by colorme on 01-07-2001 06:10 PM
I've tried the same approach a while back. My impression is that the MoveToPath order doesn't work as you'd think it does. Try the MoveToOrder (the one that moves only one square). That definitely works. Only problem is, it is not clear then how to make the stack move along a particular path.



Unfortunately, MoveToPath order seems to be the best if I can write my own path finding slic code. MoveToPath still works, because by repeating the order forever, eventually it'll work when the ai gets tired. I've seen the biggest stack on the board move in and out of a city as the slic code fights the normal ai code for control of that stack. Eventually, that stack will move toward me when the ai fills that city with some other units. (which leads me to think, each city must have minimum garrison filled...might have a solution to that)

The MoveOrder(army_t, GEA_Path, location_t, int_t) seems very interesting, but what the heck is GEA_Path and int_t? Hmm...maybe GEA_Path is a location array, and int_t defines how many items in that array?

The only order to work consistenly so far is the Battle order. I can give the Battle order anywhere in the world, and it'll eventually work...sort of. The stack will move toward one of its own cities, then suddenly, one of my cities will be attacked! Even if all of my defenders are wiped out, it won't be taken over because the ai stack isn't really there...weird, but I decided not to implement it because I want to see the ai approach my cities. Though, if all else fails, maybe I'll send each BIG stack I find the MoveToPath order to the human city, and pray that maybe one or two of them will make it through without the normal ai code taking them over.

I guess, this thread really should be move to the Creation forum.

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:14
Post  Old Post 08-01-2001 10:37
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Help yourself to an AD-FREE life

I took a bit of a look at the AI text files over the weekend, and IMHO, without actually being able to reprogram the AI, it's always going to provide a 2nd/3rd rate AI. By changing the text files there is just not that much we can do. So until Activision can release an AI which can kill me, I'm shelfing this game and gunna load up something else.

Maybe I'll have a go at SMACX. I never actually got around to loading it up even though I got it ages ago.

------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum 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
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0469 seconds (91.86% PHP - 8.14% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net