Page 1 of 1

Laser Artillery freezes the game

Posted: Sun May 03, 2020 6:51 pm
by Sergeek
I want to turn the Flak Arty into the Laser Arty. It works great on regular ships, but when it strikes the auto-ship - game freezes to death. Tried to look up other mods for reverse-engineering, found one with similar concept (The Dreamship), but its Arty has only five projectiles instead of seven. Maybe targeting the ship with less than seven rooms crashes the game? Here is the code just in case:

Code: Select all

<weaponBlueprint name="ARTILLERY_FED_C">
	<type>LASER</type>
	<title>Laser Artillery</title>
	<short>Laser A.</short>
	<desc>Powers a slow, high-powered laser that fires seven projectiles with a low chance of fire. More power means faster cooldown.</desc>
	<tooltip>Artillery: Laser that automatically fires 7 projectiles with a low chance of fire.</tooltip>
	<damage>1</damage>
	<shots>7</shots>
	<sp>0</sp>
	<fireChance>1</fireChance>
	<breachChance>0</breachChance>
	<cooldown>40</cooldown>
	<power>1</power>
	<cost>0</cost>
	<bp>10</bp>
	<rarity>0</rarity>
	<image>laser_light2</image>
	<launchSounds>
		<sound>lightLaser1</sound>
		<sound>lightLaser2</sound>
		<sound>lightLaser3</sound>
	</launchSounds>
	<hitShipSounds>
		<sound>hitHull2</sound>
		<sound>hitHull3</sound>
	</hitShipSounds>
	<hitShieldSounds>
		<sound>hitShield1</sound>
		<sound>hitShield2</sound>
		<sound>hitShield3</sound>
	</hitShieldSounds>
	<missSounds>
		<sound>miss</sound>
	</missSounds>
	<iconImage>laser</iconImage>
	<weaponArt>artillery_fed</weaponArt>
</weaponBlueprint>

Re: Laser Artillery freezes the game

Posted: Sun May 03, 2020 8:42 pm
by Jumbocarrot0
Sergeek wrote:Maybe targeting the ship with less than seven rooms crashes the game?
That’s exactly the problem.

Re: Laser Artillery freezes the game

Posted: Mon May 04, 2020 7:05 am
by Sergeek
Jumbocarrot0 wrote:
Sergeek wrote:Maybe targeting the ship with less than seven rooms crashes the game?
That’s exactly the problem.
This is sad! Is there nothing that can be done? No workaround? Maybe I can turn it into a faux Flak?

Re: Laser Artillery freezes the game

Posted: Mon May 04, 2020 8:41 am
by Jumbocarrot0
Sergeek wrote:
Jumbocarrot0 wrote:
Sergeek wrote:Maybe targeting the ship with less than seven rooms crashes the game?
That’s exactly the problem.
This is sad! Is there nothing that can be done? No workaround? Maybe I can turn it into a faux Flak?
Burst weapons would work, because they do for the Fed C. If you don't want to do that you'll have to make sure the artillery never shoots too many shots.