Trying to put age of tribes engine on alexander 350 world map
-
parse error string not permitted within comments "__" line 993.21 xml at https://github.com/tedrockets/triplea trying to put age of tribes engine on alexander 350 world map.
-
In the xml provided on line 718 there is:
<!-- In turn order ?
There is no 'end comment'. Another comment cannot begin until the previous comment is ended. Line 993:
<!-- Repair rules -->
Shows a beginning and end comment. Since this is the first 'end comment' (-->) it cannot be paired with both line 718 and 993, causing the parse error.
Cheers...
-
@wc_sumpton latest error says line 2722.11 end tag for type "game" must end with a ">" This is really confusing because </game> is at the end of the file. I'm so lost, lol. I admit I have not looked at every line of the xml closely because I figured the best way to find the errors was to try to launch it.
-
@ted-self I guess it is obvious what I'm trying to do. I thought if I get rid of the alexander units and keep the stuff about the map, and then bring the units and tech from the age xml and combine the two, then all I would have to do would be to change the hattic starting point to its new place on the world map and so forth. Also put the nature and barbarians around here and there. However it's one error message after the other. I am trying to not get discouraged because I really want it to work. So I made the new capitals/starting points as follows- One for north and one for south america, (mexico and chile), one for europe, one for africa, one for middle east, one for india and one for china and one for slave. Of course most of them have the wrong names, such as baltic in mexico. That could be corrected later if I could just get it to run, lol. I bet there have been lots of frustrated people trying to make new games over the years.
-
Yea, there could be a lot of problems with this. First what are you using to edit the xml? Most here, I think use Notepad++. I you are using a text editor, I would suggest getting this, it is free.
https://notepad-plus-plus.org/downloads/
And yes, the <game> tag starts at the beginning, and ends at the very end. What this is saying is that you have an extra </ end tag somewhere, or a beginning tag without an end.
With Notepad++ you could close up beginning tag to see where they end to help trace down this problem.
Cheers...
-
-
@wc_sumpton I will upload it to the same place.
-
@ted-self I use a program called XML Copy Editor, which checks automatically the formatting.
-
-
@wc_sumpton I am still working on it. Did you find alexander350? It's at https://github.com/tedrockets/triplea I can't remember for sure but I think I had to move some folders around to make it work.
-
-
@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. -
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...
-
@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...
-
@ted-self
This should be the spelling of
</attachment List>in your xml it is
</attatchmentList>
notice the extra tFind and replace to recorrect.
Having said the above, for me it loads and runs without error in 2.5 & 2.6
-
@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...
-
@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.
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. -
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...
-
@wc_sumpton But there is no instance of attachmentname in the xml, it is attachment name. That is what is so weird.
-
@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,