• 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

Choosesortset not working?

TCArknight

Well-known member
I am having an issue with a chooser_table and a choosesortset.

Portal:
Code:
  <portal
    id="hoSpecies"
    style="chsNormal"
    width="110">
    <chooser_table
      component="Species"
      choosetemplate="SimpleItem"
	  choosesortset="SpecSort">
      <chosen><![CDATA[
        if (@ispick = 0) then
          @text = "{text clrwarning}Select Species"
        else
          @text = "Species: " & field[name].text
          endif
        ]]></chosen>
      <titlebar><![CDATA[
        @text = "Choose the Species for your character"
        ]]></titlebar>
      </chooser_table>
    </portal>
SpecCat tag:
Code:
  <!-- Species Cat group -->
  <group
    id="SpecCat"
    sequence="explicit">
    <value id="Player" order="10"/>
    <value id="NPC" order="20"/>
   </group>
Sortset (in control.1st):
Code:
  <!-- SpecSort - Species sortset -->
  <sortset id="SpecSort" name="Species Sort">
    <sortkey isfield="no" id="SpecCat"/>
    <sortkey isfield="no" id="_Name_"/>
    </sortset>
Species:
Code:
  <thing id="spcHdrPlay" name="Player" compset="Species" uniqueness="unique" isshowonly="yes">
    <usesource source="ENT"/>
    <usesource source="TOS"/>
    <usesource source="TNG"/>
[B]    <tag group="SpecCat" tag="Player"/>[/B]
    <tag group="SimpleItem" tag="CenterName"/>
    </thing>

  <thing id="spcHdrNPC" name="NPC" compset="Species" uniqueness="unique" isshowonly="yes">
    <usesource source="ENT"/>
    <usesource source="TOS"/>
    <usesource source="TNG"/>
[B]    <tag group="SpecCat" tag="NPC"/>[/B]
    <tag group="SimpleItem" tag="CenterName"/>
    </thing>

  <thing id="spcAndor" name="Andorian" description="desc here" compset="Species" uniqueness="unique">
    <usesource source="ENT"/>
    <usesource source="TOS"/>
    <usesource source="TNG"/>
[B]    <tag group="SpecCat" tag="Player"/>[/B]
    <tag group="SpeciesBon" tag="attrsys02"/>
    <tag group="SpeciesBon" tag="attrsys01"/>
    <tag group="SpeciesBon" tag="attrsys05"/>
    <bootstrap thing="trAndorian"></bootstrap>
    </thing>

  <thing id="spcKlingon" name="Klingon" description="desc here"  compset="Species" uniqueness="unique">
    <usesource source="ENT"/>
    <usesource source="TOS"/>
    <usesource source="TNG"/>
    <tag group="SpeciesBon" tag="attrsys05"/>
[B]    <tag group="SpecCat" tag="NPC"/>[/B]
    <tag group="SpeciesBon" tag="attrsys02"/>
    <tag group="SpeciesBon" tag="attrsys03"/>
    <bootstrap thing="trKlingon"></bootstrap>
    </thing>

This all results in the PLAYER header at the top, no NPC header, and NPC species grouped with Player species (and even though PLAYER and NPC are isshowonly="yes", unless I add the SimpleItem.CenterName tag, they don't show centered like normal): https://www.dropbox.com/s/ysg0li8r495t8iz/2017-10-22.png?dl=0
Code:
PLAYER
ANDORIAN
HUMAN
KLINGON
TRILL
VULCAN
Anyone else had this happen? Am I missing something?

Thanks!
TC
 
Last edited:
I don't see anything wrong. Check the tags in your species compset - do you have SpecCat.Player being assigned as a component tag?
 
::sigh:: I have to chalk this one up to an Id10T error...

I had a different portal, stSpecies buried in the form_static.dat file and was using it in my layout instead of the intended hoSpecies portal. Hopefully this will help others if they do something similar... lol
 
Back
Top