Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Discuss and distribute tools and methods for modding. Moderator - Grognak
stargateprovider
Posts: 228
Joined: Thu Oct 03, 2013 1:21 pm
Location: Subspace

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby stargateprovider » Tue Feb 16, 2016 4:08 pm

Question! I have an event that should occur multiple times on one beacon (you're out of fuel the whole time. Yes this is for Stations Job). It checks your power level, then loads an eventlist. The eventlist contains 2 events. One is unique and the other is supposed to keep happening when the unique event has already occured.

Problem is that once the unique event has happened, the game starts to load nothing at all often, instead of the other event (FUEL_NOTHING) and sometimes even crashes. The 2 events themselves are otherwise working.

Code: Select all

<event name="SELECT_EVENT">
   <text>texttexttext.</text>
   <choice hidden="true" req="reactor" lvl="1" max_lvl="10" blue="false">
      <text>Continue...</text>
      <event load="MB_LVL1"/>
   </choice>
   <choice hidden="true" req="reactor" lvl="11" max_lvl="15" blue="false">
      <text>Continue...</text>
      <event load="MB_LVL2"/>
   </choice>
</event>
<eventList name="MB_LVL1">
   <event load="UNIQUE_EVENT"/>
   <event load="FUEL_NOTHING"/>
</eventList>
<eventList name="MB_LVL2">
   <event load="UNIQUE_EVENT_2"/>
   <event load="FUEL_NOTHING"/>
</eventList>
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
theDoomBox

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby theDoomBox » Tue Feb 16, 2016 7:30 pm

Hey everyone. Been a long time since I attempted to mod anything, and recently got back in to the game and have decided to finish one of my old ships that's been sitting in my documents folder for god knows how long. Anyways, I forgot how exactly to edit augments and can't find the tutorial I used to learn it before. Can someone link me to a good one, or give me a rundown themselves? Thanks!
User avatar
stylesrj
Posts: 3645
Joined: Tue Jul 08, 2014 7:54 am
Location: The Shrike
Contact:

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby stylesrj » Tue Feb 16, 2016 8:46 pm

blueprints.xml or dlcblueprints.xml

Copy an augment from there and change names around. Or look at Captain's Edition and the "dummy augments" used like the Teleporter Disruptor or the trade goods.

If you want to edit existing augments... disregard that and go look in those .xml files and change the values around.
Manters
Posts: 62
Joined: Thu Jul 17, 2014 2:28 pm
Contact:

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Manters » Wed Feb 17, 2016 3:22 pm

Trying to add some new events to the game. I'm trying to add an additional directory (Example; events_new.xml) But the new events arenet getting added to the game, so it crashes when trying to load the sector.

Is there a way to create a new "events" file, or should I just copy+paste into another file (such as events_engi)?
User avatar
RAD-82
Posts: 781
Joined: Sat Nov 09, 2013 12:16 am
Location: Not where a person needs to be...

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby RAD-82 » Wed Feb 17, 2016 4:12 pm

Manters wrote:Is there a way to create a new "events" file, or should I just copy+paste into another file (such as events_engi)?

You have to add to an existing file. You can't make new files.
Image
Junkyard has FTL mods, mostly ships and a few other things.
sul
Posts: 120
Joined: Sat Jan 30, 2016 4:22 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby sul » Wed Feb 17, 2016 5:07 pm

Can anyone recommend some good tools that increase productivity when editing/testing the xml files ?
Right now I am very interested in creating some short stories, therefore only new events/quests, not weapons or ship blueprints (see my post FTL STORIES). I use a text editor (kate on linux) to work on the xml files, a shell script that makes the .ftl files and launches Slipstream/FTL. I find some of the processes very boring and repetitive:
- Many game crashes are because of tipos/errors in the xml files. This happens a lot when editing events that have complex structures. Any good tools/tricks to correct that and gain time ? I saw some very nice GUI on this forum to create ship blueprints, but nothing to create events (that would be very cool !).
- For those of you that created those huge (and amazing) storylines I am curious on how you organized your work. Did you add content to single big files or separately ? How did you test new content in game ? I dont think I will ever get there, but if you have some tricks that would help me a lot for making some short stories.
-Edit: other question, how to deal with game crashes that happen often during testing ? Is there a "safe mode" for this that avoids window freezing, makes a report ? (i am on linux).
stargateprovider
Posts: 228
Joined: Thu Oct 03, 2013 1:21 pm
Location: Subspace

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby stargateprovider » Thu Feb 18, 2016 1:22 pm

sul wrote:Can anyone recommend some good tools that increase productivity when editing/testing the xml files ?
Right now I am very interested in creating some short stories, therefore only new events/quests, not weapons or ship blueprints (see my post FTL STORIES). I use a text editor (kate on linux) to work on the xml files, a shell script that makes the .ftl files and launches Slipstream/FTL. I find some of the processes very boring and repetitive:
- Many game crashes are because of tipos/errors in the xml files. This happens a lot when editing events that have complex structures. Any good tools/tricks to correct that and gain time ? I saw some very nice GUI on this forum to create ship blueprints, but nothing to create events (that would be very cool !).
- For those of you that created those huge (and amazing) storylines I am curious on how you organized your work. Did you add content to single big files or separately ? How did you test new content in game ? I dont think I will ever get there, but if you have some tricks that would help me a lot for making some short stories.

To increase productivity I also have my small script on windows that packs the audio-data-img files and loads Slipstream, but that's it. I thought of making an FTL event creator, when I get done with my Python course, maybe. At least I'll try.

What I can suggest right now, is this holy creation for checking errors (if you're not using it already): http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17034
Some of my FTL mods you may like, or hate, or... yeah:
Image Image
User avatar
Sleeper Service
Posts: 2305
Joined: Sun Mar 24, 2013 8:49 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Sleeper Service » Thu Feb 18, 2016 2:12 pm

sul wrote:- Many game crashes are because of tipos/errors in the xml files. This happens a lot when editing events that have complex structures. Any good tools/tricks to correct that and gain time ? I saw some very nice GUI on this forum to create ship blueprints, but nothing to create events (that would be very cool !).
As stargateprovider has mentioned, the error checker can help with that. Kate should already notify you about wrong syntax for the most part, but there are some cases where FTL is more sensitive about stuff then one would expect. It helps to very closely look at how vanilla events work and generally only do stuff as it is done there. From my experience you won't get around some lengthy trial and error debugging when creating events, but you'll get better the more you do it. I eventually felt like I got so used to FTLs parsing quirks that I reliably anticipated potential errors, but my stuff is still pretty faulty the first time around. For some parts of CE I spent up to half the dev time with debugging. Can't wait till that phase starts for Hyperspace Admirals... :o

One thing that definitely helps is directly copying existing stuff (In case this isn't obvious, you might be doing this already). I basically never write an event/blueprint or event capsule from scratch, I always look for an existing events/blueprints that do roughly the same and use them as a basis, modifying the stuff I need changed. That eliminates a lot of potential mistakes you might make otherwise.

stargateprovider wrote: I am curious on how you organized your work. Did you add content to single big files or separately ? How did you test new content in game ? I dont think I will ever get there, but if you have some tricks that would help me a lot for making some short stories.
I generally spread event stuff for CE across different files, since I worked on separate sectors that have completely new pools of events. The events for each new sectors usually ended up in a separate vanilla event file each. Worked ok, other than that I stuck to vanilla event sorting conventions (all ship events in shipEvents.xml and so on). In generally I grouped events, their text lists and follow up events close together, just like the vanilla files do. For testing sectors I usually overwrote the crystal sector and modified the starting event to send me there. I often tested individual events through integrating them into the game start event. The mod testing environment can help you with that too.
sul
Posts: 120
Joined: Sat Jan 30, 2016 4:22 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby sul » Thu Feb 18, 2016 3:09 pm

Thanks so much guys, those comments are gold.
stargateprovied: I just tried FTL check editor and omg it is awesome, it should greatly help with debugging.
Sleeper Service: Those general tips are awesome, thanks so much ! That gives me some good ideas for choosing clean conventions from the start.
- Agreed first I need to up my writing skills a lot. I am practicing with some simple events/stories and reading the .xml files from Vanilla (and CE of course !). And I discovered the Hyperspace Admirals page, I cant wait to see that !!!!
- For testing new events, I use first a cleanup mod (it renders all original events empty) and then place my new event at first beacon. This looks similar to your crystal sector method so I guess I am doing it right.
- For organizing files, I understand now how you did and it makes sense. I am currently going with a slightly different convention as I dont necessarily want to keep all the original sectors, I hope its ok: I regroup all content of each hardcoded sector type (civilian,hostile/override_hostile,nebula) in three files only (events_engi, events_mantis, events_nebula). Meanwhile content of hardcoded sectors (standard_space,final,crystal_home) is still in its original files (events, events_boss,events_crystal). In the long run I was hoping to add chunks of contents using separate mods that append to those files (and modify sector_data accordingly).
I hadnt decided yet about where to put all the ship content, so I will go with the file event_ships as you suggested.

Another quick question if possible:
- how about filler events ? I had a very hard time understanding thoses (which is why I emptied all events in the first place). From my understanding filler events fill in remaning spots on the map that havent been filled by the regular ones. How they are called is defined in newEvents.xml. Problem is, I couldnt figure out what is hardcoded there or not: it looks like the eventList NEUTRAL, NEBULA are, or maybe even their content, I still cant figure it out.
User avatar
Sleeper Service
Posts: 2305
Joined: Sun Mar 24, 2013 8:49 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Sleeper Service » Thu Feb 18, 2016 4:57 pm

sul wrote: how about filler events ? I had a very hard time understanding thoses (which is why I emptied all events in the first place). From my understanding filler events fill in renaming spots on the map that haven't been filled by the regular ones. How they are called is defined in newEvents.xml. Problem is, I couldn't figure out what is hard-coded there or not: it looks like the eventList NEUTRAL, NEBULA are, or maybe even their content, I still cant figure it out.
Not sure about that. From what I can tell the first sector is largely hard-coded to use certain event lists regardless of what is specified in the sector blueprint. But I'm not sure if subsequent sectors really use filler events, I think they simply crash if the sector blueprint doesn't have enough events, but I could be wrong. The NEBULA list is definitely used to fill beacons that get converted into nebula when the game happens to spawn map clouds on top of them though, so that lists definitely does act as a kind of filler.

Who is online

Users browsing this forum: No registered users and 9 guests