Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Best and easiest tool to design complex xml file

Discussion in 'Formats & External Tools' started by chimpanzeee, May 28, 2017.

  1. chimpanzeee

    chimpanzeee

    Joined:
    May 22, 2017
    Posts:
    7
    Hello,
    I have finished coding a conversation system for my little game that uses xml. Some conversations are very complex with many choices and many different branches.

    I am looking for a tool that will let me design this complex xml file graphically, and by that I mean that it allows me to use drag and drop and managing squares that represent xml nodes, but also I don't want to spend 5 days learning that tool, so it must be simple enough. For example, it should let me make templates of my nodes and attributes(which I'll just have to drag and drop), and also a template of "which node can be a child or a sibling of this or that other node", if you see what I mean. I've looked and tested some softs but it's either overly complicated or it just doesn't allow me to do what I want.

    Thanks in advance !
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,542
    TalkIt generates JSON (not XML), it's really simple to use, and it's open source. JSON is even easier than XML to import into Unity.

    Twine can generate text files in .twee format. Cradle is an open source twee parser for Unity. Twine 2 doesn't have built-in export for .twee yet, but there's a utility that can do it.

    You can get a copy of Neverwinter Nights 1 or 2 for really cheap (like $4.99) on GoG. It comes with the Aurora Toolset, similar to what they used to write the dialogue for Baldur's Gate, Dragon Age, etc. There are tools to convert it to XML.

    Chat Mapper (Indie license $99) exports to XML, as does articy:draft. But they may be what you're referring to about overly complicated software.

    (For other readers who haven't coded their own conversation system, the Dialogue System for Unity can import all of the formats above, except Twine import is waiting for Twine 2 to have built-in export for twee.)
     
  3. chimpanzeee

    chimpanzeee

    Joined:
    May 22, 2017
    Posts:
    7
    Thanks for your reply.

    As I said I have already coded the conversation system using XML, it works very well and I am proud of myself as I am a beginner, so I will keep my system for the moment, but I will keep all your good suggestions in mind in case I really have to find an alternative. In my system, I make heavy use of attributes and for each node, I test their presence and value.

    Your suggestion about using NWN2 editor is interesting because when that game came out, I played around with the editor. I will look into that and see what I can do with it !

    Thanks again.