Announcement

Collapse
No announcement yet.

Freeciv now has AI diplomacy

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

  • Freeciv now has AI diplomacy

    The code in CVS now contains AI support for diplomacy. You no longer start out automatically at war with the AIs, and you can make peace and alliances with them, as well as exchange techs and give gifts.

    Their behaviour tends towards "king of the hill", which means they will gang up on the strongest player. However, they tend to be pretty good allies, as long as you honour the alliance too.

    Please give it a try if you can, and let me know what you think about it. I am sure a lot of adjustments are needed still.

  • #2
    Cool.
    Downloading now.
    American by birth, smarter than the average tropical fruit by the grace of Me. -me
    I try not to break the rules but merely to test their elasticity. -- Bill Veeck | Don't listed to the Linux Satanist, people. - St. Leo | If patching security holes was the top priority of any of us(no matter the OS), we'd do nothing else. - Me, in a tired and accidental attempt to draw fire from all three sides.
    Posted with Mozilla Firebird running under Sawfish on a Slackware Linux install.:p
    XGalaga.

    Comment


    • #3
      Kudo's Per!

      Damn, and here I am with my normal internet connection down
      Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

      Elie A. Shneour Skeptical Inquirer

      Comment


      • #4
        I'd like to try this, but now my client crashes when connecting to the server. I get this output:

        Code:
        tom@tigger tom $ /usr/local/bin/civclient -t deluxe
        2: Using Video Output: x11
        1: warning: already have a sprite for cd.occupied
        1: warning: already have a sprite for city.european_occupied
        1: warning: already have a sprite for city.classical_occupied
        1: warning: already have a sprite for city.industrial_occupied
        1: warning: already have a sprite for city.modern_occupied
        1: warning: already have a sprite for city.postmodern_occupied
        1: warning: already have a sprite for cd.occupied
        1: Cannot find sound spec-file "stdsounds".
        1: To get sound you need to download a sound set!
        1: Get sound sets from <[url]ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets[/url]>.
        1: Will continue with disabled sounds.
        1: sprite is NULL
        1: last message repeated 2 times
        1: last message repeated 2 times (total 4 repeats)
        1: last message repeated 4 times (total 8 repeats)
        Segmentation fault
        I've attached some strace info, if it's of any help.

        I had the client working fine on my last checkout, about a week ago.
        Attached Files

        Comment


        • #5
          I just noticed you can set debug levels with the client (or rather, I thought it would make sense, so looked and found the option ). Here's a mor everbose output of when it crashes (starting a new game, I can connect, and it crashes when I've chosen my leader (so the game will start proper).

          Code:
           3: Server reports new connection 1 tom
          3: Don't have graphics tags  or  for tech_type None
          3: Reading registry from "/usr/local/share/freeciv/deluxe/techs.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/small.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/units.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/terrain1.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/icons.spec"
          3: Reading registry from "/usr/local/share/freeciv/misc/shields.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/cities.spec"
          3: Reading registry from "/usr/local/share/freeciv/deluxe/morecities.spec"
          3: Neither of tags e_nation_selected or (null) found
          1: sprite is NULL
          1: last message repeated 2 times
          Segmentation fault

          Comment


          • #6
            You should send in a bug report so that the SDL client maintainer can take care of this (I don't know how often he reads this forum). Email all the info you got to rt @ freeciv.org .

            In the meantime, you can always try to compile another client.

            Comment


            • #7
              You should send in a bug report so that the SDL client maintainer can take care of this (I don't know how often he reads this forum). Email all the info you got to rt @ freeciv.org .

              In the meantime, you can always try to compile another client.

              Comment


              • #8
                where do I get it
                Blessed Be

                Comment


                • #9
                  You need to grab the CVS code. These instructions should work for you:

                  Comment


                  • #10
                    does it work for windows?
                    Blessed Be

                    Comment


                    • #11
                      It works for Windows, but there are no Windows version binary downloads yet with this. I will create some once we've managed to remove some more bugs.

                      Comment


                      • #12
                        Sounds like a good step forward. I look forward to playing with a windows build...

                        Comment


                        • #13
                          So, I download and install the CVS ...

                          Willing to test the diplomacy with AI, i launch a game, serach for writing and send in a diplomat .. .I establish an ambassad ...

                          and ... and ... what should i do know to init negotiation with AI player ??? In the screen reachable with F3 key I can't do this ...

                          Where am i wrong ?

                          Comment


                          • #14
                            hum ...

                            I didn't see the the menubar in the top of the window ...

                            So in fact it works perfectly ...

                            Sorry for the trouble

                            Comment

                            Working...
                            X