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

    splitted USA - need help

    Scheduled Pinned Locked Moved Map Making
    14 Posts 5 Posters 2.5k Views 5 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.
    • SchulzS Offline
      Schulz
      last edited by

      Download notepad++ and check the line. You will wind the mistake.

      1 Reply Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @Numetalfan
        last edited by

        @Numetalfan You should be able to upload the XML file to a post in this thread so we can take a look.

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cernel Moderators Lobby Moderators @Numetalfan
          last edited by

          @Numetalfan So, what I guess is that you have removed the "Americans" player and added two players "Americans_west" and "Americans_east". However, somewhere in your xml you still have at least one occurrence of "Americans", that now refers to no actually defined player. So, just make a search for simply "Americans" in you document, and remove all occurrences you find of it.

          1 Reply Last reply Reply Quote 1
          • N Offline
            Numetalfan
            last edited by

            WW2v3-1941-splittedUSA.xml

            Hi all,

            thanks for the suport. I attached the file to this post

            1 Reply Last reply Reply Quote 0
            • N Offline
              Numetalfan
              last edited by

              @Cernel: It still doesn't work.
              Could you take a look at the file?

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Cernel Moderators Lobby Moderators @Numetalfan
                last edited by

                @Numetalfan I didn't test the game, but just did what I suggested to do.

                I see in the xml there are several istances of simply "Americans", namely:

                <playerProduction player="Americans" frontier="production"/>
                <playerRepair player="Americans" frontier="repair"/>
                <attachment name="techAttachment" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
                (the above figures twice)
                <option name="capital" value="Americans"/>

                Since "Americans" doesn't actually exist, all those instances need to be erased, and the related code being rewritten accordingly.

                As I didn't modify or test the game, there may be other issues with it.

                1 Reply Last reply Reply Quote 2
                • N Offline
                  Numetalfan
                  last edited by

                  here we go again,

                  the topic is still valid for me, that's what I did:

                  1. re-naming

                  former Americans are now USA and Americans_east

                  <playerList>
                  <!-- Player Turn Order -->

                  <player name="USA" optional="false"/>
                  <player name="Americans_west" optional="false"/>
                  

                  and

                  <!-- Allied Alliance -->
                  <alliance player="USA" alliance="Allies"/>
                  <alliance player="Americans_west" alliance="Allies"/>
                  </playerList>

                  is this OK? would Americans_east and Americans_west also work?

                  1. modifying

                  this are the changes in the .xml file

                  <!-- Americans_west Game Sequence -->
                  <step name="american_westTech" delegate="tech" player="Americans_west"/>
                  <step name="american_westTechActivation" delegate="tech_activation" player="Americans_west "/>
                  <step name="american_westPurchase" delegate="purchase" player="Americans_west"/>
                  <step name="american_westCombatMove" delegate="move" player="Americans_west"/>
                  <step name="american_westBattle" delegate="battle" player="Americans_west"/>
                  <step name="american_westNonCombatMove" delegate="move" player="Americans_west" display="Non Combat Move"/>
                  <step name="american_westPlace" delegate="place" player="Americans_west"/>
                  <step name="american_westEndTurn" delegate="endTurn" player="Americans_west"/>
                  <!-- Chinese/USA Game Sequence -->
                  <step name="americanTech" delegate="tech" player="USA"/>
                  <step name="americanTechActivation" delegate="tech_activation" player="USA"/>
                  <step name="americanPurchase" delegate="purchase" player="USA"/>
                  <step name="chinesePurchase" delegate="purchaseNoPU" player="Chinese"/>
                  <step name="americanCombatMove" delegate="move" player="USA"/>
                  <step name="americanBattle" delegate="battle" player="USA"/>
                  <step name="americanNonCombatMove" delegate="move" player="USA" display="Non Combat Move"/>
                  <step name="chineseCombatMove" delegate="move" player="Chinese"/>
                  <step name="chineseBattle" delegate="battle" player="Chinese"/>
                  <step name="chineseNonCombatMove" delegate="move" player="Chinese" display="Non Combat Move"/>
                  <step name="americanPlace" delegate="place" player="USA"/>
                  <step name="chinesePlace" delegate="place" player="Chinese"/>
                  <step name="chineseEndTurn" delegate="endTurnNoPU" player="Chinese">
                  <stepProperty name="skipPosting" value="true"/>
                  </step>
                  <step name="USAEndTurn" delegate="endTurn" player="USA">
                  <stepProperty name="turnSummaryPlayers" value="USA:Chinese"/>
                  </step>
                  <!-- End Round -->
                  <step name="endRoundStep" delegate="endRound"/>
                  </sequence>
                  </gamePlay>

                  frontier="production"/>
                  <playerProduction player="Americans_west" frontier="production"/>
                  <playerProduction player="Chinese" frontier="production"/>
                  <playerProduction player="USA" frontier="production"/>
                  ...
                  <playerRepair player="Chinese" frontier="repair"/>
                  <playerRepair player="USA" frontier="repair"/>
                  <playerRepair player="Americans_west" frontier="repair"/>
                  </production>

                  <attachmentList>
                  ...
                  <!-- USA -->
                  <attachment name="techAttachment" attachTo="USA" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
                  <option name="superSub" value="false"/>
                  <option name="jetPower" value="false"/>
                  <option name="shipyards" value="false"/>
                  <option name="aARadar" value="false"/>
                  <option name="longRangeAir" value="false"/>
                  <option name="heavyBomber" value="false"/>
                  <option name="improvedArtillerySupport" value="false"/>
                  <option name="rocket" value="false"/>
                  <option name="paratroopers" value="false"/>
                  <option name="increasedFactoryProduction" value="false"/>
                  <option name="warBonds" value="false"/>
                  <option name="mechanizedInfantry" value="false"/>
                  </attachment>
                  !-- Americans_west -->
                  <attachment name="techAttachment" attachTo="Americans_west" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
                  <option name="superSub" value="false"/>
                  <option name="jetPower" value="false"/>
                  <option name="shipyards" value="false"/>
                  <option name="aARadar" value="false"/>
                  <option name="longRangeAir" value="false"/>
                  <option name="heavyBomber" value="false"/>
                  <option name="improvedArtillerySupport" value="false"/>
                  <option name="rocket" value="false"/>
                  <option name="paratroopers" value="false"/>
                  <option name="increasedFactoryProduction" value="false"/>
                  <option name="warBonds" value="false"/>
                  <option name="mechanizedInfantry" value="false"/>
                  </attachment>
                  ..

                  <territoryOwner territory="Eastern United States" owner="USA"/>
                  <territoryOwner territory="Brazil" owner="USA"/>
                  <territoryOwner territory="Panama" owner="USA"/>
                  <territoryOwner territory="Greenland" owner="USA"/>
                  <territoryOwner territory="West Indies" owner="USA"/>
                  <!-- American_west Owned Territories -->
                  <territoryOwner territory="Alaska" owner="Americans_west"/>
                  <territoryOwner territory="Central United States" owner="Americans_west"/>
                  <territoryOwner territory="Hawaiian Islands" owner="Americans_west"/>
                  <territoryOwner territory="Mexico" owner="Americans_west"/>
                  <territoryOwner territory="Midway" owner="Americans_west"/>
                  <territoryOwner territory="Philippine Islands" owner="Americans_west"/>
                  <territoryOwner territory="Wake Island" owner="Americans_west"/>
                  <territoryOwner territory="Western United States" owner="Americans_west"/>
                  </ownerInitialize>

                  ...
                  <!--US Capitol-->
                  <attachment name="territoryAttachment" attachTo="Eastern United States" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
                  <option name="production" value="12"/>
                  <option name="unitProduction" value="12"/>
                  <option name="capital" value="USA"/>
                  <option name="victoryCity" value="1"/>
                  </attachment>

                  ...

                  <!-- USA Unit Placements -->
                  <unitPlacement unitType="factory" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="aaGun" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="infantry" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="artillery" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="fighter" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="bomber" territory="Eastern United States" quantity="1" owner="USA"/>
                  <unitPlacement unitType="transport" territory="10 Sea Zone" quantity="1" owner="USA"/>
                  <unitPlacement unitType="destroyer" territory="10 Sea Zone" quantity="1" owner="USA"/>
                  <unitPlacement unitType="cruiser" territory="10 Sea Zone" quantity="1" owner="USA"/>
                  <!-- American_west Unit Placements -->
                  <unitPlacement unitType="infantry" territory="Alaska" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Central United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Hawaiian Islands" quantity="2" owner="Americans_west"/>
                  <unitPlacement unitType="fighter" territory="Hawaiian Islands" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Midway" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Philippine Islands" quantity="2" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Wake Island" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="factory" territory="Western United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="aaGun" territory="Western United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="infantry" territory="Western United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="fighter" territory="Western United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="bomber" territory="Western United States" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="destroyer" territory="44 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="fighter" territory="44 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="carrier" territory="44 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="transport" territory="50 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="destroyer" territory="50 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="battleship" territory="53 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="transport" territory="56 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="destroyer" territory="56 Sea Zone" quantity="1" owner="Americans_west"/>
                  <unitPlacement unitType="Cruiser" territory="56 Sea Zone" quantity="1" owner="Americans_west"/>
                  </unitInitialize>

                  ...

                    <resourceGiven player="USA" resource="PUs" quantity="17"/>
                    <resourceGiven player="Americans_west" resource="PUs" quantity="27"/>
                  
                    <resourceGiven player="USA" resource="techTokens" quantity="0"/>
                  

                  <resourceGiven player="Americans_west" resource="techTokens" quantity="0"/>
                  </resourceInitialize>
                  </initialize>

                  Any mistakes here?

                  finally I modified the National Objectives:

                  <i>USA: The Arsenal of Democracy-</i><br>
                  +5 PUs if Allies control Sicily.<br>
                  +5 PUs if Allies control Morocco, Algeria,Lybia, Egypt.<br>
                  +5 PUs if Allies control 2 of France,Northwestern Europe, Norway.<br>
                  <br>
                  <i>Americans_west: The Pacific war-</i><br>
                  +5 PUs if Allies control Philippine Islands.<br>
                  +3 PUs if Allies control 3 of Caroline Islands,Okinawa, Iwo Jima, Formosa.<br>
                  +3 PUs if Allies control 3 of Midway, Wake Island, Hawaiian Islands, Solomon Islands.<br>
                  <br>

                  in detail:

                  <!-- USA Objectives -->
                  <attachment name="objectiveAttachment1" attachTo="USA" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="5"/>
                  <option name="alliedOwnershipTerritories" value="France:Northwestern Europe:Norway" count="2"/>
                  </attachment>
                  <attachment name="objectiveAttachment2" attachTo="USA" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="5"/>
                  <option name="alliedOwnershipTerritories" value="Sicily" count="1"/>
                  </attachment>
                  <attachment name="objectiveAttachment3" attachTo="USA" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="5"/>
                  <option name="alliedOwnershipTerritories" value="Morocco:Algeria:Lybia:Egypt" count="4"/>
                  </attachment>
                  <!-- American_west Objectives -->
                  <attachment name="objectiveAttachment1" attachTo="Americans_west" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="5"/>
                  <option name="alliedOwnershipTerritories" value="Caroline Islands:Okinawa:Iwo Jima:Formosa" count="3"/>
                  </attachment>
                  <attachment name="objectiveAttachment2" attachTo="Americans_west" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="5"/>
                  <option name="alliedOwnershipTerritories" value="Philippine Islands" count="1"/>
                  </attachment>
                  <attachment name="objectiveAttachment3" attachTo="Americans_west" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
                  <option name="objectiveValue" value="3"/>
                  <option name="alliedOwnershipTerritories" value="Midway:Wake Island:Hawaiian Islands:Solomon Islands" count="3"/>
                  </attachment>

                  any mistakes here?
                  note: I splitted Algeria and Morocco into two countries. Sicily is also a new territory.

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Numetalfan
                    last edited by

                    topic closed, everything works so far. US WEST capitol was the last missing puzzle tile.

                    1 Reply Last reply Reply Quote 1
                    • N Offline
                      Numetalfan
                      last edited by SilverBullet

                      Hi all,

                      the split US scenario is finished.

                      I would like to publish it, so that everybody who is interested can download and play it.
                      Would do I have to do? the zip file is about 13 MB large. how to send it to the download center?

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

                        @Numetalfan Here is Frostion's guide

                        https://docs.google.com/document/d/1FfF7N0srp9QG0_if5D-c1d1Aa1QTttdhxgm1GBh3pI4/edit

                        N 1 Reply Last reply Reply Quote 2
                        • N Offline
                          Numetalfan @beelee
                          last edited by

                          @beelee

                          Hi, I did all steps including upload and changing ownership

                          can you check this? Hope I've done all correctly

                          1 Reply Last reply Reply Quote 2

                          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
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums