• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Sorting in chooser lists by separators

Gumbytie

Well-known member
New game system, working from sample game.

Gear, Weapons, Flaws, and others should be 'sorting' in the pop-up for choosers under appropriate separators but no dice. For the life of me I cannot figure out what I am missing.

Will use Flaws as an example.

In the chooser I expect something like this (just a few examples):

- Mental -
Addiction
Obsession
- Physical -
Lame
Mute
etc.

What I see:
- Mental -
- Physical -
Addiction
Obsession
Lame
Mute
etc.

I have managed to find two files I need to edit as well as the file for the flaws. Maybe I am missing one?

control.1st
Code:
  <!-- Define a sortset for showing all Flaws by type -->
  <sortset
    id="Flaw"
    name="Flaws By Type and Name">
    <sortkey isfield="no" id="FlawType"/>
    <sortkey isfield="no" id="_Name_"/>
    </sortset>

tags.1st
Code:
  <!-- FlawType group - type of a flaw
  -->
  <group
    id="FlawType"
    dynamic="yes">
    <value id="Custom" name=" Custom"/>
    <value id="Physical"/>
    <value id="Mental"/>
    <value id="Social"/>
    <value id="Misc" name="Miscellaneous"/>
    </group>

things_flaws.dat
Code:
  <!-- Separator Flaws -->
  <thing
    id="flSepPhys"
    name="– Physical –"
    compset="Flaw"
    isshowonly="yes"
    description="">
    <tag group="FlawType" tag="Physical"/>
    </thing>

  <thing
    id="flSepMent"
    name="– Mental –"
    compset="Flaw"
    isshowonly="yes"
    description="">
    <tag group="FlawType" tag="Mental"/>
    </thing>

A flaw from things_flaws.dat:
Code:
  <!-- Blind Flaw -->
  <thing
    id="flBlind"
    name="Blind"
    compset="Flaw"
    isunique="yes"
    description="Automatically fails sight rolls.">
    <tag group="FlawType" tag="Physical"/>
    </thing>

Again, this is happening on everything: Weapons, Gear, etc.

I am frustrated and stuck, need help :) I have also compared this to Savage Worlds (Edges, Gear, etc.) and looking side-by-side in the same files, my syntax looks the same aside from different names. Which is why I am wondering if I am missing one more file somewhere I need to edit?

Cheers,
Gumbytie
 
Not being a Hero Lab or Author Kit user (yet), but knowing XML - I just want to point out that there is no field order in XML files unless you impose one, so it looks like it has a default of alphabetic sort by name and its sorting your things in with your flaws.
 
Code:
  <!-- FlawType group - type of a flaw
  -->
  <group
    id="FlawType"
    dynamic="yes"
    sequence="explicit">
    <value id="Custom" name=" Custom" order="5"/>
    <value id="Physical" order="10"/>
    <value id="Mental" order="15"/>
    <value id="Social" order="20"/>
    <value id="Misc" name="Miscellaneous" order="25"/>
    </group>
 
Back
Top