Frustrating error

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Psycholis
Militia Commander
Militia Commander
Posts: 298
Joined: Sun Mar 05, 2006 8:23 pm
Location: Missouri

Code: Select all

		<Ships>
			<Table>
				<Ship	chance="40"		count="1"	class="&scCPCS;"	orders="patrol" patrolDist="100"/>
					<Escorts>
						<Ship	count="1"	class="&scSPFS;"	orders="escort"/>
						<Ship count="2"	class="&scIPSS;" 	orders="escort"/>
						<Ship count="2"	class="&scOPSS;" 	orders="escort"/>
					</Escorts>
				</Ship>
			


				<Ship	chance="30"		count="1"	class="&scFSCS;"	orders="patrol" patrolDist="100"/>
					<Escorts>
						<Ship	count="1"	class="&scFPFS;"	orders="escort"/>
						<Ship count="1"	class="&scFSFS;" 	orders="escort"/>
						<Ship count="3"	class="&scFSSS;" 	orders="escort"/>
					</Escorts>
				</Ship>


				<Ship	chance="30"		count="1"	class="&scRSCS;"	orders="patrol" patrolDist="100"/>
					<Escorts>
						<Ship	count="1"	class="&scRSFS;"	orders="escort"/>
						<Ship count="2"	class="&scISSS;" 	orders="escort"/>
						<Ship count="2"	class="&scOSSS;" 	orders="escort"/>
					</Escorts>
				</Ship>
			</Table>
		</Ships>
It keeps telling me that on of my closed tags doesn't match an open and I think I narrowed it down to this section but I can't see it. Can anyone else spot what I'm missing?
User avatar
Psycholis
Militia Commander
Militia Commander
Posts: 298
Joined: Sun Mar 05, 2006 8:23 pm
Location: Missouri

... I think I just saw it. Sorry about the topic creation but I've stared at this thing for like.. 2 days now and JUST saw it.. :(
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

just a guess but after the the <Escorts> don't you need a <Group>

like this

Code: Select all

<Escorts>
	<Group>
		<Ship   count="1"   class="&scSPFS;"   orders="escort"/>
		<Ship count="2"   class="&scIPSS;"    orders="escort"/>
		<Ship count="2"   class="&scOPSS;"    orders="escort"/>
	</Group>
</Escorts> 
due to it being more than one type of ship

edit: ah just as I was posting. What was it?
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:just a guess but after the the <Escorts> don't you need a <Group>

like this

Code: Select all

<Escorts>
	<Group>
		<Ship   count="1"   class="&scSPFS;"   orders="escort"/>
		<Ship count="2"   class="&scIPSS;"    orders="escort"/>
		<Ship count="2"   class="&scOPSS;"    orders="escort"/>
	</Group>
</Escorts> 
due to it being more than one type of ship

edit: ah just as I was posting. What was it?

We should start calling you expert. :)
Image
Image
User avatar
Psycholis
Militia Commander
Militia Commander
Posts: 298
Joined: Sun Mar 05, 2006 8:23 pm
Location: Missouri

Lol. It had nothing to do with the way the code was set up but with the fact the last bit of the code:

Code: Select all

            <Ship   chance="40"      count="1"   class="&scCPCS;"   orders="patrol" patrolDist="100"/>
isn't supposed to have the / before the >. It was closing prematurely, hence the mismatched tags error. I had to go back to my reference with the Charon pirates to see the mistake. The reference was that Drakes sometimes have escorts and I wanted the same idea but with my ship designs. Thanks for the input anyways.. This reminds me of the days of programming in C++.. Stupid / and ; and )...
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

ah that makes seance. You don't want to close it before you pick the escorts.
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:ah that makes seance. You don't want to close it before you pick the escorts.
Betelgeuse: The expert. You've doubled your posts in 1 week! :)
Image
Image
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

not really, I admit I have posted tons this week but it would be more around 100 posts this week.
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:not really, I admit I have posted tons this week but it would be more around 100 posts this week.
150. :P
Image
Image
Post Reply