Need Help On Mod

Discuss and distribute tools and methods for modding. Moderator - Grognak
cookingboy3
Posts: 1
Joined: Mon Dec 10, 2012 4:12 am

Need Help On Mod

Postby cookingboy3 » Mon Dec 10, 2012 4:18 am

I keep encountering a game crash when attempting to run my mod (as in the program's runtime kills itself). Anyone know what I did wrong here? I'm testing out code, I'm not even done yet.

Download the .FTL here (via Dropbox)

I think it's the extremely tiny .xml.append in there hitting a wall. Anyone know what's causing the problem? (I don't mind if you point out my stupidity, I'm terribly new at this.)
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: Need Help On Mod

Postby Kieve » Mon Dec 10, 2012 4:23 am

Well that's indicative of an event error, usually. The game is super-touchy to bad event code and will bomb as soon as it's parsed (or, fails to parse as the case may be). So let's have a look.

Code: Select all

<event name="START_GAME">
   <text>Nyan's Mod - Welcome to the ISS Nyan's control panel!</text>
   <choice>
       <text>Access the panel.</text>
      <event>
          <text>The ISS Nyan is a large warfighter, built to destroy enemy ships</text>
         <choice>
             <text>Continue...</text>
            <event>
                <text>The reactor is running optimally. Ready to launch.</text>
            </event>
            <choice>
               <text>Launch the Nyan.</text>
               </event>
            </choice>
         </choice>
      </event>
   </choice>
</event>


Probably this right here:
<choice>
<text>Launch the Nyan.</text>
</event>
</choice>
An empty "event" tag has the slash on the end, not the front. Try <event /> instead, and see if it works.
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Need Help On Mod

Postby shark » Wed Dec 12, 2012 4:46 pm

Code: Select all

<choice>
    <event>
               <text>Launch the Nyan.</text>
    </event>
</choice>
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.