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

    Trying to put age of tribes engine on alexander 350 world map

    Scheduled Pinned Locked Moved Maps & Mods
    147 Posts 5 Posters 75.4k Views 4 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.
    • Ted SelfT Offline
      Ted Self @wc_sumpton
      last edited by

      @wc_sumpton Well, I got the xml copy editor and worked out some kinks. But still when I run the check wellformedness I get error at line 19485.5 mismatched tag. This is the last line where it says </game>
      When I run validate I get error at line 2 column 34 unable to open DTD document.
      When I try to launch the game I get parsing halted at 19485 unitInitialize must have end tag.
      The new file is at https://github.com/tedrockets/triplea if anyone would like to have a look. I am stumped.

      wc_sumptonW 1 Reply Last reply Reply Quote 0
      • wc_sumptonW Offline
        wc_sumpton @Ted Self
        last edited by

        @ted-self

        The xml for TripleA maps follow a certain structure.
        <game>
        <variableList></variableList>
        <map> </map>
        <resourceList></resourceList>
        <playerList></playerList>
        <unitList></unitList>
        <relationshipTypes></relationshipTypes>
        <territoryEffectList></territoryEffectList>
        <gamePlay></gamePlay>
        <production></production>
        <technology></technology>
        <attachmentList></attachmentList>
        <initialize></initialize>
        <propertyList></propertyList>
        </game>

        In the xml provided <attachmentList> starts at 1241 with a </attachmentList> at 2596 followed by <delegate ... />, which are part of the <gamePlay>, but are not within any header. Then another <attachmentList> at 2724 a floating <attachment> at 2726. <initialize> at 3163 with no </attachmentList> prior. More <attachment> at 3223 with no </unitInitialize> or </initialize>. At 18994 another <initialize> but this is ended at 19105 with a </initialize> and <propertyList> with its </propertyList> at 19482 followed by </game>

        There are a lot of structure errors here.

        I am sorry, but it is getting late for me. I will try to help more tomorrow.

        Cheers...

        Ted SelfT 1 Reply Last reply Reply Quote 1
        • Ted SelfT Offline
          Ted Self @wc_sumpton
          last edited by

          @wc_sumpton Hi, I uploaded my latest try after 2am this morning. https://github.com/tedrockets/triplea I think I have everything in order now. I made a couple of maps several years ago but I have forgotten how I did it. I still get an error message at line 18807 which says mismatched tag. At 18807 it says </attachmenList> Strangely when I try to launch the game it says line 18807 <attachment> must have an end tag. Thanks for looking...

          TheDogT wc_sumptonW 2 Replies Last reply Reply Quote 1
          • TheDogT Offline
            TheDog @Ted Self
            last edited by TheDog

            @ted-self
            This should be the spelling of
            </attachment List>

            in your xml it is
            </attatchmentList>
            notice the extra t

            Find and replace to recorrect.

            Having said the above, for me it loads and runs without error in 2.5 & 2.6

            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
            • wc_sumptonW Offline
              wc_sumpton @Ted Self
              last edited by wc_sumpton

              @ted-self

              @TheDog is correct, there are a lot of "attatchment", "Attatchment" and "attatchTo" in AgeWorld.xml (706 total). These can be corrected by replacing "ttatch" with "ttach".

              But there are still some structure problems. If you have Notepad++, then you should see besides each beginning block start a "-" in a square along a line. By tapping that "-" you close each block, and the "-" changes to "+". Starting with <map> line 6 should close the xml to line 713, which begins <resourceList>. Closing <resourceList> show <playerList> at 717. A blank line (this is ok) at 733 and <unitList> at 734. Continue doing this until you encounter <attachmentList> at line 2142, closing <attachmentList> will go to the end of the file (line 19335), showing that there is a problem. The </attachmentList> is at 18807. The problem is a floating <attachment> located at 2598, that needs to be removed. Now closing <attachmentList> goes to line 18807 <initialize>. Closing <initialize> once again goes to the end of the file, and </initialize> is located at 18954. But <unitInitialize>, at 18820, has no ending tag. Put it after line 18865. And another problem exist when closing <propertyList>. <property name="notes"> at line 19170 has no closing tag. Place </property> at 19330, after </value> but before </propertyList>.

              If you close <propertyList> you should see </game> at line 19334. With all the beginning tags closed you should see a structure that looks like my earlier post. Once this structure is corrected, other debugging can start.

              Cheers...

              Ted SelfT 1 Reply Last reply Reply Quote 0
              • Ted SelfT Offline
                Ted Self @wc_sumpton
                last edited by

                @wc_sumpton xml copyeditor finds no form errors. However when I try to launch the game I get an error at 2596. I think this is about where I started changing attatchment to attachment. Enclosed is the error message. errors.jpg
                My latest xml file is at https://github.com/tedrockets/triplea
                After about 20 hours or so working on this I feel certain that madness will soon ensue and I will become like a character in a short story by H P Lovecraft. 😮

                wc_sumptonW 1 Reply Last reply Reply Quote 1
                • wc_sumptonW Offline
                  wc_sumpton @Ted Self
                  last edited by

                  @ted-self

                  Structure looks much better now. "attachmentname" should be "attachment name". When the search/replace was done, a space was not accounted for. Simple mistake done it/still do it many times. You are making headway!!

                  Cheers...

                  Ted SelfT 1 Reply Last reply Reply Quote 2
                  • Ted SelfT Offline
                    Ted Self @wc_sumpton
                    last edited by

                    @wc_sumpton But there is no instance of attachmentname in the xml, it is attachment name. That is what is so weird.

                    Ted SelfT wc_sumptonW 2 Replies Last reply Reply Quote 0
                    • Ted SelfT Offline
                      Ted Self @Ted Self
                      last edited by

                      @ted-self Wait, I just saw where someone said the error is This should be the spelling of
                      </attachment List> so I will try that,

                      TheDogT Ted SelfT 2 Replies Last reply Reply Quote 0
                      • wc_sumptonW Offline
                        wc_sumpton @Ted Self
                        last edited by

                        @ted-self

                        The error say's row 2596. That is where I found the error "attachmentname". Count was 141 instances that needed fixing.

                        Next came an error: Could not find production rule:buyCaveman. The <production> area is not right. I would remove the whole area <production> through </production> and recopy from Age of Tribes xml.

                        Cheers...

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

                          @ted-self
                          Thats is my bad 🙄
                          </attachment List>

                          should be
                          </attachmentList>
                          that is without the space before the L

                          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
                          • Ted SelfT Offline
                            Ted Self @Ted Self
                            last edited by

                            @ted-self OK mass confusion set in for a few minutes there and I think I had an older file uploaded to https://github.com/tedrockets/triplea
                            Anyhow I corrected spelling on attachmentname and attachement List Now my latest attempt is uploaded and I get this error in xml copy editor errorxx.jpg
                            and this error when trying to launch. I have the latest version of triplea. errorxxx.jpg

                            Ted SelfT 1 Reply Last reply Reply Quote 1
                            • Ted SelfT Offline
                              Ted Self @Ted Self
                              last edited by

                              @ted-self oh wait, I just saw the latest post from the dog, let me try again.

                              Ted SelfT 1 Reply Last reply Reply Quote 1
                              • Ted SelfT Offline
                                Ted Self @Ted Self
                                last edited by

                                @ted-self OK I made it this far, further than before! errrorxxxx.jpg

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

                                  @ted-self That means you have buyCaveman in production frontier, but don't have a production rule called buyCaveman. This can be a capitalization issue.

                                  Ted SelfT 1 Reply Last reply Reply Quote 2
                                  • Ted SelfT Offline
                                    Ted Self @RogerCooper
                                    last edited by

                                    @rogercooper Arrgg now it says could not find resource:Tech the latest xml is at https://github.com/tedrockets/triplea SOS

                                    wc_sumptonW 1 Reply Last reply Reply Quote 0
                                    • wc_sumptonW Offline
                                      wc_sumpton @Ted Self
                                      last edited by

                                      @ted-self

                                      Check <resourceList> to see if "Tech" is listed.

                                      Cheers...

                                      Ted SelfT 1 Reply Last reply Reply Quote 0
                                      • Ted SelfT Offline
                                        Ted Self @wc_sumpton
                                        last edited by

                                        @wc_sumpton it is listed.

                                        Ted SelfT 1 Reply Last reply Reply Quote 0
                                        • Ted SelfT Offline
                                          Ted Self @Ted Self
                                          last edited by

                                          @ted-self You know, a couple of things just hit me. I had been using the primeval xml from the age of tribes master zip, and maybe I should have been using the age of tribes xml from the age of tribes zip. It is the one I have been playing recently that works, perhaps because I accidently screwed the other one up. Anyhow, the xmls from the alexander world map, the age of tribes zip and my latest attempt to combine the two are at https://github.com/tedrockets/triplea My brain is in a bit of overdrive fatigue right now if anyone would care to take a stab at it.

                                          wc_sumptonW 1 Reply Last reply Reply Quote 0
                                          • wc_sumptonW Offline
                                            wc_sumpton @Ted Self
                                            last edited by

                                            @ted-self

                                            Tried using Alexander350 and Age of Tribes: Primeval:

                                            <game>
                                                <info name="World of Ages: Primeval" version="0.003"/>
                                                <loader javaClass="games.strategy.triplea.TripleA"/>
                                            	<triplea minimumVersion="2.5.22294"/>
                                            	<diceSides value="6"/>
                                            	<!-- Notes:
                                            	** Merging of Alexander350 and Age of Tribes: Primeval xml's
                                            	** .001 testing rename of Alexander350 to World of Ages: Primeval
                                            	**		replacing 'ttatch' with 'ttach' (705 replacements)
                                            	**		changes to map.yml
                                            +++++++++++++++++++++++++++ start change +++++++++++++++++++++++++++++++++++++++++++++++++
                                            map_name: world_of_ages
                                            games:
                                            - {game_name: 'World of Ages: Primeval', file_name: world_of_ages_primeval.xml}
                                            version: 0
                                            ++++++++++++++++++++++++++++++++ end +++++++++++++++++++++++++++++++++++++++++++++++++++++
                                            	** .002 testing merger <map> and territoryAttachment Alexander350
                                            	**		everything else Age of Tribes: Primeval
                                            	**		rename folders units and flags to units_alexander350 and flags_alexander350
                                            	**		copied folders units and flags from AoT:P
                                            	**		also folders dice, doc, misc, PUs, resources and sounds
                                            	**		renamed map.properties to map_alexander350.properties and copied map.properties from AoT:P
                                            	** expected error with test: No player named: Carthage,   for: TerritoryAttachment
                                            	** .003 comment out all <option name="capitan" value="x"/> because players are changed
                                            	--> <!-- example -->
                                            	<!-- <option name="capital" value="Carthage"/> -->
                                            	<!-- end example --> <!--
                                            	**		7 changes made
                                            	**		also commented out all CanalAttachment
                                            	**		also conditions and triggers which refference a territory of sea zone
                                            	**		alse commented out <ownerInitialize> and  all <unitPlacement> under <unitInitialize>
                                            	** 		add <heldUnits> in <unitInitialize>
                                            			<heldUnits unitType="Caveman" player="Brittonic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Celtic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Germanic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Romanic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Baltic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Hellenic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Slavic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Hattic" quantity="10"/>
                                                        <heldUnits unitType="Caveman" player="Barbarians" quantity="50"/>
                                            	** for testing purposes only added random start delegate
                                            			<delegate name="randomStartDelegate" javaClass="games.strategy.triplea.delegate.RandomStartDelegate" display="Pregame Nation Placements"/>
                                            	** also added setup after initialize
                                            			<step name="setupRandomStartDelegate" delegate="randomStartDelegate" display="Pregame Nation Placements" maxRunCount="1"/>
                                            	** and game property for ramdom setup
                                            			<property name="Territories Are Assigned Randomly" value="true" editable="true">
                                            				<boolean/>
                                            			</property>		
                                            	-->
                                            

                                            Cheers...

                                            Ted SelfT 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
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 2 / 8
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums