Laser Artillery freezes the game

Discuss and distribute tools and methods for modding. Moderator - Grognak
Sergeek
Posts: 2
Joined: Sun May 03, 2020 6:43 pm

Laser Artillery freezes the game

Postby Sergeek » Sun May 03, 2020 6:51 pm

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>
User avatar
Jumbocarrot0
Posts: 422
Joined: Sat Oct 21, 2017 1:18 am

Re: Laser Artillery freezes the game

Postby Jumbocarrot0 » Sun May 03, 2020 8:42 pm

Sergeek wrote:Maybe targeting the ship with less than seven rooms crashes the game?


That’s exactly the problem.
Image
Sergeek
Posts: 2
Joined: Sun May 03, 2020 6:43 pm

Re: Laser Artillery freezes the game

Postby Sergeek » Mon May 04, 2020 7:05 am

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?
User avatar
Jumbocarrot0
Posts: 422
Joined: Sat Oct 21, 2017 1:18 am

Re: Laser Artillery freezes the game

Postby Jumbocarrot0 » Mon May 04, 2020 8:41 am

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.
Image