Announcement

Collapse
No announcement yet.

C3C flavors can make the AI smarter!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Alright, I've figured out how multiple flavors work. If any percentage is needed to be taken into account, it adds them all up and averages them to determine what's going to happen. Here's some examples of how it would work:

    The Wheel is set to have Flavor 1.
    Flavor 4 is set at 80% to Flavor 1.
    Flavor 3 is set at 10% to Flavor 1.
    If Greece has both Flavor 4 and Flavor 3, when taking into account what initial tech to research, the odds of researching The Wheel will be diminished by 45% [(80+10)/2] after, I believe, all other considerations are taken into account first.

    The Wheel is set to have Flavor 1 and Flavor 2 associated with it.
    Flavor 3 is set at 80% to Flavor 1 and 20% to Flavor 2.
    Flavor 4 is set at 10% to Flavor 1 and 50% to Flavor 2.
    In this case, since Greece has Flavor 3 and 4 there is a lot more to take into account. They would have a 40% diminished chance of researching the wheel. [80+20+50+10)/4]

    Basically, you just have to find out any and all flavors that would be triggered by any such event and throw that number into the pool to be averaged with all the other numbers. There are a lot of different combinations of how things could work, but hopefully those two examples illustrate it pretty well. By the way, I have a lot data on this since I tried a number of incorrect hypotheses before this simple answer dawned on me. If anybody really wants to see it I can compile and post it. It seems relatively easy to incorporate this into the game since it's just based on averages, but changing the likelihood of research by just a couple of percentage points has a very profound effect upon the results. I can't count how many times I saw the AIs in my debug game research the same tech every time without giving me a more useful statistical variation. Heh.

    Comment


    • #17
      A lot of the conquests also use flavors. Maybe the authors of those scenarios would care to comment on why they chose what values they did and why.

      Comment


      • #18
        Good work, donZappo! Thanks!
        I would be interested to know more about how you came up with those percentages when I get back next week.

        So what happens if a civ has no flavors but a tech has a flavor? I'm guessing that the flavor has no effect because it looks like if a civ has a flavor but a tech doesn't, then the flavor has no effect (from the conquests).

        Comment


        • #19
          Are these flavors already incorporated into the epic game, or is this editor-specific?

          The flavors don't have names? Pralines and Cream, for example? Are there "flavor blocs" akin to the Civilizational bloc?

          oh nevermind, I'm too tired to list the jokes associated with the concept of flavors.

          But are they in the epic game?
          You can't fight in here! This is the WAR room!

          Comment


          • #20
            I'd be more than happy to share the results with you when you get back, Alexman! I'm going to be out of town myself until Sunday night so I wouldn't be able to provide the stats any sooner anyways. Also, I'm assuming that if a civ doesn't have any flavors associated with it that it doesn't matter at all how many flavors a tech has. That would be something easy to check out, though, since flavors have a very noticeable impact upon the game.

            And Yahweh Sabaoth... the flavors are not incorporated at all into the epic game. You can rename the flavors anything you want, though! If you want the germans to have a hankering for Pralines and Cream, no problem!

            Comment


            • #21
              I have Conquests, and tried the Middle Ages scenario conquest. This has flavors, I played one of the christian flavors, which are also all millitary religious trait civs. I haven't seen much of the tecnologies researched in it, but the germans did research a christian tech, though I dont know if the other civs will research the arabic/nordic trees as they aren't needed for tech progression.

              I would still like these flavors to be able to effect actual game abilities.. so if the tech matches your civs flavor, you research it in half the time for a bonus.

              You can also start each civ with a special Tech with age set to none, this should allow separate tech trees which only certain civs can research. Together with flavors this would allow very differeing AI research.

              Comment


              • #22
                Originally posted by Yahweh Sabaoth
                Are these flavors already incorporated into the epic game, or is this editor-specific?

                The flavors don't have names? Pralines and Cream, for example? Are there "flavor blocs" akin to the Civilizational bloc?

                oh nevermind, I'm too tired to list the jokes associated with the concept of flavors.

                But are they in the epic game?
                They're not in the default epic game, but can be added to mods via the editor. You can change the names of the flavours from the default "Flavour 1". It's a pity that they can't be used to increase the odds of the AI researching a given tech or build a given improvement.
                Libraries are state sanctioned, so they're technically engaged in privateering. - Felch
                I thought we're trying to have a serious discussion? It says serious in the thread title!- Al. B. Sure

                Comment


                • #23
                  OK, I was thinking again about the best way to use flavors in the epic game to improve the AI.

                  Scientific flavor: All scientific civilizations. Beelining for Literature in Ancient age, and for Education in Medieval Age. Scientific flavor techs:
                  - Alphabet
                  - Writing
                  - Literature
                  - Monotheism
                  - Theology
                  - Education
                  - Computers

                  Religious Flavor: All Religious civilizations. Beeline for Monarchy in Ancient Age, since with Ceremonial Burial they need one fewer tech to reach it, and they can quickly switch out of it once they eventually obtain the Republic. Give the Oracle a Religious flavor so other civs don't go after it so eagerly. Beeline for Theology in Medieval Age. Religious flavor techs:
                  - Mysticism
                  - Polytheism
                  - Monarchy
                  - Monotheism
                  - Theology
                  Religious flavor building:
                  - The Oracle

                  Seafaring Flavor: All Seafaring civs. Aim for techs that allow new ships and coastal installations. Seafaring flavor techs:
                  - Writing
                  - Pottery
                  - Map Making
                  - Monotheism
                  - Theology
                  - Education
                  - Astronomy
                  - Navigation
                  - Magnetism
                  - Steam Power
                  - Ironclads
                  - Mass Production
                  - Computers
                  - Miniaturization

                  Militaristic Flavor: All militaristic civs. Emphasize Chivalry and beeline for Military Tradition. Flight for cheap airports. Map Making is already a high AI priority, and so are the techs that allow ancient units. Militaristic flavor techs:
                  - Feudalism
                  - Chivalry
                  - Engineering
                  - Invention
                  - Gunpowder
                  - Chemistry
                  - Metallurgy
                  - Mil. Tradition
                  - Flight
                  - Ecology
                  - Synthetic Fibers

                  Generic Flavor: Since we can't make techs and buildings more valuable, the thing to do would be to create a 'generic' flavor, which would be assigned to every civ that doesn't have any of the other flavors. This flavor would also be assigned to all techs that don't already have an assigned flavor. The relationship of the generic flavor to all other flavors, including itself should be 50%. If all techs have 50% less value, they will all actually have the same chance of being researched as before, so that makes it possible to give non-generic flavor techs an extra value (anything above 50%) to non-generic flavor civs.

                  I originally thought that flavors could be assigned to units, but I see now (after being away for a week) that they can't, so I don't think it's possible to encourage the AI to build more curraghs, for example.

                  Anyway, that's my first take at using flavors in the epic game. Any other ideas or suggestions? By the way, there are ways of making the AI improve its research selection (see the AU mod for details), but here we care only about civ- or trait-specific research and building choices.

                  Comment


                  • #24
                    Alexman

                    Great thinking but , according to Warpstorm once the AI decides not to research a tech it will never do so. I suspect this would cause problems if it decided not to research a required Generic tech.
                    Libraries are state sanctioned, so they're technically engaged in privateering. - Felch
                    I thought we're trying to have a serious discussion? It says serious in the thread title!- Al. B. Sure

                    Comment


                    • #25
                      Hmmm, that doesn't sound right.

                      I just gave flavor 1 to the Egyptians and to all ancient techs, and flavor 1 a 50% relationship with flavor 1, and the isolated Egyptians proceeded to research the entire ancient age tech tree in my debug test.

                      Comment


                      • #26
                        Just got back in myself and had a quick comment before looking more into this tomorrow. We're going to have to be careful when assigning the flavors to specific civs. I don't think we want to make it so that each civ researches a given tech 100% of the time as this could be exploited pretty easily by a human player. If you know that your opponent is going straight to Literature while skipping bronze working, then you're going to have a pretty easy time overwhelming them with even a basic archer rush. It seems like we should be able to make it so that they're more likely to research a tech when given the choice; not going straight to that tech, and not always doing it every time. It's pretty easy to implement them to do this if you spend some time fine-tuning the flavor percentages.

                        Comment


                        • #27
                          There's a difference between bee-lining in research and getting techs through trade. You may know that a giv is heading straight for monarchy, but that gives it some pretty good trade bait to get other ancient era techs. Or is tihis going to be more of a problem with the reduced contact civs have in C3C?

                          Comment


                          • #28
                            Like your first pass at this, alexman.

                            One thing I'd like to see is something to prod some of the AI Civs toward Scientific Method. I always get there first, and thus always build ToE (and then Hoover), thus ensuring my tech lead for the remainder of the game.
                            "Stuie has the right idea" - Japher
                            "I trust Stuie and all involved." - SlowwHand
                            "Stuie is right...." - Guynemer

                            Comment


                            • #29
                              donZappo, I thought that a 100% relationship between flavors just means that the AI is as likely to research a flavor tech as an unflavored tech. (so the tech gets 100% of its original value).

                              Am I wrong? If 100% means that the AI researches the tech 100% of the time, what happens if there are two techs at 100%? From my small debug test (giving everything a 50% value), I saw that the AI researched techs in the order it would if there were no flavors at all.

                              Comment


                              • #30
                                Originally posted by alexman
                                Hmmm, that doesn't sound right.

                                I just gave flavor 1 to the Egyptians and to all ancient techs, and flavor 1 a 50% relationship with flavor 1, and the isolated Egyptians proceeded to research the entire ancient age tech tree in my debug test.




                                Awesome news.
                                Libraries are state sanctioned, so they're technically engaged in privateering. - Felch
                                I thought we're trying to have a serious discussion? It says serious in the thread title!- Al. B. Sure

                                Comment

                                Working...
                                X