Page 1 of 1

Question about certain strings

Posted: Sat Sep 27, 2014 3:57 am
by Giscard
Hello! I have almost created a fully new skin for a weapon from FTL CE - AE. The only problem, is that when the weapon fully charges, it reverts back to its original image for that last frame. Also what it looks like in the cargo and weapons slots, also has its original image.

I think it might have something to do with the string <IconImage> as I can't find the file that actually contains what is being referenced between the two <IconImage>'s.

Example:
<IconImage>UNKNOWN REFERENCE<IconImage>

All help is highly appreciated,

-Giscard ;)

Re: Question about certain strings

Posted: Sat Sep 27, 2014 4:04 am
by NarnKar
<iconImage> is the icon on iPad. It should hardly matter.

I think what it is, is frame numbering. If you could post your code and weapon strip, that'd be helpful.
But basically...the first frame is actually considered frame 0. So if you had 10 frames, it would be numbered: frame 0, 1, 2, 3, 4, 5, .... 9.

Re: Question about certain strings

Posted: Sat Sep 27, 2014 4:44 am
by Giscard
NarnKar wrote:<iconImage> is the icon on iPad. It should hardly matter.

I think what it is, is frame numbering. If you could post your code and weapon strip, that'd be helpful.
But basically...the first frame is actually considered frame 0. So if you had 10 frames, it would be numbered: frame 0, 1, 2, 3, 4, 5, .... 9.

Omg this helps so much!
Code:
Blueprints

Code: Select all

<weaponBlueprint name="BA_SHOTGUN_MISSILES_II">
	<type>BURST</type>
	<flavorType>Swarm Missile Blast</flavorType>
	<title>Flak Charger</title>
	<tip>tip_flak</tip>
	<short>Flak C.</short>
	<desc>Fires 6 swarms of laser-warheads across a very wide area doing up to 5 damage. Very hard to aim and therefore ineffective against smaller ships. This weapon charges faster after each volley.</desc>
	<tooltip>Fires missiles swarms across a random area doing up to 6 damage. Pierces all shields.</tooltip>
	<drone_targetable>2</drone_targetable>
	<radius>120</radius>
	<damage>1</damage>
	<shots>2</shots>
	<sp>5</sp>
	<fireChance>0</fireChance>
	<breachChance>3</breachChance>
	<cooldown>19</cooldown>
	<power>4</power>
	<cost>110</cost>
	<bp>10</bp>
	<speed>55</speed>
	<rarity>4</rarity>
	<explosion>ba_explosion_anime</explosion>
	<boost>
		<type>cooldown</type>
		<amount>3</amount>
		<count>3</count>
	</boost>
	<projectiles>
		<projectile count="1" fake="false">ba_shotgun_missile_ii_shot_6</projectile>
		<projectile count="1" fake="false">ba_shotgun_missile_ii_shot_1</projectile>
		<projectile count="1" fake="false">ba_shotgun_missile_ii_shot_3</projectile>
		<projectile count="1" fake="false">ba_shotgun_missile_ii_shot_6</projectile>
		<projectile count="1" fake="true">ba_shotgun_missile_ii_shot_3</projectile>
		<projectile count="1" fake="false">ba_shotgun_missile_ii_shot_6</projectile>
	</projectiles>
	<launchSounds>
		<sound>engine_missile_swarm_launch</sound>
	</launchSounds>
	<hitShipSounds>
		<sound>hit_hull_scatter_1</sound>
		<sound>hit_hull_scatter_2</sound>
		<sound>hit_hull_scatter_3</sound>
	</hitShipSounds>
	<hitShieldSounds>
		<sound>hit_shield_scatter_1</sound>
		<sound>hit_shield_scatter_2</sound>
		<sound>hit_shield_scatter_3</sound>
	</hitShieldSounds>
	<missSounds>
		<sound>miss</sound>
	</missSounds>
	<weaponArt>ba_shotgun_missile_ii</weaponArt> 
	<iconImage>flak</iconImage>
</weaponBlueprint>
Animations

Code: Select all

<animSheet name="ba_shotgun_missile_ii_shot_1" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_1_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_1">
	<sheet>ba_shotgun_missile_ii_shot_1</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>

<animSheet name="ba_shotgun_missile_ii_shot_2" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_2_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_2">
	<sheet>ba_shotgun_missile_ii_shot_2</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>


<animSheet name="ba_shotgun_missile_ii_shot_3" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_3_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_3">
	<sheet>ba_shotgun_missile_ii_shot_3</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>

<animSheet name="ba_shotgun_missile_ii_shot_4" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_4_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_4">
	<sheet>ba_shotgun_missile_ii_shot_4</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>

<animSheet name="ba_shotgun_missile_ii_shot_5" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_5_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_5">
	<sheet>ba_shotgun_missile_ii_shot_5</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>


<animSheet name="ba_shotgun_missile_ii_shot_6" w="352" h="45" fw="44" fh="45">weapons/ba_shotgun_missile_ii_shot_6_strip8.png</animSheet>
<anim name="ba_shotgun_missile_ii_shot_6">
	<sheet>ba_shotgun_missile_ii_shot_6</sheet>
	<desc length="4" x="0" y="0"/>
	<time>0.1</time>
</anim>

<animSheet name="ba_shotgun_missile_ii" w="256" h="70" fw="32" fh="70">weapons/ba_shotgun_missile_ii_strip8.png</animSheet>
<weaponAnim name="ba_shotgun_missile_ii">
	<sheet>ba_shotgun_missile</sheet>
	<desc length="8" x="0" y="0"/>
	<chargedFrame>1</chargedFrame>
	<fireFrame>3</fireFrame>
	<firePoint  x="15" y="25"/>
	<mountPoint x="3" y="33"/>
	<chargeImage>weapons/ba_shotgun_missile_ii_glow.png</chargeImage>
</weaponAnim>
Weapon strip
Image

But I still don't get why it would be like
Image
for the final frame, because I havn't referenced to this image at all, let alone this part...

EDIT:
I have made a link to the mod and the other components it requires, like ftl CE and the ship with the weapon on it (it is the Lanius type A).
I have made a few tweaks and additions, but the only problem is that the strip the weapon is meant to be now
Image
actually (in the game) turns out to be
Image
and also the last frame is still
Image
Other than that everything is good,

Please try the weapon or view the files so u can tell me what is wrong with the strip.
Link to all the stuff I mentioned at the start of the edit: http://www.filedropper.com/weaponandshippackv1

Re: Question about certain strings

Posted: Sun Sep 28, 2014 4:58 am
by Giscard
Problem fixed.