FG Spreadshirt Swag

Thread: Custom Mod help

  1. #1

    Custom Mod help

    I've been working on a custom mod piecing things together from the BRP xml files. specifically db, client, and common. I've added this entry into the BRPother section but I cant get it to show up. The list portion does, but none of the races from the brpother section do. anyone have insight as to what I did wrong?

    reference line:
    <link class="reference_creatures" recordname="reference.BRPlists.list-020@Fall of Dunai BRP">Races</link>

    BRPlists line:
    <list-020> <name type="string">Races</name>
    <creaturetype type="string">Playable Race</creaturetype>
    <source type="string">reference.BRPother.RacialSkills@Fall of Dunai BRP</source>
    <header type="string">
    ...
    </header></list-020>

    BRPother line:
    <RacialSkills>
    <name type="string">Racial Skills</name>
    <index>
    <entry-001> <name type='string'>Human</name>
    <type type='string'>Playable Race</type>
    ...
    </entry-001>
    </index>
    </RacialSkills>

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    I'm taking it you're basing this off the BRPGameSystem.mod library module?

    How each list works is based off the "class" passed as part of the <link> entry that is used to open the list. The class will then look for specific fields in the source list of data.

    What "class" do you use to open that BRPlist record?
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    I copied code from the db.xml in the BRPGamemasterGuide.mod line 1878 for a "reference_creatures". then I copied one of the entries from that same file after line 6780 changing the type name from "Fantasy Creature" to "Playable Race"

    is that what you mean?

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Line 1878 is: <link class="reference_creatures" recordname="reference.BRPlists.list-002@BRP Gamemaster Guide">Fantasy Creatures</link>

    The "class" I mentioned is "reference_creatures", which expects a specific data format.

    For this class (reference_creatures), the "creaturetype" field is used to filter the data (which is what you've done), but the format of the data list is very specific, so you need to use the same format as the entries beginning at line 6780, this is an example from the BRPGamemasterGuide.mod:
    Code:
        <BRPother static="true">
          <creatures>
            <id-00001>
              <name type='string'>Alligator or Crocodile</name>
              <type type='string'>Natural Animal</type>
              <notes type='string'>
    ...
    Your <RacialSkills> entry shown in post #1 doesn't match this data format at all - you need to keep the same XML field names, don't change these. You'd need something like this:
    Code:
    <creatures>
    	<id-00001>
    		<name type='string'>Human</name>
    		<type type='string'>Playable Race</type>
    	</id-00001>
    	<id-00002>
    	...
    	</id-00002>
    	...
    </creatures>
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    here is a the first full entry, I thought I did copy the format.


    <entry-001> <name type='string'>Human</name>
    <type type='string'>Playable Race</type>
    <notes type='formattedtext'>
    <p><b>Culture: </b>Throughout Dunai, primarily in Ceresu or Larsan</p>
    <p><b>Appearance: </b>Wide and varied as those in the real world</p>
    <p><b>Demeanor: </b>Short lived and busy. Always on to something new</p>
    <p><b>Life Span: </b>Humans are considered adults at age 18 with a life expectancy of 70 years.</p>
    <p>Humans are one of the shortest lived races and often looked down upon because of that. They are the most diverse and often find themselves intermingled in with the other races.</p>
    <p><b>Points for pointbuy: </b>49</p>
    </notes>
    <istemplate type='number'>1</istemplate>
    <abilities>
    <strength type='number'>8</strength>
    <constitution type='number'>8</constitution>
    <size type='number'>8</size>
    <intelligence type='number'>8</intelligence>
    <power type='number'>8</power>
    <dexterity type='number'>8</dexterity>
    <appearance type='number'>8</appearance>
    </abilities>
    <abilityrolls>
    <strength type='string'>2D6+6</strength>
    <constitution type='string'>2D6+6</constitution>
    <size type='string'>2D6+6</size>
    <intelligence type='string'>2d6+6</intelligence>
    <power type='string'>2D6+6</power>
    <dexterity type='string'>2D6+6</dexterity>
    <appearance type='number'>2d6+6</appearance>
    </abilityrolls>
    <hp type='number'>8</hp>
    <hitlocationtemplate type='string'>Humanoid</hitlocationtemplate>
    <dbdesc type='string'>+0</dbdesc>
    <armor type='string'>0</armor>
    <move type='string'>10</move>
    <skills type='string'>Any +20%, Craft(Any)+20%, Language(Halflic)</skills>
    <powers type='string'>Human Resiliance 100%</powers>
    <weaponlist></weaponlist>
    </entry-001>

  6. #6
    oh, sorry didn't read closely enough, I think I understand now

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in