Star system code that doesn't work

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

Why doesn't this code work

Code: Select all


<?xml version="1.0"?>


<!DOCTYPE TranscendenceExtension
[
	<!ENTITY ssSol				"0xDFA30000">
	<!ENTITY rsVenus			"0xDFA30001">
	<!ENTITY rsMars				"0xDFA30002">
	<!ENTITY rsUranus			"0xDFA30003">
	<!ENTITY rsNeptune			"0xDFA30004">
	<!ENTITY stVenus			"0xDFA30005">
	<!ENTITY stMars				"0xDFA30006">
	<!ENTITY stUranus			"0xDFA30007">
	<!ENTITY stNeptune			"0xDFA30008">

	<!ENTITY scISS				"0xDFA30010">
	<!ENTITY scSaturnV			"0xDFA30011">

	<!ENTITY MarsStation			"0xDFA30020">
	
	<!ENTITY svEarth		 	"0xDFA30030">
	

<TranscendenceExtension UNID="0xDFA30000" version="0.98d>

	<Sovereign UNID="&svEarth;"
			name="Humans"
			alignment="constructive chaos"
			>
		<Relationships>
			<Relationship sovereign="&svCommonwealth;" disposition="neutral"/>
			<Relationship sovereign="&svPirates;" disposition="enemy"/>
			<Relationship sovereign="&svAnarchists;" disposition="neutral"/>
			<Relationship sovereign="&svOutlaw;" disposition="neutral"/>
		</Relationships>
	</Sovereign>




	<SystemType UNID="&ssSol;">
		<SystemGroup>
			<Station type="&stG-TypeStar;" name="Sol"/>
			<Orbitals distance="500" scale="light-second" angle="random">
				<Group>
					<Primary>
						<Station type="&stDesertPlanet;" objName="EarthStart" name="Earth" showOrbit="true"/>
					</Primary>
				</Group>
			</Orbitals>
		</SystemGroup>
	</SystemType>
</TranscendenceExtension>
it just comes up with a Send Error Report. :evil:
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

first thing would be the UNID of the TranscendenceExtension and the ssSol are the same
Crying is not a proper retort!
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

Still does not work
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

another thing would be you forgot to end the doctype with ]>

(still doesn't work I am not sure why)
Crying is not a proper retort!
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

Before, it worked for a while, and then when I changed Earth to a Biosphere, wierd things started happening. EDIT: The version thing was missing another ".
It still doesn't work though
It was a biosphere before I posted it, but I changed back to Desert
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
	[
	<!ENTITY unidExtension				"0xDFA300E6">
	   <!ENTITY ssSol            "0xDFA30000">
   <!ENTITY rsVenus         "0xDFA30001">
   <!ENTITY rsMars            "0xDFA30002">
   <!ENTITY rsUranus         "0xDFA30003">
   <!ENTITY rsNeptune         "0xDFA30004">
   <!ENTITY stVenus         "0xDFA30005">
   <!ENTITY stMars            "0xDFA30006">
   <!ENTITY stUranus         "0xDFA30007">
   <!ENTITY stNeptune         "0xDFA30008">

   <!ENTITY scISS            "0xDFA30010">
   <!ENTITY scSaturnV         "0xDFA30011">

   <!ENTITY MarsStation         "0xDFA30020">
   
   <!ENTITY svEarth          "0xDFA30030"> 
		
	
]>
<TranscendenceExtension UNID="&unidExtension;" version="0.98d">

   <Sovereign UNID="&svEarth;"
         name="Humans"
         alignment="constructive chaos"
         >
      <Relationships>
         <Relationship sovereign="&svCommonwealth;" disposition="neutral"/>
         <Relationship sovereign="&svPirates;" disposition="enemy"/>
         <Relationship sovereign="&svAnarchists;" disposition="neutral"/>
         <Relationship sovereign="&svOutlaw;" disposition="neutral"/>
      </Relationships>
   </Sovereign>




   <SystemType UNID="&ssSol;">
      <SystemGroup>
         <Station type="&stG-TypeStar;" name="Sol"/>
         <Orbitals distance="500" scale="light-second" angle="random">
            <Group>
               <Primary>
                  <Station type="&stDesertPlanet;" objName="EarthStart" name="Earth" showOrbit="true"/>
               </Primary>
            </Group>
         </Orbitals>
      </SystemGroup>
   </SystemType>


</TranscendenceExtension>
Loaded fine for me. Do I need to test the system in a topo to get the error?

Hmm.. I tinkered around with your system definition when it wouldn't load for me and got this to work:

Code: Select all

   <SystemType UNID="&ssSol;">
      <SystemGroup>
         <Station type="&stG-TypeStar;" name="Sol"/>
         <Orbitals distance="500" scale="light-second" angle="random">
            <Group>
               
                  <Station type="&stBiospherePlanet;" name="Earth" showOrbit="true"/>
			
			<Orbitals distance="15" scale="light-second" angle="random">

			<Marker objName="TestJumpTarget" />
			<Marker objName="Start" />
			<Lookup table="StargateOutbound"/>
			</Orbitals>
               
            </Group>
         </Orbitals>
      </SystemGroup>
   </SystemType>
I had to make it work for a mod I put it into, so I switched the names of some things around.

I found no use for objName in a <Station type=> tag. I removed it.

I found no use for <Primary> so I removed it.

I added a Stargate because they are necessary.

Probably you could change "TestJumpTarget" to "EarthStart" if you wanted it to be a starting position- you must also change player settings in the mod custom ship you make.
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

Weird... well that is fixed, how can I edit the topo in an extension just add the
node code? or do have to copy the whole thing down to the extension?
or would it just be better to make it a module and put it down in Transcendence.xml?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

You cannot remove topology nodes from transcedence xml in any format currently- so to get your new system to show up into a network you would need to splice it into the existing topo tag (make a new node tag with System UNID="&ssSol;") and gates.

It is going to take you a bit of work to splice the earth system into a branch.

Firstly, every system definition is designed to have only 2 gates, so to get a branch you are going to need an extra gate in the system definition being used by the node in the topo where you want you branch.


To make things easy, first open transcedence xml, find <SystemTypes> and then find <StargateInbound> table entry. Copy that, and then rename it to "Third" ( or, more precisely create a <StargateThird> table entry)

Now, let's do this for Eridani first. Pretend you want your branch to show up in Eridani (if you do, skip the 3rd gate- you can use the unused Inbound gate in that system to link to the new system.)

For Eridani, find <StarSystemTopology> in transcendence xml, and right at the top of the list is <Node ID="SE" rootNode="true">

That is Eridani's node tag. Under that node tag, make a new node tag:

Code: Select all

<Node ID="Sol" >
<System name="Sol" UNID="&ssSol;" level="1" variant="whatever"/>
<StarGates>
<StarGate name="Outbound" DestID="SE" DestGate="Inbound"/>
</StarGates>
</Node>
Now, go up to Eridani's Node "SE". In the StarGates tag add <StarGate name="Inbound" DestID="Sol" "DestGate="Outbound"/>

and maybe clean out that debug stuff.

Now, find <SystemType UNID="&ssStartonEridani;", where you can look for a good spot to place <Lookup table="StargateInbound"/> to place an inbound gate in Eridani's system definition.

And that will allow you to get to the Sol system from Eridani.


Now to use that Third gate.

Let's say you wanted to place the branch in a system that already was using it's 2 gates. You need the third gate.

We will place the Sol system gate in SK now, to stick to just altering transcendence xml.

find "&ssStKatharine;"

And find a good spot to place <Lookup table="StargateThird" /> only if you added that third table to the <SystemTypes> <Tables>.

If you didn't, place this instead: <Station type="&stStargate;" stargate="Third" />. If you are going to be doing a lot of gates it's easier to do lookup tables.

Now go down into the <StarSystemTopology again and find <Node ID="SK"

and add the third gate link- <StarGate name="Third" DestID="Sol" DestGate="Outbound"/>

And remember to change the Sol gate to point to the Third gate as a DestGate...

Think you got all that?
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

Thanks! alot.
Post Reply