• Visit Rebornbuddy
  • Demonbuddy Xml profile schema

    Discussion in 'Demonbuddy Profiles' started by Nesox, Oct 24, 2012.

    1. Nesox

      Nesox Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,563
      Likes Received:
      47
      Trophy Points:
      48
      Profile schema for Demonbuddy profiles.

      Add the file in the directory with your profile then make sure you add this in the root element, "Profile"
      PHP:
      <Profile xmlns="http://tempuri.org/ProfileSchema.xsd" xmlns:xsi="http://tempuri.org/ProfileSchema.xsd">
      If all is ok you should now be able to use intellisense for Demonbuddy profiles.

      [​IMG]

      If you use Notepad++ you need to download a plugin, visual studio got built in support for xml schemas.
      Notepad++ plugin can be found HERE
      SourceForge.net: Plugin Central - notepad-plus
       

      Attached Files:

      Last edited: Oct 24, 2012
    2. Kevin Spacey

      Kevin Spacey Community Developer

      Joined:
      Aug 31, 2013
      Messages:
      2,830
      Likes Received:
      11
      Trophy Points:
      38
      i add all files ant text
      whats next? where is this all list for profiles etc? i use Notepad++
       
    3. matamort

      matamort Member

      Joined:
      Sep 27, 2013
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      This is awesome. I just finish setting this up on my notepad++ and I really like this. By the way, the Xml plugin can be install directly from Notepad++ plugin Manager.

      I think this is not the latest Schema version. See below what I get when I try to validate a Bounty Profile.

      Code:
      Validation of current file using XML schema:
      
      
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}GameParams', attribute 'act': [facet 'enumeration'] The value 'OpenWorld' is not an element of the set {'A1', 'A2', 'A3', 'A4'}.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}GameParams', attribute 'act': 'OpenWorld' is not a valid value of the local atomic type.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}GameParams': The attribute 'quest' is required but missing.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}GameParams': The attribute 'step' is required but missing.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}LogMessage', attribute 'output': The attribute 'output' is not allowed.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}LogMessage': The attribute 'message' is required but missing.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}TrinityMaxDeaths': This element is not expected.
      ERROR: Element '{http://tempuri.org/ProfileSchema.xsd}TargetBlacklists': This element is not expected.
      Under GameParams Xml Schema Validation here what change since the first post.

      Add support for Act 5 and Adventure Mode
      Code:
      <xs:enumeration value="A5" />
      <xs:enumeration value="OpenWorld" />
      The quest and Step declaration are not required anymore.
      Code:
      <xs:attribute name="quest" type="xs:int" use="optional" />
      <xs:attribute name="step" type="xs:int" use="optional" />
      The difficulty is not required anymore so I think this can be removed or set to optional
      Code:
      <xs:attribute name="difficulty" type="xs:string" use="optional" />
       
      Last edited: May 5, 2014
    4. Lev889

      Lev889 New Member

      Joined:
      Apr 28, 2014
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      What is "Intellisense?
       
    5. fuly

      fuly New Member

      Joined:
      Jun 11, 2014
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      0
      Sadly the XSD ist not up to date. A description for some attributes would be also nice.
       
    6. matamort

      matamort Member

      Joined:
      Sep 27, 2013
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Dude what is this question????

      What are you waiting to Google it and find your answer. Dude this should be your first reflex before wasting
      you time writing this question.

      Google in case you forget the url and start asking for it.
       
    7. matamort

      matamort Member

      Joined:
      Sep 27, 2013
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Maybe this could help you out. They provide a description of each tag. This might be useful to find the description you are looking for.

      All available profile tags
       

    Share This Page