Set Starting Point

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
catfighter
Militia Commander
Militia Commander
Posts: 466
Joined: Fri Nov 08, 2013 5:17 am
Location: Laughing manically amidst the wreckage of the Iocrym fleet.

How do you set your starting point to a system other than Eridani? I want to know how to do this so I can make mods that start in custom systems.
Behold my avatar, one of the few ships to be drawn out pixel by pixel in the dreaded... Microsoft Paint!

Day 31: "I have successfully completed my time reversal experiment! Muahahaha!!!"
Day 30: "I might have run into a little problem here."
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

In the <Playersettings of a ship:

Code: Select all

			initialClass=		"true"
			startingSystem=		"SE"
			startingPos=		"Start"
Set StartingSystem to the name of the node you want to (like SE for Starton Eridani, SK for St. Kat's ). You have to find the node ID's through code though.
Set startingPos to ="Inbound" or "Outbound" because those gates are the only set points in the system (I think you can also try nil too, but I haven't checked).
From HumanSpaceMap.xml:

Code: Select all

<SystemMap UNID="&smHumanSpace;"
			name=				"Human Space" 
			backgroundImage=	"&rsHumanSpace;"
			initialScale=		"100"
			minScale=			"50" 
			maxScale=			"100" 
			>

		<!-- NEW BEYOND ==================================================== -->
		
		<NodeGroup ID="NewBeyondMainline">
			<Stargate from="SE:Outbound"	to="C1:Inbound"/>
			<Stargate from="C1:Outbound"	to="C3:Inbound"/>
			<Stargate from="C3:Outbound"	to="C3A:Inbound"/>
			<Stargate from="C3A:Outbound"	to="BA:Inbound"/>
			<Stargate from="BA:Outbound"	to="C4:Inbound"/>
			<StargateTable>
				<Group chance="50">
					<Stargate from="C4:Outbound" to="C4A:Inbound"/>
					<Stargate from="C4A:Outbound" to="CP:Inbound"/>
				</Group>
				<Stargate chance="50" from="C4:Outbound" to="CP:Inbound"/>
			</StargateTable>
		</NodeGroup>
		
		<!-- ERIDANI -->
		
		<Node ID="SE" x="-29" y="-33">
			<System 
					name=			"Eridani"
					level=			"1"
					attributes=		"humanSpace, mainline, newBeyond"
					>
				<System UNID="&ssStartonEridani;"/>
			</System>

			<MapEffect>
				<Group xOffset="180" yOffset="-120">
					<Text text=				"New Beyond" 
							font=			"Title"
							primaryColor=	"0xff, 0xff, 0xff"
							opacity=		"20"
							/>
				</Group>
			</MapEffect>
		</Node>
		
		<!-- RIGEL AURELIUS -->

		<Node ID="BA" x="196" y="-189">
			<System
					name=			"Rigel Aurelius"
					level=			"2"
					attributes=		"humanSpace, mainline, newBeyond"
					>
				<System UNID="&ssBattleArena;"/>
			</System>
		</Node>

		<!-- CHARON -->
		
		<Node ID="CP" x="259" y="-58">
			<System
					name="Charon"
					level=			"3"
					attributes=		"humanSpace, mainline, newBeyond"
					>
				<System UNID="&ssCharonPirateFortress;"/>
			</System>

			<MapEffect>
				<Group xOffset="-120" yOffset="-60">
					<Text text=				"Charon Pirates" 
							font=			"SubTitle"
							primaryColor=	"0xff, 0xff, 0xff"
							opacity=		"20"
							/>
				</Group>
			</MapEffect>
		</Node>

		<!-- SAINT KATHARINE'S STAR -->

		<Node ID="SK" x="228" y="20">
			<System
					name=			"St. Katharine's Star"
					level=			"4"
					attributes=		"humanSpace, mainline, stKatharine"
					>
				<System UNID="&ssStKatharine;"/>
			</System>
		</Node>
		
		<!-- MINOR NEW BEYOND SYSTEMS -->

		<Node ID="C1" x="27" y="-96">
			<System
					level=			"1"
					attributes=		"humanSpace, mainline, newBeyond"
					>
				<Table>
					<System chance="30" name="Groombridge" UNID="&ssEarthSpaceStandard;"/>
					<System chance="40" name="Lalande"	UNID="&ssEarthSpaceRedDwarf;"/>
					<System chance="30" name="5 Indi"		UNID="&ssEarthSpaceAsteroids;"/>
				</Table>
			</System>
		</Node>
If you want to go to Node ID="C1", just set the StartingSystem="C1".

If you have any more questions feel free to ask.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
catfighter
Militia Commander
Militia Commander
Posts: 466
Joined: Fri Nov 08, 2013 5:17 am
Location: Laughing manically amidst the wreckage of the Iocrym fleet.

Thanks for the code! :D All I needed to know was to set the startingSystem and startingPos in the playerships.

If I put "nil" for startingPos, would it generate a random starting position? Could I set the position to a certain station in the system? (I'm creating my own star system for a mod)

[brief description of mod] You have just managed to escape a Charon Fortress and get into a small test ship. You'd better be good at running! Really good.
Behold my avatar, one of the few ships to be drawn out pixel by pixel in the dreaded... Microsoft Paint!

Day 31: "I have successfully completed my time reversal experiment! Muahahaha!!!"
Day 30: "I might have run into a little problem here."
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Nil is at the center of the system I think.
You could set the position to a name of a hardcoded part in the system (like if you named a planet 'StartHere' and it's in the startingSystem) and put 'StartHere' in the startingPos the game should spawn the ship at that planet.
You'd have to:
-hardcode a new system with a 'startHere' label (or any label really) on an object in the system (it would be good to look at how the Starton Eridani system is built to find 'Start')
-reference that system with StartingSystem=
-reference the label in startingPos=
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
catfighter
Militia Commander
Militia Commander
Posts: 466
Joined: Fri Nov 08, 2013 5:17 am
Location: Laughing manically amidst the wreckage of the Iocrym fleet.

I am building my own system for a challenge mod, and the playership is supposed to start out next to an enemy station. Could I use the station as the startingPos? Or would I have to just set it to the nearest planet and hope the ship ends up near the station?
Behold my avatar, one of the few ships to be drawn out pixel by pixel in the dreaded... Microsoft Paint!

Day 31: "I have successfully completed my time reversal experiment! Muahahaha!!!"
Day 30: "I might have run into a little problem here."
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

You can use the station as the position but you'd have to add the label IIRC.
Of course, you can always test ;)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Post Reply