Page 1 of 1

Player's ships randomizer

Posted: Wed Jan 06, 2016 9:38 am
by bamalf
These two screenshots are made in a single game session.
Image
Image

We must go to the main menu to make it work. The code is:

Code: Select all

<blueprintList name="PLAYER_SHIP_CIRCLE_2">
	<name>PLAYER_SHIP_CIRCLE_2A</name>
	<name>PLAYER_SHIP_CIRCLE_2B</name>
</blueprintList>

<shipBlueprint name="PLAYER_SHIP_CIRCLE_2A" layout="circle_cruiser_2" img="circle_cruiser_2">
	<class>Крейсер инжи</class>
	<name>The Vortex</name>
	<unlock>Выполните 2/3 достижений крейсера инжи, чтобы разблокировать этот корабль.</unlock>
	<desc>Будучи сильно недоукомплектованным, этот корабль полагается в полете на дронов.</desc>
	<systemList>  
		<pilot power="1" room="13" start="true"/>  
		<doors power="1" room="8" start="true">
			<slot>
				<direction>up</direction>
				<number>1</number> 
			</slot>
		</doors>
		<sensors power="1" room="2" start="false">  <!--F-->
			<slot>
				<direction>down</direction>
				<number>1</number> 
			</slot>
		</sensors>   
		<oxygen power="1" room="5" start="true" img="room_oxygen_6"/>  
		<engines power="1" room="0" start="true" img="room_engines_2"/>  
		<shields power="2" room="11" start="true" img="room_shields_11">
			<slot>
				<direction>down</direction>
				<number>1</number> 
			</slot>
		</shields>  
		<weapons power="2" room="1" start="true" img="room_weapons_8">  
			<slot>
				<direction>up</direction>
				<number>1</number> 
			</slot>
		</weapons>
		<drones power="4" room="7" start="true" img="room_drones_6"/>
		<medbay power="1" room="6" start="true" img="room_medbay_6">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<clonebay power="1" room="6" start="false">  <!--F-->
			<slot>
				<number>0</number>
			</slot>
		</clonebay>
		<teleporter power="1" room="3" start="false"/>     <!--F-->
		<cloaking power="1" room="12" start="false" img="room_cloaking_7"/>    <!--F-->
		<mind power="1" room="4" start="false" img="room_mind_6"/>    <!--F-->
		<battery power="1" room="10" start="false" img="room_battery_7"/>    <!--F-->
		<hacking power="1" room="9" start="false" img="room_hacking_4"/>    <!--F-->
	</systemList>
	<weaponSlots>3</weaponSlots>
	<droneSlots>3</droneSlots>
	<weaponList count="3" missiles="0">
		<weapon name="BA_SHOTGUN_ION_1"/>
		<weapon name="LASER_HEAVY_1"/>
		<weapon name="SHIPRADAR"/>
	</weaponList>
	<droneList count="2" drones="6">
		<drone name="DE_BATTLE_3"/>
		<drone name="DE_REPAIR_3"/>
	</droneList>
	<aug name="DRONE_SPEED"/>
	<aug name="DRONE_RECOVERY"/>
	<health amount="30"/>
	<maxPower amount ="8"/> 
	<crewCount amount = "1" class="engi"/>
	<shieldImage>circle_cruiser</shieldImage>
	<cloakImage>circle_cruiser</cloakImage>
</shipBlueprint>

<shipBlueprint name="PLAYER_SHIP_CIRCLE_2B" layout="circle_cruiser_2" img="circle_cruiser_2">
	<class>Крейсер инжи</class>
	<name>The Vortex</name>
	<unlock>Выполните 2/3 достижений крейсера инжи, чтобы разблокировать этот корабль.</unlock>
	<desc>Будучи сильно недоукомплектованным, этот корабль полагается в полете на дронов.</desc>
	<systemList>  
		<pilot power="3" room="13" start="true"/>  
		<doors power="1" room="8" start="true">
			<slot>
				<direction>up</direction>
				<number>1</number> 
			</slot>
		</doors>
		<sensors power="1" room="2" start="false">  <!--F-->
			<slot>
				<direction>down</direction>
				<number>1</number> 
			</slot>
		</sensors>   
		<oxygen power="1" room="5" start="true" img="room_oxygen_6"/>  
		<engines power="1" room="0" start="true" img="room_engines_2"/>  
		<shields power="2" room="11" start="true" img="room_shields_11">
			<slot>
				<direction>down</direction>
				<number>1</number> 
			</slot>
		</shields>  
		<weapons power="2" room="1" start="true" img="room_weapons_8">  
			<slot>
				<direction>up</direction>
				<number>1</number> 
			</slot>
		</weapons>
		<drones power="4" room="7" start="true" img="room_drones_6"/>
		<medbay power="1" room="6" start="true" img="room_medbay_6">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<clonebay power="1" room="6" start="false">  <!--F-->
			<slot>
				<number>0</number>
			</slot>
		</clonebay>
		<teleporter power="1" room="3" start="false"/>     <!--F-->
		<cloaking power="1" room="12" start="false" img="room_cloaking_7"/>    <!--F-->
		<mind power="1" room="4" start="false" img="room_mind_6"/>    <!--F-->
		<battery power="1" room="10" start="false" img="room_battery_7"/>    <!--F-->
		<hacking power="1" room="9" start="false" img="room_hacking_4"/>    <!--F-->
	</systemList>
	<weaponSlots>3</weaponSlots>
	<droneSlots>3</droneSlots>
	<weaponList count="3" missiles="0">
		<weapon name="BA_SHOTGUN_ION_1"/>
		<weapon name="LASER_HEAVY_1"/>
		<weapon name="SHIPRADAR"/>
	</weaponList>
	<droneList count="2" drones="6">
		<drone name="DE_BATTLE_3"/>
		<drone name="DE_REPAIR_3"/>
	</droneList>
	<aug name="DRONE_SPEED"/>
	<aug name="DRONE_RECOVERY"/>
	<health amount="30"/>
	<maxPower amount ="8"/> 
	<crewCount amount = "1" class="engi"/>
	<shieldImage>circle_cruiser</shieldImage>
	<cloakImage>circle_cruiser</cloakImage>
</shipBlueprint>
Greetings from Russian modmakers!

Re: Player's ships randomizer

Posted: Wed Jan 06, 2016 12:09 pm
by meklozz
Ah, the power of blueprintLists! Pretty amazing.

Maybe I should update my mod to make it possible to use with many different ships without having to coordinate when making mods.

Really great, people've been asking about more ships in the hangar for ages, and it was right under our noses. Damn.

Re: Player's ships randomizer

Posted: Wed Jan 06, 2016 4:24 pm
by Sleeper Service
Nice find bamalf! I assume the game takes a random ship from the list? Or is there any kind of regularity for how ships are chosen when entering the hangar?

/Edit: Also, does that work for ship equipment as well? Anyone feels like checking?

Re: Player's ships randomizer

Posted: Wed Jan 06, 2016 9:31 pm
by meklozz
Soo.. I upgraded the swapper to work with this, but I hesitate to upload anything, since I ran into some rather unpleasant issues.

If the ships have different images and descriptions, they sort of... flicker. Text flickers, to be precise. The miniature image changes sometimes when you go into the list (the actual ship stays the same until you go to the main menu, but it's misleading).
Sleeper Service wrote:/Edit: Also, does that work for ship equipment as well? Anyone feels like checking?
Weapon lists seem to work very well (probably drones, too), but crew doesn't seem possible, likely because it uses a different tag.

Augments do the flickering act just like the text, except they're not even functional. Additionally, you can sell them in a store without ever losing them, so, infinite scrap!

Re: Player's ships randomizer

Posted: Wed Jan 06, 2016 9:59 pm
by bamalf
It is very sad :( I have not tested it all

Re: Player's ships randomizer

Posted: Wed Jan 06, 2016 10:13 pm
by meklozz
C'mon, it's a great finding regardless. I just changed the text to display the same thing, in fact, a little bit of instruction for the mod. It still changes the miniatures, though. And if you click escape during the game on a ship from a blueprintList, there are no achievements displayed, even if the list only has one ship in it.

If you want to give it a test drive:

https://dl.dropboxusercontent.com/u/182 ... Swapv4.zip

Have to unzip to get the little mods out, pretty much the same instructions as in the thread linked above.

Re: Player's ships randomizer

Posted: Thu Jan 07, 2016 12:03 pm
by Sleeper Service
Well if at least weapon lists function correctly then this would still open up possibilities for a ship with randomized starting loadout, right? I mean without the need for event stuff or external tools. But then again that has been done already a few times. Still always interesting to discover new stuff. *puts on old cranky voice* I remember back in the day, when I thought I struck modding gold a few times...