Need help with the very basics

Discuss and distribute tools and methods for modding. Moderator - Grognak
RogerWilco
Posts: 2
Joined: Fri Nov 09, 2012 1:01 pm

Need help with the very basics

Postby RogerWilco » Fri Nov 09, 2012 2:05 pm

Topic says it.
In short, i just wanted to make a quickie mod for myself: to alter "The Osprey" starting weapons and crew. No change of room, doors, art or anything like that. Also, note that ion beam artillery mod is installed with Grognaks Mod Manager v1.4 and worked fine. What was done so far:
1. Edited blueprints.xml (with notepad++) in the "data.dat-unpacked" folder which was in resources game folder by default. Basically, i removed starting shields and sensors and added bio and fire beam and a breach bomb, plus enough weapon system power and zoltan crew to keep weaps running. Or so i think.

Code: Select all

   <systemList>
      <pilot power="1" room="4" start="true"/> 
      <doors power="1" room="8" start="true" img="room_doors_5"/> 
      <sensors power="1" room="13" start="false"/> 
      <oxygen power="1" room="9" start="true" img="room_oxygen_4"/>
      <engines power="2" room="3" start="true"/>
      <shields power="2" room="11" start="false"/>
      <weapons power="6" room="15" start="true"/>
      <drones power="2" room="16" start="false" img="room_drones_5"/>
      <medbay power="1" room="10" start="true"/> 
      <teleporter power="1" room="1" start="false"/> 
      <artillery power="1" room="6"/>
      <!--<cloaking power="1" room="6" start="true" img="room_cloaking_5"/>  -->
   </systemList>
   <weaponSlots>4</weaponSlots>
   <droneSlots>2</droneSlots>
   <weaponList count="3" missiles="0">
      <weapon name="BEAM_BIO"/>
      <weapon name="BEAM_FIRE"/>
      <weapon name="BOMB_BREACH_1"/>   
   </weaponList>
   <droneList drones="2"/>
   <droneList count="0" drones="0"/>
   <health amount="30"/>
   <maxPower amount ="4"/>
   <crewCount amount = "4" class="energy"/>

2. Used FTL UnPacker 1.0.1 by Didero and packed all that folder into data.dat file
3. Made a backup of original data.dat and replaced working one with new packed one.
Game tries to start and then "Microsoft Visual C++ Runtime Library" error happens:
Assertion failed!
Program: D:\FTL\FTLGame.exe
File: src/rapidxml/rapidxml.hpp
Line: 1383
Expression: text

etc.

What must be done for it to work? Sorry for my horrible english.
Whale Cancer
Posts: 272
Joined: Fri Sep 21, 2012 3:28 pm

Re: Need help with the very basics

Postby Whale Cancer » Fri Nov 09, 2012 9:06 pm

What type of encoding did you select when you saved it? It must be saved in ANSI

I can't see any errors in your code, at the moment.
Contribute to help save the Whales from their various diseases! *DELAYED* Should release the skeleton with the main quests attached by the end of the week (By NOV 9)! *DELAYED* Don't listen to my dates! Things always seem to come up!
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Need help with the very basics

Postby shark » Fri Nov 09, 2012 10:27 pm

You have a syntax error somewhere, please post entire code you changed.
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
Whale Cancer
Posts: 272
Joined: Fri Sep 21, 2012 3:28 pm

Re: Need help with the very basics

Postby Whale Cancer » Fri Nov 09, 2012 11:10 pm

You have two "<droneList/>" tags. Try removing one.
Contribute to help save the Whales from their various diseases! *DELAYED* Should release the skeleton with the main quests attached by the end of the week (By NOV 9)! *DELAYED* Don't listen to my dates! Things always seem to come up!
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Need help with the very basics

Postby shark » Fri Nov 09, 2012 11:13 pm

this

Code: Select all

<droneList drones="2"/>
   <droneList count="0" drones="0"/>


should be this

Code: Select all

<droneList count="0" drones="2"/>


or drop both.
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
RogerWilco
Posts: 2
Joined: Fri Nov 09, 2012 1:01 pm

Re: Need help with the very basics

Postby RogerWilco » Sat Nov 10, 2012 8:31 am

Strangely enough, i didn't change the drone part at all.
only those parts were changed:

Code: Select all

   <weaponList count="3" missiles="0">
      <weapon name="BEAM_BIO"/>
      <weapon name="BEAM_FIRE"/>
      <weapon name="BOMB_BREACH_1"/>

   <crewCount amount = "4" class="energy"/>

      <shields power="2" room="11" start="false"/>
      <sensors power="1" room="13" start="false"/>
      <weapons power="6" room="15" start="true"/>

Ok, if the default unpacked "example" folder has errors in it's files, then i guess i should try unpacking the working data.dat when i'll get a chance to get to the pc with the game. Thanks for the fast replies everyone.
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Need help with the very basics

Postby shark » Sat Nov 10, 2012 3:03 pm

You still have two drone entries, one declares two drone_parts and zero drone weapons, the other declares zero drone_parts.

my suggestion - learn to roll with the fully-formed one like

Code: Select all

   
<droneList count="2" drones="4">  <!-- two weapons and 4 drone parts -->
      <drone name="COMBAT_1"/>
      <drone name="COMBAT_ION_2"/>
</droneList>


and if empty

Code: Select all

   
<droneList count="0" drones="4" />  <!-- just 4 drone parts -->


Also, if you ever applied a mod before unpacking the game (like i have) you'll find that 'original' files might be polluted by some files from the mods you were applying. So that's where the errors might have came from.
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.