[George] TypCreating <ShipTable> XML causes ships to dock at stargates

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
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?

Wed Sep 27, 2017 10:23 pm

In Civilian Crafts, the only thing I do is add extra lines to <ShipTable> by replacing it with TypCreate on game start. However, this also means ships want to dock at the stargate for some reason.


What do?

Here is an example XML geaned from debuglog:

Code: Select all

	<ShipTable>
		<LevelTable>			
			<Ship levelFrequency="uuucc cuuuu" count="1" class="-517459671" orders="guard"/>			
			<Ship levelFrequency="uuucc cuuuu" count="1" class="-517459664" orders="guard"/>			
			<Ship levelFrequency="uccuu -----" count="1" class="-299630522" orders="guard"/>			
			<Ship levelFrequency="-vrrc ccuur" count="1" class="-299630521" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="-299630520" orders="guard"/>			
			<Ship levelFrequency="ccuuv -----" count="1" class="-299630538" orders="guard"/>			
			<Ship levelFrequency="vvruc uuv--" count="1" class="-299630537" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="-554885118" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="-554889215" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="-554889214" orders="guard"/>			
			<Ship levelFrequency="----- -rrr-" count="1" class="-554889213" orders="guard"/>			
			<Ship levelFrequency="----- -uuu-" count="1" class="-554889212" orders="guard"/>			
			<Ship levelFrequency="----- -rrr-" count="1" class="-554889211" orders="guard"/>			
			<Ship levelFrequency="----- vruc-" count="1" class="-554889208" orders="guard"/>			
			<Ship levelFrequency="----- ruuc-" count="1" class="-554889207" orders="guard"/>			
			<Ship levelFrequency="----- ruuc-" count="1" class="-554889200" orders="guard"/>			
			<Ship levelFrequency="----- ruuc-" count="1" class="-554889199" orders="guard"/>			
			<Ship levelFrequency="----- ruuc-" count="1" class="-554889198" orders="guard"/>			
			<Ship levelFrequency="----- rrr--" count="1" class="-554889197" orders="guard"/>			
			<Ship levelFrequency="---rr ccuv-" count="1" class="-554889196" orders="guard"/>			
			<Ship levelFrequency="---rr ccuv-" count="1" class="-554889195" orders="guard"/>			
			<Ship levelFrequency="---rr ccuv-" count="1" class="-554889194" orders="guard"/>			
			<Ship levelFrequency="---uu cccr-" count="1" class="-554889193" orders="guard"/>			
			<Ship levelFrequency="---uu cccr-" count="1" class="-554889192" orders="guard"/>			
			<Ship levelFrequency="---uu cccr-" count="1" class="-554889191" orders="guard"/>			
			<Ship levelFrequency="---uu cccr-" count="1" class="-554889184" orders="guard"/>			
			<Ship levelFrequency="---uu cccr-" count="1" class="-554889183" orders="guard"/>			
			<Ship levelFrequency="uurr- -----" count="1" class="12290" orders="guard"/>			
			<Ship levelFrequency="cccrr -----" count="1" class="1060872" orders="guard"/>			
			<Ship levelFrequency="rrruu ur---" count="1" class="12291" orders="guard"/>			
			<Ship levelFrequency="uuucc cuuuu" count="1" class="12305" orders="guard"/>			
			<Ship levelFrequency="--rru uuuuu" count="1" class="12292" orders="guard"/>			
			<Ship levelFrequency="-rrcc cuuuu" count="1" class="1060873" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="1060865" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="1060874" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="1060875" orders="guard"/>			
			<Ship levelFrequency="----- -----" count="1" class="1716231" orders="guard"/>			
			<Ship levelFrequency="uuurr -----" count="1" class="134479875" orders="guard"/>			
			<Ship levelFrequency="ccrr- -----" count="1" class="12296" orders="guard"/>			
			<Ship levelFrequency="cccuu r----" count="1" class="12289" orders="guard"/>			
			<Ship levelFrequency="ruccc uur--" count="1" class="1388549" orders="guard"/>			
			<Ship levelFrequency="rrruc ccuuu" count="1" class="12304" orders="guard"/>			
			<Ship levelFrequency="vvvrr r----" count="1" class="1388546" orders="guard"/>			
			<Ship levelFrequency="vvruu urr--" count="1" class="1388547" orders="guard"/>			
			<Ship levelFrequency="--vuu urrrr" count="1" class="1388548" orders="guard"/>			
			<Ship levelFrequency="--vrr rrvvv" count="1" class="1388550" orders="guard"/>			
			<Ship levelFrequency="----r uurvv" count="1" class="1060866" orders="guard"/>			
			<Ship levelFrequency="uuuuu rvvvv" count="1" class="8388610" orders="guard"/>			
			<Ship levelFrequency="ucccu rvvvv" count="1" class="8388611" orders="guard"/>			
			<Ship levelFrequency="--vvr rrv--" count="1" class="134348801" orders="guard"/>			
			<Ship levelFrequency="uurr- -----" count="1" class="134479940" orders="guard"/>			
			<Ship levelFrequency="vvrvv -----" count="1" class="134414593" orders="guard"/>			
			<Ship levelFrequency="---vv rvv--" count="1" class="134414407" orders="guard"/>			
			<Ship levelFrequency="-vruc urv--" count="1" class="1454083" orders="guard"/>			
			<Ship levelFrequency="rrrrr rrrr-" count="1" class="134414343" orders="guard"/>			
			<Ship levelFrequency="-vruc urv--" count="1" class="134479878" orders="guard"/>			
			<Ship levelFrequency="-urrv -----" count="1" class="8454709" orders="guard"/>			
			<Ship levelFrequency="-urrv -----" count="1" class="8454710" orders="guard"/>			
			<Ship levelFrequency="-urrr -----" count="1" class="8454712" orders="guard"/>			
			<Ship levelFrequency="--rru urr--" count="1" class="8454497" orders="guard"/>			
			<Ship levelFrequency="---ru ur---" count="1" class="8454498" orders="guard"/>			
			<Ship levelFrequency="---vv vv---" count="1" class="8454482" orders="guard"/>			
		</LevelTable>
	</ShipTable>
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
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?

Thu Sep 28, 2017 12:45 am

Digdug was on to something:
these settings work:

Code: Select all

<ShipTable unid="&tbCommDefenders;">
		<LevelTable>
			<Ship levelFrequency="uuurr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uurr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ccrr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccrr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvvrr r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccuu r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvruu urr--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ruccc uur--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruu ur---" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uuucc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruc ccuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="-rrcc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vuu urrrr" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--rru uuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vrr rrvvv" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="----r uurvv" count="1" class="&scRoninA;"/>
			
		</LevelTable>
	</ShipTable>
	
	<!-- Commonwealth defenders for large/important stations -->

	<ShipTable unid="&tbCommEliteDefenders;">
		<LevelTable>
			<Ship levelFrequency="uuurr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uurr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ccrr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccrr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvvrr r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccuu r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvruu urr--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ruccc uur--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruu ur---" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uuucc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruc ccuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="-rrcc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vuu urrrr" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--rru uuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vrr rrvvv" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="----r uurvv" count="1" class="&scRoninA;"/>
		</LevelTable>
	</ShipTable>

	<!-- Commonwealth private crafts -->

	<ShipTable unid="&tbCommPrivateCrafts;">
		<LevelTable>
			<Ship levelFrequency="uuurr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uurr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ccrr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccrr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvvrr r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccuu r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvruu urr--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ruccc uur--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruu ur---" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uuucc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruc ccuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="-rrcc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vuu urrrr" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--rru uuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vrr rrvvv" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="----r uurvv" count="1" class="&scRoninA;"/>
		</LevelTable>
	</ShipTable>
	
	<!-- Commonwealth random traffic -->
	
	<ShipTable unid="&tbCommTraffic;">
		<LevelTable>
			<Ship levelFrequency="uuurr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uurr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ccrr- -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccrr -----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvvrr r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="cccuu r----" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="vvruu urr--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="ruccc uur--" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruu ur---" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="uuucc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="rrruc ccuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="-rrcc cuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vuu urrrr" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--rru uuuuu" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="--vrr rrvvv" count="1" class="&scRoninA;"/>
			<Ship levelFrequency="----r uurvv" count="1" class="&scRoninA;"/>
		</LevelTable>
	</ShipTable>
basically if you add too many ships they idle at the stargate/break the traffic code.
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
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?

Thu Sep 28, 2017 8:35 am

THE REAL ANSWER:
For real this time:

adding ship orders to &tbCommTraffic; kills the event handler or whatever so just don't do that. Otherwise they default to guarding stargates (which is cool in it's own right!).

It used to work on in older versions but latest 1.8.3a requires it I guess.
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