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

    Cold War 1965 version 2.0 - Official Thread

    Scheduled Pinned Locked Moved Maps & Mods
    50 Posts 6 Posters 9.3k Views 6 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.
    • D Offline
      DaveBall068 @beelee
      last edited by

      @beelee @wc_sumpton I want to implement victory conditions for the US Alliance (players: USA, NATO, SEATO) and the Soviet Alliance (players: USSR, Warsaw Pact, Arab League). Each must capture the other's three capitals. What is the best way to implement this? Thx

      RogerCooperR wc_sumptonW 2 Replies Last reply Reply Quote 0
      • RogerCooperR Offline
        RogerCooper @DaveBall068
        last edited by

        @daveball068 said in Cold War 1965 version 2.0 - Official Thread:

        @beelee @wc_sumpton I want to implement victory conditions for the US Alliance (players: USA, NATO, SEATO) and the Soviet Alliance (players: USSR, Warsaw Pact, Arab League). Each must capture the other's three capitals. What is the best way to implement this? Thx

        Make the capitals victory cities and set the victory condition at 6 cities.

        1 Reply Last reply Reply Quote 0
        • wc_sumptonW Online
          wc_sumpton @DaveBall068
          last edited by

          @daveball068

          There will need to be conditions and triggers for each team.

          <!-- Soviet Allliance victory conditions -->
          <!-- NATO has 2 capitals, so check for ownership of 1 -->
          <attachment name="conditionAttachmentSovietAlliance1NATOCapital" attachTo="USSR" javaClass="RulesAttachment" type="player">
             <option name="alliedOwnershipTerritories" value="United Kingdom:Northeast Canada" count="1"/>
          </attachment>
          <attachment name="conditionAttachmentSovietAllianceVictory" attachTo="USSR" javaClass="RulesAttachment" type="player">
             <!-- This add the NATO capitals as a condition -->
             <option name="conditions" value="conditionAttachmentSovietAlliance1NATOCapital"/>
             <option name="alliedOwnershipTerritories" value="Northeast United States:New South Wales" count="2"/>
          </attachment>
          <!-- US Alliance victory conditions -->
          <attachment name="conditionAttachmentUSAllianceVictory" attachTo="USA" javaClass="RulesAttachment" type="player">
             <option name="alliedOwnershipTerritories" value="Moscow:Poland:Egypt" count="3"/>
          </attachment>
          
          <!-- USSR Alliance triggers -->
          <attachment name="triggerAttachmentUSSRAllainceVictory_CapitalControl" attachTo="USSR" javaClass="TriggerAttachment" type="player">
             <option name="conditions" value="conditionAttachmentSovietAllianceVictory"/>
             <option name="when" value="after:arableagueEndTurn"/>
             <!-- both "victory" and "notification" will look in the "notifications.properties" in your maps root folder for a string with the value's name, and then it will use whatever is to the right of the = sign.-->
             <option name="victory" value="USSR_ALLIANCE_VICTORY"/>
             <option name="players" value="USSR:WarsawPact:ArabLeague"/>
          </attachment>
          <attachment name="triggerAttachmentUSAAlliance_CapitalControl" attachTo="USA" javaClass="TriggerAttachment" type="player">
             <option name="conditions" value="conditionAttachmentUSAllianceVictory"/>
             <option name="when" value="after:arableagueEndTurn"/>
             <option name="victory" value="USA_ALLIANCE_VICTORY"/>
             <option name="players" value="USA:NATO:SEATO"/>
          </attachment>
          

          There will also need to be a notifications.properties file with the "victory" messages.

          USSR_ALLIANCE_VICTORY=The USSR Alliance has triggered a Victory with control of at least 1 NATO capital and both USA and SEATO capitals
          USA_ALLIANCE_VICTORY=The USA Alliance has triggered a Victory with the control of USSR, WarsawPact and ArabLeague Capitals
          

          Cheers...

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            DaveBall068 @jkprince
            last edited by

            @jkprince Thank you for the detailed feedback. I really appreciate it. These are some great ideas! I have a new version in progress that already addresses some of these. It runs in prerelease 2.7 and contains many game balance changes. If possible, I would like to get your feedback on the new version.

            I think your ideas have merit. I like enhancing SEATO with more territory. I also the concept of transferring (WhenCapturedByGoesTo) territory to allies.

            The map inset is a huge amount of work and I am trying to avoid changing it. I did think about something similar and adding in Diego Garcia. I am prioritizing these for a later release, maybe.

            Moving Israel to USA makes sense I think from game play standpoint.

            The tense borders (East/West Germany, the Koreas, India/Pakistan, Kashmir) contain large numbers of defensive border guard units to represent the heavily armed standoff.

            The new map version for TripleA 2.7 contains and independent India which will attack Kashmir and Pakistan, and China which will act to liberate Taiwan and Sino Pact if occupied. I have also changed the truck (more expensive) to keep AI from stockpiling them. Same with Carriers. Also, ICBMs have a range of 12 and cost 10. Plus, fixed missing land/sea connections.

            Latest version: cold_war_1965-master-rev02-D
            https://drive.google.com/file/d/1Q2C3wcDJqoQoFz68ERTsdH-haPw1sqrP/view?usp=sharing

            RogerCooperR 1 Reply Last reply Reply Quote 1
            • D Offline
              DaveBall068 @wc_sumpton
              last edited by

              @wc_sumpton Thank you so much for the code sample! I will implement in the next version.

              TheDogT 1 Reply Last reply Reply Quote 0
              • TheDogT Offline
                TheDog @DaveBall068
                last edited by

                @daveball068
                If you can find a current map that meets your needs it is far easier to insert your code into that, than to keep splitting your current map.

                https://forums.triplea-game.org/tags/thedog
                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                1 Reply Last reply Reply Quote 0
                • RogerCooperR Offline
                  RogerCooper @DaveBall068
                  last edited by

                  @daveball068 said in Cold War 1965 version 2.0 - Official Thread:

                  @jkprince Thank you for the detailed feedback. I really appreciate it. These are some great ideas! I have a new version in progress that already addresses some of these. It runs in prerelease 2.7 and contains many game balance changes. If possible, I would like to get your feedback on the new version.

                  I think your ideas have merit. I like enhancing SEATO with more territory. I also the concept of transferring (WhenCapturedByGoesTo) territory to allies.

                  The map inset is a huge amount of work and I am trying to avoid changing it. I did think about something similar and adding in Diego Garcia. I am prioritizing these for a later release, maybe.

                  Moving Israel to USA makes sense I think from game play standpoint.

                  The tense borders (East/West Germany, the Koreas, India/Pakistan, Kashmir) contain large numbers of defensive border guard units to represent the heavily armed standoff.

                  The new map version for TripleA 2.7 contains and independent India which will attack Kashmir and Pakistan, and China which will act to liberate Taiwan and Sino Pact if occupied. I have also changed the truck (more expensive) to keep AI from stockpiling them. Same with Carriers. Also, ICBMs have a range of 12 and cost 10. Plus, fixed missing land/sea connections.

                  Latest version: cold_war_1965-master-rev02-D
                  https://drive.google.com/file/d/1Q2C3wcDJqoQoFz68ERTsdH-haPw1sqrP/view?usp=sharing

                  Do you want to post this version or are you still working on it?

                  RogerCooperR 1 Reply Last reply Reply Quote 0
                  • RogerCooperR Offline
                    RogerCooper @RogerCooper
                    last edited by

                    @rogercooper I was running a test of the version currently on TripleA and received the following error.

                     IllegalStateException: java.lang.IllegalStateException: sortedTargetsToPickFrom must have the same size as targetsToPickFrom list 
                    IllegalStateException: sortedTargetsToPickFrom must have the same size as targetsToPickFrom list
                    
                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      DaveBall068 @RogerCooper
                      last edited by

                      @rogercooper The latest version errors out in release 2.5. It requires 2.7 to run. Do you know when 2.7 will go to prod?

                      RogerCooperR 1 Reply Last reply Reply Quote 0
                      • RogerCooperR Offline
                        RogerCooper @DaveBall068
                        last edited by

                        @daveball068 I always use the Prerelease version.

                        D B 2 Replies Last reply Reply Quote 0
                        • D Offline
                          DaveBall068 @jkprince
                          last edited by DaveBall068

                          @jkprince I get the following error after implementing the following XML:

                          Missing property definition for option 'whenCapturedByGoesTo' in attachment 'territoryDefinition'

                          <attachment name="territoryAttachment" attachTo="East Germany" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
                            <option name="production" value="7"/>
                            <option name="whenCapturedByGoesTo" value="USSR:WarsawPact"/>
                          </attachment>
                          

                          @wc_sumpton @beelee Any thoughts?

                          B jkprinceJ 2 Replies Last reply Reply Quote 0
                          • D Offline
                            DaveBall068 @RogerCooper
                            last edited by

                            @rogercooper I am running map Build D (linked above) with no errors in 2.7.15189. Can you confirm we are on the same build and release?

                            RogerCooperR 1 Reply Last reply Reply Quote 0
                            • B Offline
                              beelee @RogerCooper
                              last edited by

                              @rogercooper

                              Can you add Dave to the git repo ?

                              Screenshot from 2025-10-04 12-13-50.png

                              https://www.blinkops.com/blog/how-to-add-collaborators-to-your-github-repository

                              Screenshot from 2025-10-04 12-15-43.png

                              @DaveBall068 you would need to join git if you haven't already

                              RogerCooperR 1 Reply Last reply Reply Quote 0
                              • RogerCooperR Offline
                                RogerCooper @DaveBall068
                                last edited by

                                @daveball068 said in Cold War 1965 version 2.0 - Official Thread:

                                @rogercooper I am running map Build D (linked above) with no errors in 2.7.15189. Can you confirm we are on the same build and release?

                                Yes, same release.

                                1 Reply Last reply Reply Quote 0
                                • RogerCooperR Offline
                                  RogerCooper @beelee
                                  last edited by

                                  @beelee I don't seem to have the rights to add DaveBall.

                                  921c95a6-eb84-47ae-8c9f-c43ed9ab9b1b-image.png

                                  D 1 Reply Last reply Reply Quote 1
                                  • D Offline
                                    DaveBall068 @RogerCooper
                                    last edited by

                                    @rogercooper @beelee My GitHub is: Conarymor068

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      beelee @DaveBall068
                                      last edited by

                                      @daveball068 said in Cold War 1965 version 2.0 - Official Thread:

                                      Missing property definition for option 'whenCapturedByGoesTo' in attachment 'territoryDefinition'

                                      Idk. Maybe your missing a game property ?

                                      Screenshot from 2025-10-05 14-02-41.png

                                      I would think you already have those though. wc should know or @RogerCooper @TheDog might as well too.

                                      TheDogT 1 Reply Last reply Reply Quote 1
                                      • jkprinceJ Offline
                                        jkprince @DaveBall068
                                        last edited by

                                        @daveball068 Odd, because it works for me.
                                        Also, it's not necessary to add this to East Germany because East Germany has WarsawPact as the original owner, so USSR would liberate it if it was reconquered anyways.

                                        683b8cd5-6754-4b61-a1ff-39979e1c9146-image.png

                                        5e9ef8d6-4b34-4c74-8474-a0b2ccf7f09d-image.png

                                        (yes I know AI-China territory restrictions don't allow this, it's just an example)

                                        1 Reply Last reply Reply Quote 1
                                        • TheDogT Offline
                                          TheDog @beelee
                                          last edited by

                                          Capture Units on Entering Territory
                                          Is usually not set as True, so is usually false.

                                          I have not played the map, but I think it should be false.

                                          https://forums.triplea-game.org/tags/thedog
                                          https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                          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
                                          • 2
                                          • 3
                                          • 2 / 3
                                          • First post
                                            Last post
                                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums