Wrong ship image

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
stargateprovider
Posts: 229
Joined: Thu Oct 03, 2013 1:21 pm

Wrong ship image

Post by stargateprovider »

I made some enemy ships in Superluminal and some events where they should appear, but they don't, instead a Rebel Rigger always appears, everything else in the event works and the ships image and layout names are all matching.

autoBlueprints.xml.append:

Code: Select all

	<name>WRAITH_HIVE</name>
</blueprintList>

<blueprintList name="SHPS_WRAITH_AND_AUTO">
	<name>WRAITH_FAT</name>
	<name>WRAITH_SKINNY</name>
	<name>WRAITH_SCOUT</name>
	<name>WRAITH_ASSAULT</name>
</blueprintList>

<blueprintList name="SHIPS_WRAITH_ELITE">
	<name>WRAITH_HIVE</name>
	<name>WRAITH_HIVE</name>
</blueprintList>

<blueprintList name="SHIPS_CIVILIAN">
	<name>JELLY_BUTTON</name>
	<name>JELLY_CROISSANT</name>
	<name>JELLY_TRUFFLE</name>
	<name>ROCK_SCOUT</name>
	<name>ROCK_FIGHT</name>
	<name>FED_SCOUT</name>
	<name>FED_BOMBER</name>
	<name>CIRCLE_SCOUT</name>
	<name>CIRCLE_BOMBER</name>
</blueprintList>

<blueprintList name="SHIPS_PIRATE">
	<name>JELLY_BUTTON</name>
	<name>JELLY_CROISSANT</name>
	<name>JELLY_TRUFFLE</name> 
	<name>REBEL_FAT</name>
	<name>REBEL_SKINNY</name>  
	<name>ROCK_SCOUT</name>
	<name>ROCK_FIGHT</name>
	<name>FED_SCOUT</name>
	<name>FED_BOMBER</name>
	<name>ZOLTAN_FIGHTER</name>
	<name>ZOLTAN_BOMBER</name>
	<name>ORI_PIRATE</name>
</blueprintList>


<!----------------------
  WRAITH
  --------------------->


<shipBlueprint name="WRAITH_LIGHT" layout="wraith_light" img="wraith_light">
	<class>Wraith Light Cruiser</class>
	<systemList>
		<pilot power="1" max="1" room="0" start="true"/>
		<drones power="4" max="6" room="1" start="true"/>
		<sensors power="1" max="1" room="4" start="true"/>
		<medbay power="1" max="1" room="5" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<weapons power="5" max="6" room="6" start="true"/>
		<engines power="4" max="6" room="7" start="true"/>
		<oxygen power="1" max="1" room="8" start="true"/>
	</systemList>
	<weaponSlots>4</weaponSlots>
	<droneSlots>3</droneSlots>
	<weaponList missiles="8" load="WEAPONS_WRAITH"/>
	<droneList drones="3" load="DRONES_WRAITH"/>
	<health amount="15"/>
	<maxPower amount="13"/>
	<crewCount amount="3" max="4" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>

<shipBlueprint name="WRAITH_LONG" layout="wraith_long" img="wraith_long">
	<class>Wraith Cruiser</class>
	<systemList>
		<pilot power="1" max="1" room="0" start="true"/>
		<medbay power="1" max="1" room="2" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<weapons power="6" max="7" room="3" start="true"/>
		<engines power="6" max="7" room="4" start="true"/>
		<sensors power="0" max="1" room="5" start="true"/>
		<oxygen power="1" max="1" room="6" start="true"/>
		<drones power="6" max="6" room="8" start="true"/>
	</systemList>
	<weaponSlots>4</weaponSlots>
	<droneSlots>3</droneSlots>
	<weaponList missiles="0" load="WEAPONS_REBEL"/>
	<droneList drones="10" load="DRONES_WRAITH"/>
	<health amount="20"/>
	<maxPower amount="21"/>
	<crewCount amount="4" max="6" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>

<shipBlueprint name="WRAITH_HIVE" layout="wraith_hive" img="wraith_hive">
	<class>Wraith Hive</class>
	<systemList>
		<pilot power="1" max="1" room="0" start="true"/>
		<medbay power="1" max="1" room="2" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<weapons power="7" max="7" room="3" start="true"/>
		<engines power="7" max="7" room="4" start="true"/>
		<sensors power="2" max="2" room="5" start="true"/>
		<oxygen power="2" max="2" room="6" start="true"/>
		<drones power="8" max="8" room="8" start="true"/>
		<doors power="0" max="1" room="15" start="true"/>
	</systemList>
	<weaponSlots>4</weaponSlots>
	<droneSlots>4</droneSlots>
	<weaponList missiles="0" load="WEAPONS_REBEL"/>
	<droneList drones="20" load="DRONES_WRAITH"/>
	<health amount="28"/>
	<maxPower amount="22"/>
	<crewCount amount="6" max="8" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>

<shipBlueprint name="WRAITH_SUPPLY" layout="wraith_supply" img="wraith_supply">
	<class>Wraith Supply Ship</class>
	<systemList>
		<pilot power="1" max="1" room="0" start="true"/>
		<drones power="4" max="6" room="1" start="true"/>
		<sensors power="1" max="1" room="4" start="true"/>
		<medbay power="1" max="1" room="5" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<weapons power="5" max="6" room="6" start="true"/>
		<engines power="4" max="6" room="7" start="true"/>
		<oxygen power="1" max="1" room="8" start="true"/>
	</systemList>
	<weaponSlots>4</weaponSlots>
	<droneSlots>3</droneSlots>
	<weaponList missiles="10" load="WEAPONS_REBEL"/>
	<droneList drones="4" load="DRONES_WRAITH"/>
	<health amount="9"/>
	<maxPower amount="14"/>
	<crewCount amount="4" max="6" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>
		
		
		
		
<!----------------------
  AUTOMATED
  --------------------->
		
<shipBlueprint name="WRAITH_ASSAULT" layout="wraith_assault" img="wraith_assault">
	<class>Wraith-Assault</class>
	<systemList>
		<sensors power="1" max="1" room="0" start="true"/>
		<weapons power="4" max="7" room="1" start="true"/>
		<pilot power="1" max="1" room="2" start="true"/>
		<oxygen power="1" max="1" room="3" start="true"/>
		<engines power="3" max="5" room="4" start="true"/>
	</systemList>
	<weaponSlots>3</weaponSlots>
	<droneSlots>0</droneSlots>
	<weaponList missiles="0" load="WEAPONS_AUTO"/>
	<droneList drones="0" load="DRONES_COMBAT"/>
	<health amount="12"/>
	<maxPower amount="13"/>
	<crewCount amount="1" max="1" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>

<shipBlueprint name="WRAITH_SCOUT" layout="wraith_scout" img="wraith_scout">
	<class>Wraith-Scout</class>
	<minSector>1</minSector>
	<systemList>
		<sensors power="2" max="2" room="0" start="true"/>
		<engines power="2" max="4" room="1" start="true"/>
		<pilot power="1" max="2" room="2" start="true"/>
		<oxygen power="1" max="1" room="3" start="true"/>
		<weapons power="2" max="5" room="4" start="true"/>
	</systemList>
	<weaponSlots>2</weaponSlots>
	<droneSlots>0</droneSlots>
	<weaponList missiles="10" load="WEAPONS_AUTO"/>
	<health amount="6"/>
	<maxPower amount="10"/>
	<crewCount amount="1" max="1" class="mantis"/>
	<aug name="SLUG_GEL"/>
	<aug name="ROCK_ARMOR"/>
</shipBlueprint>




<!----------------------
  OTHER
  --------------------->
  
<shipBlueprint name="ORI_PIRATE" layout="ori_pirate" img="ori_pirate">
	<class>Ori Warship</class>
	<systemList>
		<pilot power="1" max="3" room="0" start="true"/>
		<shields power="6" max="6" room="1" start="true"/>
		<weapons power="4" max="4" room="2" start="true"/>
		<medbay power="1" max="1" room="3" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<doors power="1" max="2" room="4" start="false"/>
		<oxygen power="1" max="1" room="6" start="true"/>
		<sensors power="0" max="1" room="7" start="true"/>
		<engines power="4" max="5" room="8" start="true"/>
	</systemList>
	<weaponSlots>3</weaponSlots>
	<droneSlots>0</droneSlots>
	<weaponList count="1" missiles="0">
		<weapon name="BEAM_3"/>
	</weaponList>
	<health amount="16"/>
	<maxPower amount="10"/>
	<crewCount amount="1" max="1" class="slug"/>
	<crewCount amount="1" max="2" class="energy"/>
	<crewCount amount="1" max="1" class="human"/>
	<aug name="SHIELD_RECHARGE"/>
</shipBlueprint>

<shipBlueprint name="HATAK" layout="jaffahatak" img="jaffahatak">
	<class>Ha'tak</class>
	<minSector>1</minSector>
	<systemList>
		<medbay power="2" max="2" room="1" start="true">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<weapons power="2" max="2" room="2" start="true"/>
		<sensors power="1" max="1" room="3" start="true"/>
		<engines power="3" max="3" room="5" start="true"/>
		<shields power="2" max="2" room="6" start="true"/>
		<teleporter power="1" max="1" room="9" start="true"/>
		<pilot power="1" max="1" room="12" start="true"/>
		<drones power="4" max="4" room="13" start="true"/>
		<doors power="1" max="1" room="14" start="true"/>
		<oxygen power="1" max="1" room="15" start="true"/>
	</systemList>
	<weaponSlots>3</weaponSlots>
	<droneSlots>2</droneSlots>
	<weaponList count="2" missiles="0">
		<weapon name="LASER_BURST_2"/>
		<weapon name="LASER_BURST_2"/>
	</weaponList>
	<droneList drones="10" load="DRONES_GOAULD"/>
	<health amount="30"/>
	<maxPower amount="14"/>
	<crewCount amount="4" max="4" class="human"/>
	<boardingAI>sabotage</boardingAI>
</shipBlueprint>

<shipBlueprint name="TELTAK" layout="jaffateltak" img="jaffateltak">
	<class>Tel'tak</class>
	<systemList>
		<medbay power="0" max="1" room="0" start="false">
			<slot>
				<number>-2</number>
			</slot>
		</medbay>
		<cloaking power="3" max="1" room="1" start="true"/>
		<pilot power="1" max="1" room="2" start="true"/>
		<shields power="2" max="1" room="3" start="true"/>
		<weapons power="2" max="2" room="4" start="true"/>
		<oxygen power="1" max="1" room="5" start="true"/>
		<engines power="3" max="3" room="6" start="true"/>
		<doors power="1" max="1" room="7" start="true"/>
		<teleporter power="0" max="1" room="8" start="false"/>
	</systemList>
	<weaponSlots>2</weaponSlots>
	<droneSlots>0</droneSlots>
	<health amount="15"/>
	<maxPower amount="8"/>
	<crewCount amount="0" max="0" class="human"/>
	<boardingAI>sabotage</boardingAI>
</shipBlueprint>
events_ships.xml.append:

Code: Select all

<!-- SG MODIFIED SHIP EVENTS -->

<ship name="WRAITH_A" auto_blueprint="SHIPS_WRAITH">
	<escape  chance="0.5" min="0" max="2" load="PIRATE_ESCAPE"/>
	<destroyed load="DESTROYED_DEFAULT"/>
	<gotaway>
		<text>The ship jumped away.</text>
	</gotaway>
	<deadCrew load="DEAD_CREW_DEFAULT"/>
</ship>

<ship name="ORI" auto_blueprint="SHIPS_PIRATE">
	<escape  chance="0.5" min="0" max="2" load="PIRATE_ESCAPE"/>
	<destroyed load="DESTROYED_DEFAULT"/>
	<gotaway>
		<text>The ship jumped away.</text>
	</gotaway>
	<deadCrew load="DEAD_CREW_DEFAULT"/>
</ship>

<ship name="WRAITH_AUTO" auto_blueprint="SHIPS_WRAITH_AND_AUTO">
	<destroyed>
		<text>With the Wraith ship destroyed you are free to collect the scrap.</text>
		<autoReward level="MED">scrap_only</autoReward>
	</destroyed>
	<deadCrew>
		<text>With the Wraith ship defeated you quickly salvage what you can.</text>
		<autoReward level="MED">standard</autoReward>
	</deadCrew>
</ship>

<ship name="HATAK" auto_blueprint="SHIPS_HATAK">
	<destroyed load="DESTROYED_DEFAULT"/>
	<gotaway>
		<text>The ship jumped away.</text>
	</gotaway>
	<deadCrew load="DEAD_CREW_DEFAULT"/>
</ship>

<ship name="GHOST_SHIP" auto_blueprint="ORI_PIRATE">
	<destroyed>
		<text>The haunted ship is destroyed. It won't be able to trouble future travelers.</text>
		<autoReward level="HIGH">standard</autoReward>
	</destroyed>
	<crew>
		   <crewMember class="ghost" prop="2"/>
	</crew>
</ship>
Last edited by stargateprovider on Mon Dec 09, 2013 3:23 pm, edited 5 times in total.
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Help modding

Post by kartoFlane »

You probably added new images for your auto scout, named differently, but left the image property as it was:

Code: Select all

<shipBlueprint name="SCOUT_BASIC" layout="auto_basic" img="auto_basic">
Note the img="auto_basic" - this means the ship will use images that follow the naming pattern of auto_basic_[hull/cloak/gib#].png
If your ship's images are named like scout_basic_...png, you'll have to change the img= attribute to "scout_basic".

If the "different layout and systems" is also part of the problem, you may want to check the layout= attribute. Make sure that it points to scout_basic.txt (or whatever your layout file is named), and not auto_basic.txt (as the blueprint does now).

Or maybe you just didn't copy the layout and image files over from what the editor exported, only the blueprint...
Superluminal2 - a ship editor for FTL
stargateprovider
Posts: 229
Joined: Thu Oct 03, 2013 1:21 pm

Re: Help modding

Post by stargateprovider »

kartoFlane wrote:You probably added new images for your auto scout, named differently, but left the image property as it was:

Code: Select all

<shipBlueprint name="SCOUT_BASIC" layout="auto_basic" img="auto_basic">
Note the img="auto_basic" - this means the ship will use images that follow the naming pattern of auto_basic_[hull/cloak/gib#].png
If your ship's images are named like scout_basic_...png, you'll have to change the img= attribute to "scout_basic".

If the "different layout and systems" is also part of the problem, you may want to check the layout= attribute. Make sure that it points to scout_basic.txt (or whatever your layout file is named), and not auto_basic.txt (as the blueprint does now).

Or maybe you just didn't copy the layout and image files over from what the editor exported, only the blueprint...
No, I did all that, but different systems still appear where they shouldn't be.
Images are all correct.
Also, I changed the autoblueprint
New file: https://www.upload.ee/files/3724874/aut ... ppend.html
And I have a second question: If an event says: <ship load="REBEL_AUTO" Which ship will it load, as there isn't any ship with a name like that, not even in the ship lists?
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Help modding

Post by kartoFlane »

No idea where the problem might be, then *shrug*
stargateprovider wrote:And I have a second question: If an event says: <ship load="REBEL_AUTO" Which ship will it load, as there isn't any ship with a name like that, not even in the ship lists?
In an <event>, <ship load=""/> refers to a <ship> event (most of which are usually located in events_ships.xml). Then those events specify which ships they load, either explicitly, or by linking a blueprint list.
Superluminal2 - a ship editor for FTL
stargateprovider
Posts: 229
Joined: Thu Oct 03, 2013 1:21 pm

Re: Help modding

Post by stargateprovider »

kartoFlane wrote:No idea where the problem might be, then *shrug*
stargateprovider wrote:And I have a second question: If an event says: <ship load="REBEL_AUTO" Which ship will it load, as there isn't any ship with a name like that, not even in the ship lists?
In an <event>, <ship load=""/> refers to a <ship> event (most of which are usually located in events_ships.xml). Then those events specify which ships they load, either explicitly, or by linking a blueprint list.
At least I got one answer :D, Thank you.
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
agigabyte
Posts: 547
Joined: Fri May 31, 2013 1:59 am

Re: Help modding

Post by agigabyte »

It is possible to make new enemy ships, right? If so, try making a new one and making a custom event, instead of replacing a ship.
stargateprovider
Posts: 229
Joined: Thu Oct 03, 2013 1:21 pm

Re: Wrong ship image

Post by stargateprovider »

The problem remains.
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
Post Reply