Cannot get simple weapon mod to work at all

Discuss and distribute tools and methods for modding. Moderator - Grognak
Cyanners
Posts: 2
Joined: Wed Jan 27, 2021 8:54 pm

Cannot get simple weapon mod to work at all

Postby Cyanners » Wed Jan 27, 2021 9:03 pm

Hey guys, so ive been trying to make a very basic weapon mod by following guides but i cannot get it to show up in game at all. Ive tried everything i can think of to try and make it work. I create a zip file with just a data folder with a blueprints.xml.append file inside containing the code below. Im not including any extra images or sounds or anything, just trying to use the in game sprites and animations. Trying to fit the weapon to the default engi cruiser by changing its starting weapon. Slipstream 1.9.1 gives me the "not appending but clobbering" message everytime i try and validate as well. So yeah pretty stuck with this one :( . Any help is greatly appreciated.

Code: Select all

<shipBlueprint name="PLAYER_SHIP_CIRCLE" layout="circle_cruiser" img="circle_cruiser">
   <class id="ship_PLAYER_SHIP_CIRCLE_class"/>
   <name id="ship_PLAYER_SHIP_CIRCLE_name"/>
   <unlock id="ship_PLAYER_SHIP_CIRCLE_unlock"/>
   <desc id="ship_PLAYER_SHIP_CIRCLE_desc"/>
   <systemList>
      <pilot power="1" room="8" start="true"/>
      <doors power="1" room="5" start="true" img="room_doors_4">
         <slot>
            <direction>right</direction>
            <number>0</number>
         </slot>
      </doors>
      <sensors power="1" room="4" start="true" img="room_sensors_4">
         <slot>
            <direction>left</direction>
            <number>1</number>
         </slot>
      </sensors>
      <oxygen power="1" room="15" start="true" img="room_oxygen_4"/>
      <engines power="2" room="2" start="true" img="room_engines_2"/>
      <shields power="2" room="3" start="true" img="room_shields_4"/>
      <weapons power="3" room="11" start="true"/>
      <drones power="3" room="0" start="true"/>
      <medbay power="1" room="7" start="true"/>
      <clonebay power="1" room="7" start="false"/>   <!-- F-->
      <teleporter power="1" room="9" start="false"/><!-- F-->
      <cloaking power="1" room="12" start="false" img="room_cloaking_4"/> <!-- F-->
      <battery power="1" room="1" start="false" img="room_battery_6"/> <!-- F-->
      <mind power="1" room="6" start="false" img="room_mind_6"/> <!-- F-->
      <hacking power="1" room="14" start="false" img="room_hacking_2"> <!-- F-->
         <slot>
            <direction>down</direction>
            <number>0</number>
         </slot>
      </hacking>
   </systemList>
   <weaponSlots>3</weaponSlots>
   <droneSlots>3</droneSlots>
   <weaponList count="1" missiles="0">
      <weapon name="RAIL_PIERCE"/>
   </weaponList>
   <droneList count="1" drones="15">
      <drone name="COMBAT_1"/>
   </droneList>
   <aug name="NANO_MEDBAY"/>
   <health amount="30"/>
   <maxPower amount ="10"/>
   <crewCount amount = "1" class="human"/>
   <crewCount amount = "2" class="engi"/>
</shipBlueprint>

<weaponBlueprint name="RAIL_PIERCE">
   <type>LASER</type>
   <title>Rail Piercer</title>
   <short>Piercer</short>
   <tip>tip_laser</tip>
   <desc>A shield piercing laser.</desc>
   <tooltip>Can pierce up to 2 shields. Deals 2 damage per shot.</tooltip>
   <damage>2</damage>
   <shots>1</shots>
   <sp>2</sp>
   <fireChance>1</fireChance>
   <breachChance>1</breachChance>
   <cooldown>16</cooldown>
   <power>3</power>
   <cost>90</cost>
   <bp>2</bp>
   <rarity>4</rarity>
   <image>laser_light1</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>
   <weaponArt>laser_burst_1</weaponArt>
   <iconImage>laser</iconImage>
</weaponBlueprint>
Zoura3025
Posts: 12
Joined: Sat Dec 07, 2019 5:48 am

Re: Cannot get simple weapon mod to work at all

Postby Zoura3025 » Wed Jan 27, 2021 10:31 pm

1. "Not appending but clobbering" likely means you forgot to put a .append tag on your text files (blueprints, for example, should be "blueprints.xml.append"). This means that you are replacing the files instead of appending your stuff onto them, which will, well... Break. A lot. Like, the game's blueprints will not be loaded except for the data you have in that blueprint file.

2. Try putting your weapon code above your ship code. I believe FTL loads top-down instead of bottom-up, so it won't load the weapon properly.
Cyanners
Posts: 2
Joined: Wed Jan 27, 2021 8:54 pm

Re: Cannot get simple weapon mod to work at all

Postby Cyanners » Thu Jan 28, 2021 4:05 am

Ok so i really dont know why but i downloaded another persons weapon mod and edited their blueprints.xml.append file and it just worked. I tested what you suggested but i had no luck with it. Even giving slipstream an empty data folder said it was clobbering it so yeah. Apparently there was some evil stuff going on when i copied the blueprints.xml file and renamed it myself. Thx for the help though.
Zoura3025
Posts: 12
Joined: Sat Dec 07, 2019 5:48 am

Re: Cannot get simple weapon mod to work at all

Postby Zoura3025 » Thu Jan 28, 2021 10:09 am

Cyanners wrote:Ok so i really dont know why but i downloaded another persons weapon mod and edited their blueprints.xml.append file and it just worked. I tested what you suggested but i had no luck with it. Even giving slipstream an empty data folder said it was clobbering it so yeah. Apparently there was some evil stuff going on when i copied the blueprints.xml file and renamed it myself. Thx for the help though.


Oof, sorry it didn't work for you. Well, whatever the case may be, I hope it's working fine now. :)