Need help with my system topology

Freeform discussion about anything related to modding Transcendence.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Drako Slyith wrote: Is that needed at all? it seems that it tells the game where to send the player when they go through the gate.
Are you asking if it is needed in the vanilla game or in your mod?

If you mean in vanilla, the answer is yes. If you mean in your mod, then the answer is most likely no...

You can always use the good old technique. Remove it (comment it), run it, test it. If it still works, then it is probably not required. :)
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

Okay thanks.
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

I've been trying to get this to work for about a week and I still can't get it. :oops: I've tried everything I can think of, but I always get a horrible error message saying it cannot create the stargate. I have this for the code:

Code: Select all

<Events>
<OnGlobalTopologyCreated>
(block (gateway)

; Pick a random system in space to have a gateway to WaterLoo
(setq gateway
(random
(filter (sysGetNodes) theNode
(and (sysHasAttribute theNode 'newBeyond) (geq (sysGetLevel theNode) 1))
)
)
)

(if gateway
(block Nil
(typSetGlobalData &svCommonwealth; "WaterLooGateway" gateway)
(sysAddStargateTopology gateway "WaterLooGateway" "WaterLoo" "WaterLooGateway")
(sysCreateStargate &stStargate; (sysVectorRandom Nil 0 0 "t") "WaterLooGateway" "WaterLoo" "WaterLooGateway")
)
)
)
</OnGlobalTopologyCreated>

<OnGlobalSystemCreated>
(if (eq (sysGetNode) (typGetGlobalData &svCommonwealth; "WaterLooGateway"))
(block Nil

; Create a stargate in deep space away from everything
(sysCreateStargate
&stStargate;
(sysVectorRandom Nil 0 0 "t")
"WaterLooGateway"
"WaterLoo"
"WaterLooGateway"
)
)
)
</OnGlobalSystemCreated>
</Events>  
I have the nodes as:

Code: Select all

     <Node ID="WaterLoo" rootNode="True">
         <System
               name=            "WaterLoo"
               level=            "9"
               attributes=         "outerRealm"
               variant=         "ungoverned">
            <System UNID="&ssWaterLoo;"/>
         </System>

         <StarGates>
            <StarGate Name="WaterLooGateway" DestID="[Prev]" DestGate="Outbound"/>
            <StarGate Name="Outbound" DestID="Z2" DestGate="Inbound"/>
         </StarGates>
      </Node>
      <Node ID="Z2" rootNode="True">
         <System
               name=            "Sol"
               level=            "10"
               attributes=         "outerRealm"
               variant=         "ungoverned">
            <System UNID="&ssSol;"/>
         </System>

         <StarGates>
            <StarGate Name="Inbound" DestID="WaterLoo" DestGate="WaterLooGateway"/>
            <StarGate Name="Outbound" DestID="A7" DestGate="Inbound"/>
         </StarGates>
      </Node>

   </StarSystemTopology>
What am I missing? I am so confused...
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
Post Reply