TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Hosting a bot from Ubuntu server?

    Scheduled Pinned Locked Moved Player Help
    17 Posts 3 Posters 3.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • prastleP Offline
      prastle Lobby Moderators Admin @prastle
      last edited by

      @prastle I can send you a copy of my current bot script np

      If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

      prastleP 1 Reply Last reply Reply Quote 1
      • prastleP Offline
        prastle Lobby Moderators Admin @prastle
        last edited by

        @prastle @Michael-Hoover sent by forum pm

        If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

        1 Reply Last reply Reply Quote 1
        • Michael HooverM Offline
          Michael Hoover
          last edited by

          👍 thanks

          Map Maker of: Twelve Clans and Labyrinth

          1 Reply Last reply Reply Quote 0
          • LaFayetteL Offline
            LaFayette Admin
            last edited by

            @Michael-Hoover in the triplea-game-headless link prastle posted, if you unzip the file you should notice there is a 'run_bot' linux executable. Edit the script with the right parameters as needed, then if you run it, should work.

            1 Reply Last reply Reply Quote 2
            • Michael HooverM Offline
              Michael Hoover
              last edited by

              Excellent! Thanks again I'll start messing around with this today.

              Map Maker of: Twelve Clans and Labyrinth

              1 Reply Last reply Reply Quote 1
              • Michael HooverM Offline
                Michael Hoover
                last edited by

                Well, I thought I had everything set up correctly, alas here be the errors I am currently getting after running the script:

                Mar 31, 2020 1:50:53 PM org.triplea.game.server.HeadlessGameServer <init>
                INFO: Game Server initialized
                Mar 31, 2020 1:50:53 PM org.triplea.game.server.HeadlessGameServer lambda$new$1
                INFO: Headless Start
                Mar 31, 2020 1:50:54 PM games.strategy.engine.message.UnifiedMessengerHub messageReceived
                INFO: Adding endpoint: games.strategy.engine.message.unifiedmessenger.HasEndPointImplementor:games.strategy.engine.framework.ui.ServerStartup.SERVER_REMOTE, from: Node(name=Bot_ubuntutest_1, address=/45.79.2.151, port=3300)
                Mar 31, 2020 1:50:54 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): ---> POST https://lobby.triplea-game.org/lobby/game-hosting-request HTTP/1.1
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): <--- ERROR SSLHandshakeException: No subject alternative DNS name matching lobby.triplea-game.org found. (737ms)
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): ---> RETRYING
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): ---> POST https://lobby.triplea-game.org/lobby/game-hosting-request HTTP/1.1
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): <--- ERROR SSLHandshakeException: No subject alternative DNS name matching lobby.triplea-game.org found. (92ms)
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): ---> RETRYING
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): ---> POST https://lobby.triplea-game.org/lobby/game-hosting-request HTTP/1.1
                Mar 31, 2020 1:50:55 PM org.triplea.http.client.HttpClient$1 log
                INFO: GameHostingFeignClient#sendGameHostingRequest(Map): <--- ERROR SSLHandshakeException: No subject alternative DNS name matching lobby.triplea-game.org found. (103ms)
                Exception in thread "Initialize Headless Server Setup Model" feign.RetryableException: No subject alternative DNS name matching lobby.triplea-game.org found. executing POST https://lobby.triplea-game.org/lobby/game-hosting-request

                Map Maker of: Twelve Clans and Labyrinth

                1 Reply Last reply Reply Quote 0
                • Michael HooverM Offline
                  Michael Hoover
                  last edited by

                  OK I got the test to work by rolling back to version 1.9.0.0.12226
                  Is this OK?

                  In the meanwhile I am going to tidy up a bit and see about automating the bot on reboot...

                  Map Maker of: Twelve Clans and Labyrinth

                  1 Reply Last reply Reply Quote 0
                  • Michael HooverM Offline
                    Michael Hoover
                    last edited by Michael Hoover

                    OK so the only two things I can't seem to figure out:

                    1. When I start the bot the "Name" field in the lobby is always blank. Not sure how to default this value?
                    2. Not sure how to allocate AI to open positions (this may not be a thing please let me know if you can)?

                    Map Maker of: Twelve Clans and Labyrinth

                    1 Reply Last reply Reply Quote 0
                    • LaFayetteL Offline
                      LaFayette Admin
                      last edited by

                      • 1.9.0.0.12226 is a good version for bots. There is something we messed up in 13066.
                      • The name field should be coming from one of the parameters in the run_bot script. It's interesting you can join and have a blank name. Let us know if you cannot find it.
                      • Adding AIs to bot games is currently not possible
                      1 Reply Last reply Reply Quote 0
                      • Michael HooverM Offline
                        Michael Hoover
                        last edited by

                        Thanks for all the help everyone. I have four bots up on an Ubuntu server now. 3 are public, one is passworded for my personal use. Let me know if anything is funky. I know I don't have all the maps downloaded yet but I want to let them run for a bit for QC/testing.

                        I realize you guys probably don't need the extra bots, but this has become an academic exercise for me at this point 😎

                        Map Maker of: Twelve Clans and Labyrinth

                        prastleP 1 Reply Last reply Reply Quote 4
                        • prastleP Offline
                          prastle Lobby Moderators Admin @Michael Hoover
                          last edited by prastle

                          @Michael-Hoover Play tested briefly a bit of a round. WELL DONE SIR!

                          If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

                          1 Reply Last reply Reply Quote 2
                          • LaFayetteL Offline
                            LaFayette Admin
                            last edited by

                            FWIW @Michael-Hoover , this is the script we use to download all maps: https://github.com/triplea-game/triplea/blob/master/infrastructure/ansible/roles/bot/templates/download-all-maps.j2

                            The stuff in {{ }} are template variables, you'll want to remove/update those as necessary.

                            1 Reply Last reply Reply Quote 1

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • 1 / 1
                            • First post
                              Last post
                            Powered by NodeBB Forums