Aller au contenu

Photo

Quest export?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Who said that I

Who said that I
  • Members
  • 492 messages

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



#2
Proleric

Proleric
  • Members
  • 2 343 messages
Yes. Quests are stored in the module.jrl file, so you can use GFFEditor to copy from one module to the next.

#3
T0r0

T0r0
  • Members
  • 301 messages

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



#4
Proleric

Proleric
  • Members
  • 2 343 messages
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.

#5
Baaleos

Baaleos
  • Members
  • 1 315 messages

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



#6
Who said that I

Who said that I
  • Members
  • 492 messages

thanks everyone for the info! I ended up redoing the quests in the end! But this info is really handy for next time! :D