Author Topic: Quest export?  (Read 1550 times)

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quest export?
« on: April 24, 2016, 09:42:40 pm »


               

Is it possible to export entire quests to add it to the other module?



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Quest export?
« Reply #1 on: April 24, 2016, 10:06:45 pm »


               Yes. Quests are stored in the module.jrl file, so you can use GFFEditor to copy from one module to the next.
               
               

               
            

Legacy_T0r0

  • Sr. Member
  • ****
  • Posts: 380
  • Karma: +0/-0
Quest export?
« Reply #2 on: April 26, 2016, 01:38:54 am »


               

Good info..


Can you elaborate on this a bit ?


 


Can I take any quests from any module and import into another ?


What exactly is imported ? convo's and scripts ?


 


Just curious, I'm clueless on this



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Quest export?
« Reply #3 on: April 26, 2016, 01:35:38 pm »


               When making an entirely new module, consider copying the old one, deleting everything you don't want. If that's not practical (usually it isn't) :

To copy the journal from one module to another : open old module in toolset. Open temp0/module.jrl in GFF editor. Under the heading Categories, each quest appears as a numbered node (Struct). Search through the nodes until you find the one with the correct Tag and plot id.

Edit > Copy Node, copying the entire node (Struct) for the quest. Without closing GFF editor, open new module in toolset. Open temp1/module.jrl in GFF editor. Select the Categories heading. Edit > Paste Node.

Now you can simply export/import the conversations using the toolset File menu. That will automatically capture any scripts referenced by the conversations.

Open any script. Use Find In Files > All Files in Module to find all other scripts that reference the plot id. Export/import those scripts, too.

Hope that helps.
               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Quest export?
« Reply #4 on: April 28, 2016, 10:37:12 am »


               

Note - if you use nwnlib or nwn gfftoxml in java etc

<!-- This file was generated by the NWNTools GFF to XML writer.
http://nwntools.sf.net/
** Do not hand edit unless you know what you are doing. **
-->
<gff name="module.jrl" type="JRL " version="V3.2" >
<struct id="-1" >
<element name="Categories" type="15" >
<struct id="0" >
<element name="Name" type="12" value="-1" >
<localString languageId="0" value="Back-Story" />
</element>
<element name="XP" type="4" value="0" />
<element name="Priority" type="4" value="4" />
<element name="Picture" type="2" value="65535" />
<element name="Comment" type="10" value="" />
<element name="Tag" type="10" value="bk_story" />
<element name="EntryList" type="15" >
<struct id="0" >
<element name="ID" type="4" value="1" />
<element name="End" type="2" value="0" />
<element name="Text" type="12" value="-1" >
<localString languageId="0" >
<value><![CDATA[You live in a small village named Trondheim in around 600 AD. Your family are gone. Your Mother died from plague many years ago while your Father was forced to fight in the wars, he never returned. Amongst all the other villagers, only Ellias was your friend. A kindred soul who had felt as much loss as you had.]]></value>
</localString>
</element>
</struct>
</element>
</struct>
<struct id="1" >
<element name="Name" type="12" value="-1" >
<localString languageId="0" value="Welcome" />
</element>
<element name="XP" type="4" value="0" />
<element name="Priority" type="4" value="4" />
<element name="Picture" type="2" value="65535" />
<element name="Comment" type="10" value="" />
<element name="Tag" type="10" value="welcome" />
<element name="EntryList" type="15" >
<struct id="0" >
<element name="ID" type="4" value="1" />
<element name="End" type="2" value="1" />
<element name="Text" type="12" value="-1" >
<localString languageId="0" value="Welcome to Aeoria" />
</element>
</struct>
</element>
</struct>
</element>
</struct>
</gff>

 


You can convert from / to xml.

I am looking into making journal entries database objects that at module build time get pulled down into an xml, and then converted into the gff object for packaging int the module.


To get this working in my build process on Jenkins I will probably try to develop the system in java.


Eg: Database reading, construction of the xml etc



               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Quest export?
« Reply #5 on: April 28, 2016, 12:53:13 pm »


               

thanks everyone for the info! I ended up redoing the quests in the end! But this info is really handy for next time! '<img'>