Announcement

Collapse
No announcement yet.

Upgrading the AI

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Here is a thread to ask questions about topics not covered in the "Conversations" thread. Please restrict your questions to AI behavior. To my knowledge, Richard can't do anything about bugs or multi-player problems.

    Comment


    • Here is a thread to ask questions about topics not covered in the "Conversations" thread. Please restrict your questions to AI behavior. To my knowledge, Richard can't do anything about bugs or multi-player problems.

      Comment


      • Yeah, you can't get squat.

        Also, I put in special code so if it sees it's Omni on the other side of the screen it won't even give him maps.

        ------------------
        Author of Diplomod. The mod to fix diplomacy.

        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."

        Comment


        • quote:

          Originally posted by hexagonian on 02-06-2001 11:30 AM
          I've noticed that the AI did not place a high priority on building Trading Posts. I normally build a lot of them, so I do well economically. Adding a production boost only helps me out further.

          I remember this being an issue in the MedMod for CTP1. Wes added mines to be built in forests, but the AI seemed incapable of building them.



          That'll be a major downer if thats still true. I'll test it tonight (i hope).

          quote:

          There's a tile impovement build list in the default game that only has the basic elements; Farm, Mine and so forth. Shouldn't that list be filled out with all of the tile improvements? I was looking at that list earlier, and it seem a little thin. I believe that there weren't even any of the Net improvememts on that list, but the AI seemed to have no trouble building nets so I didn't do anything with it.


          I thought the lack of nets was strange too. Got me to thinking whether tile improvements might be hard coded into the program.

          quote:

          And with the edit you made to the BuildingBuildList.txt file is there any other file you need to edit so the AI will use that sequence? (Dumb question, I'm sure, but I'm still learning...)



          I havent had a chance to play since I made the changes but it loads ok so it should be just those files.

          BTW, no such thing as a dumb question if you learned something useful

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

          Comment


          • I've noticed that wars between AIs will too frequently cease as soon as I land on their continent with any military units. I just wanted to create a little foothold to get a better view of their war to see how they fight among themselves. I'd been watching many cities change hands by sound (marching boots) and by city borders changing. As soon as I landed, both sides fortified and the war seemed to end. Was this probably just coincedence, or a game design?

            Second, how can I keep the barbarians from ever changing out of the barbarian strategy? Altho I'd like them to minimally build garrisons and buildings when they capture a city, I mainly want them to pump out tons of units. My latest theory is that they seem to change to the default strategy as soon as they get a few cities and/or I build the great wall. I do love seeing the Vandals and Visigoths I must admit and had given a small ability to them in the barbarian strategy to expand. They also tend to become totally passive thus my theory that they've changed strategies to default.

            Thirdly, how can we force barbs and AI units to stack before they attack? I just had 2 stacks of barbs attack one by one instead of forming an army. Being that rally is part of siege and attack i would have expected the entire stack to have attacked together.

            Thanks.

            ------------------
            History is written by the victor.
            [This message has been edited by Alpha Wolf (edited February 07, 2001).]

            Comment


            • I've noticed that wars between AIs will too frequently cease as soon as I land on their continent with any military units. I just wanted to create a little foothold to get a better view of their war to see how they fight among themselves. I'd been watching many cities change hands by sound (marching boots) and by city borders changing. As soon as I landed, both sides fortified and the war seemed to end. Was this probably just coincedence, or a game design?

              Second, how can I keep the barbarians from ever changing out of the barbarian strategy? Altho I'd like them to minimally build garrisons and buildings when they capture a city, I mainly want them to pump out tons of units. My latest theory is that they seem to change to the default strategy as soon as they get a few cities and/or I build the great wall. I do love seeing the Vandals and Visigoths I must admit and had given a small ability to them in the barbarian strategy to expand. They also tend to become totally passive thus my theory that they've changed strategies to default.

              Thirdly, how can we force barbs and AI units to stack before they attack? I just had 2 stacks of barbs attack one by one instead of forming an army. Being that rally is part of siege and attack i would have expected the entire stack to have attacked together.

              Thanks.

              ------------------
              History is written by the victor.
              [This message has been edited by Alpha Wolf (edited February 07, 2001).]

              Comment


              • Can he help out on the adding terrain ideas that I had in the creation forum? Or who can I get in contact with for that, if anyone?

                Comment


                • Can he help out on the adding terrain ideas that I had in the creation forum? Or who can I get in contact with for that, if anyone?

                  Comment


                  • Success!!! The AIs were surrounded by trading posts on their mountains. Hmmm, maybe I should but trading post first in the build list so it'll build mines (assuming that the list means top has lower priority). Between that and them building bazaars, I'm way behind in gold and science now

                    On a new note, you might need to lower the war discontent. I had to build a fairly good sized army to defend against the barbs, and all my cities were extremely unhappy about it. Aint that typical, ya build an army to protect them and they complain...ungrateful cretins I'm assuming that the AI is similiarly afflicted.

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

                    Comment


                    • Sounding good.

                      I tried to link up to your site, but its not active anymore.

                      Got a favor to ask. Could you send me the files that you altered for the trading post fix.(or did you just enter trading posts into the BuildImprovement list - if so, then don't bother. The boost for production is an easy enough fix - as long as I can get the AI to use them I will make that boost too.

                      And the BuildingBuildList file for the City Improvement sequence (or at least the entry) I want to make sure I have the verbage correct.

                      I would guess that the lists work in descending order, as the more advancesd stuff is at the bottom of the lists, so placing trading posts before mines might make the AI bypass building them to build mines instead.

                      Would you also be interested in taking on the challenge of boosting the AI for my Cradle Mod. I have been implementing stuff as I see it on the forums, and your tips have been very good. This mod is currently being playtested, with generally good reports, but it definitely needs tweaking in some areas. As I see it, you have a wealth of practical knowledge with your experimenting, and a look at my files would be much appreciated, to catch some changes that definitely need to be made.

                      My initial goal has been to implement improvements outside of Slic (as I have no ability in that area)

                      I have sent version 1.02 to OmniGods website, and can email you the text files to look at too, if you are interested.

                      All work will be credited in the public release.
                      [This message has been edited by hexagonian (edited February 07, 2001).]
                      Yes, let's be optimistic until we have reason to be otherwise...No, let's be pessimistic until we are forced to do otherwise...Maybe, let's be balanced until we are convinced to do otherwise. -- DrSpike, Skanky Burns, Shogun Gunner
                      ...aisdhieort...dticcok...

                      Comment


                      • AW, this paste fron the strategies.txt should answer your second question.

                        STRATEGY_BARBARIAN {

                        // must inherit from default
                        Inherit STRATEGY_DEFAULT

                        This means that the Bars will use the default settings unless new ones are listed in their section.

                        Comment


                        • AW, this paste fron the strategies.txt should answer your second question.

                          STRATEGY_BARBARIAN {

                          // must inherit from default
                          Inherit STRATEGY_DEFAULT

                          This means that the Bars will use the default settings unless new ones are listed in their section.

                          Comment


                          • quote:

                            Originally posted by WesW on 02-07-2001 08:21 PM
                            AW, this paste fron the strategies.txt should answer your second question.

                            STRATEGY_BARBARIAN {

                            // must inherit from default
                            Inherit STRATEGY_DEFAULT

                            This means that the Bars will use the default settings unless new ones are listed in their section.


                            This is true, however, they should using the barbarian strategy but instead are buildings wonders and buildings which means they switched to the default. My theory was towards the "why" not the "what". No doubt in my mind that they switch but I cant figure out the circumstances that cause the switch. I cant change the default strategy for fear that it will have adverse effects on the other civs especially new breakaway civs. I'd like to keep the barbarians confined to their own strategy so i can define their behavior in a primarily barbarians way

                            Just call me Prince of the Barbarians OOPS, make that Settler of the Barbarians

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

                            Comment


                            • quote:

                              Originally posted by WesW on 02-07-2001 08:21 PM
                              AW, this paste fron the strategies.txt should answer your second question.

                              STRATEGY_BARBARIAN {

                              // must inherit from default
                              Inherit STRATEGY_DEFAULT

                              This means that the Bars will use the default settings unless new ones are listed in their section.


                              This is true, however, they should using the barbarian strategy but instead are buildings wonders and buildings which means they switched to the default. My theory was towards the "why" not the "what". No doubt in my mind that they switch but I cant figure out the circumstances that cause the switch. I cant change the default strategy for fear that it will have adverse effects on the other civs especially new breakaway civs. I'd like to keep the barbarians confined to their own strategy so i can define their behavior in a primarily barbarians way

                              Just call me Prince of the Barbarians OOPS, make that Settler of the Barbarians

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

                              Comment


                              • quote:

                                Originally posted by hexagonian on 02-07-2001 09:52 AM
                                I tried to link up to your site, but its not active anymore.


                                I was one of those that had something happen to my account the other night, and it was pointing to the wrong place (notice my new settler status ) I'm trying to get the link to work again but so far no luck.

                                quote:

                                Got a favor to ask. Could you send me the files that you altered for the trading post fix.(or did you just enter trading posts into the BuildImprovement list - if so, then don't bother. The boost for production is an easy enough fix - as long as I can get the AI to use them I will make that boost too.

                                And the BuildingBuildList file for the City Improvement sequence (or at least the entry) I want to make sure I have the verbage correct.


                                ImprovementList:
                                IMPROVEMENT_LIST_PRODUCTION {
                                Improvement TILEIMP_TRADING_POST ## JAW
                                Improvement TILEIMP_MINES
                                }
                                -----------------------
                                BuildingBuildList.txt:
                                add 1 to the number at the start of the file.

                                BUILDING_BUILD_LIST_START {
                                Building IMPROVE_CITY_WALLS
                                Building IMPROVE_GRANARY
                                Building IMPROVE_BAZAAR
                                Building IMPROVE_ACADEMY
                                Building IMPROVE_MILL
                                Building IMPROVE_FACTORY
                                }

                                quote:

                                Would you also be interested in taking on the challenge of boosting the AI for my Cradle Mod. I have been implementing stuff as I see it on the forums, and your tips have been very good. This mod is currently being playtested, with generally good reports, but it definitely needs tweaking in some areas. As I see it, you have a wealth of practical knowledge with your experimenting, and a look at my files would be much appreciated, to catch some changes that definitely need to be made.


                                I'll gladly take a look at them, but it wont be until next week as this weekend I go to get firsthand knowledge of barbarians, i mean cheeseheads, ooops, I mean Wisconsinites

                                quote:

                                My initial goal has been to implement improvements outside of Slic (as I have no ability in that area)


                                I dont blame you on this. Every attempt of mine to code SLIC fails on my PC even tho I've been assured the same code works on other machines.


                                ------------------
                                History is written by the victor.
                                [This message has been edited by Alpha Wolf (edited February 07, 2001).]

                                Comment

                                Working...
                                X