Help Needed

Discuss and distribute tools and methods for modding. Moderator - Grognak
KloAl
Posts: 27
Joined: Tue Apr 23, 2013 1:54 am

Help Needed

Postby KloAl » Sat May 04, 2013 2:33 am

alright I'm not one to bed for help at the first sign of trouble, however I've read this .xml.append file 6 times and fixed numerous errors each time (except for the last 2) what I'm doing here is I'm trying to add to the events file, but every time i patch it in with GMM the game crashes as soon as the loading bar gets full giving me a C++ library error. I removed the file from the mod, works fine.

If you find anything wrong with this just reply to the topic and i will make sure i add your fourmname in the credits of this mod when i post it.

Code: Select all

<event name="UEF_SENSORS">
   <text>As you drop to impulse you detect minor strange readings on scanners</text>
   <choice>
      <text>Do nothing</text>
   </choice>
   <choice>
      <text>run another scan</text>
      <event load="UEF_SCAN"/>
   </choice>
   <choice hidden="true" req="sensors" lvl="3">
      <text>(improved sensors) Run a long range scan</text>
      <event load="UEF_LONG_SCAN"/>
   </choice>
</event>

<eventlist name="UEF_SCAN">
   <event>
      <event load="UEF_LONG_SCAN">
   </event>
   <event>
      <text>Your scanners aren't able to detect anything, and you would not like to figure out if there accurate or not.</text>
   </event>
   <event>
      <text>Your scanners aren't able to detect anything, and you would not like to figure out if there accurate or not.</text>
   </event>
   <event>
      <text>Your scanners aren't able to detect anything, and you would not like to figure out if there accurate or not.</text>
   </event>
</eventlist>

<event name="UEF_LONG_SCAN">
   <text>Your advanced scanners easily scan and reveal a vessel on an intercept course</text>
   <choice>
      <text>Move to engage</text>
      <event load="UEF_ENGAGELIST"/>
   </choice>
   <choice>
      <text>Wait to Identify the ship</text>
      <event load="UEF_WAITLIST"/>
   </choice>
   <choice>
      <text>"Get us out of here! Maximum Warp!"</text>
   </choice>
</event>

<eventlist name="UEF_ENGAGELIST">
   <event load="uef_engage_1"/>
   <event load="uef_engage_2"/>
</eventlist>

<event name="uef_engage_1">
   <ship load="SUP_CRUSIER1" hostile="false"/>
   <text>It  appears to be a super crusier. Regaurdless, it's too late now, charge weapons!</text>
   <ship hostile="true"/>
</event>

<event name="uef_engage_2">
   <text>Your bravery is rewarded as you stumble upon a derelict ship drifting at a high speed, you stop the vessel and loot it</text>
   <autoReward level="HIGH">standard</autoReward>
</event>

<eventlist name="UEF_WAITLIST">
   <event load="uef_engage_1"/>
   <event load="uef_waitlist_2"/>
   <event load="uef_waitlist_3"/>
   <event load="uef_engage_2/>
</eventlist>

<event name="uef_waitlist_2">
   <ship load="PIRATE" hostile="true"/>
   <text>You identify the vessel as a pirate, and engage</text>
</event>

<event name="uef_waitlist_3">
   <ship load="SUP_CRUSIER1" hostile="true"/>
   <text>The ship is a massive super-crusier, its been marked for destruction, however it is your decision weather or not to engage or not.</text>
   <choice hidden="true" req="engines" lvl="6">
      <text>(advanced engines) FTL, Now!</text>
      <event>
         <ship hostile="false"/>
         <text>Your advanced engines barely escape their weapons range, reccomend you get out of here while you still can.</text>
      </event>
   </choice>
   <choice>
      <text>Engage.</text>
   </choice>
   <choice>
      <text>Attempt to get out of range</text>
      <event load="uef_attemprange"/>
   </choice>
</event>

<eventlist name="uef_attemptrange">
   <event>
      <text>You sucessfully escape</text>
      <ship hostile="false"/>
   </event>
   <event>
      <text>Your engines struggles are futile, the enemy ship is superior in speed.</text>
   </event>
   <event>
      <text>Your engines struggles are futile, the enemy ship is superior in speed.</text>
   </event>
</eventlist>


or download the file here:
http://www.mediafire.com/download.php?69w8xtrqa6ime3c
phasers are red, disruptors are green, the Borg were better in TNG if you know what i mean.
Image
FTLAutoMod AutoMagicly modding since Apr 17
viewtopic.php?f=12&t=23878
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Help Needed

Postby DryEagle » Sat May 04, 2013 9:17 pm

Firstly, it should be <event load="NAME"/> in all places instead of <event load="NAME">
i.e. don't forget the /

Secondly, you cannot do this:
<event>
<event load="NAME"/>
</event>

Instead you must do this:
<event>
<choice>
<event load="NAME"/>
</choice>
</event>
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
KloAl
Posts: 27
Joined: Tue Apr 23, 2013 1:54 am

Re: Help Needed

Postby KloAl » Sun May 05, 2013 4:54 pm

Thanks ill look it over again with that in mind.
EDIT: It works! your a savior!
EDIT:not quite.... the game lauches and stuff but when i start a new game, it works, however when i click the beacon map the game just closes. no idea what to do on this one. ill post the edit i made to the sector_data.xml.

Code: Select all

<!--default to prevent crashes if bad sector names are loaded-->
<sectorDescription name="STANDARD_SPACE" minSector="0" unique="false">
   <nameList>
      <name>Federation Space</name>
   </nameList>
   <trackList>
      <track>civilian</track>
      <track>cosmos</track>
      <track>milkyway</track>
   </trackList>
   <event name="EFIGHT_1" min="4" max="10"/>
   <startEvent>START_BEACON</startEvent>
   <event name="UEF_SENSORS" min="15" max="20"/>
</sectorDescription>


i took out the normal events and replaced them with mine for testing, and well test failed.
phasers are red, disruptors are green, the Borg were better in TNG if you know what i mean.
Image
FTLAutoMod AutoMagicly modding since Apr 17
viewtopic.php?f=12&t=23878
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Help Needed

Postby DryEagle » Sun May 05, 2013 8:19 pm

firstly, make sure you've named it sector_data.xml.append - don't forget append on the end
secondly, try just adding your event to the bottom of the list of event names, instead of removing them all.
if that works, then remove them 1 by 1 from the bottom until it stops working.
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
KloAl
Posts: 27
Joined: Tue Apr 23, 2013 1:54 am

Re: Help Needed

Postby KloAl » Mon May 06, 2013 8:42 pm

Oh i feel stupid now i forgot the append, and i will try that.
phasers are red, disruptors are green, the Borg were better in TNG if you know what i mean.
Image
FTLAutoMod AutoMagicly modding since Apr 17
viewtopic.php?f=12&t=23878
shark
Posts: 173
Joined: Thu Nov 08, 2012 10:11 am

Re: Help Needed

Postby shark » Mon May 27, 2013 5:47 pm

<ship load="SUP_CRUSIER1" hostile="false"/>


Does the ship SUP_CRUSIER1 exist? Are you sure it's not SUP_CRUISER1 ?
Roses are #FF0000
Violets are #0000FF
All of our mods
are belong to you.
User avatar
Metzelmax
Posts: 363
Joined: Wed Sep 26, 2012 7:59 am
Location: Uz'ran Home Dimension

Re: Help Needed

Postby Metzelmax » Wed May 29, 2013 7:32 am

<choice>
<text>Do nothing</text>
</choice>

That's the problem, it needs to be

<choice>
<text>Do nothing</text>
<event/>
</choice>

I make that mistake all the time
Here is the Stuff I made:
ImageImageImageImage
And stuff is always better than no stuff, right?

Who is online

Users browsing this forum: No registered users and 17 guests