Jump to content


Photo
- - - - -

Export Templates: Tag Names


  • Please log in to reply
6 replies to this topic

#1 JohnBear

JohnBear

    Skilled Normal

  • HERO Member
  • 65 posts

Posted 08 July 2017 - 01:24 PM

This is either me (most likely) or a docs mismatch.

 

This works:

<!--STR-->
STR<br/>(Working)<br/>
Primary: <!--STR_PRIMARY--><br/>
Secondary: <!--STR_SECONDARY--><br/>
Primary Roll: <!--PRIMARY_ROLL--><br/>
Secondary Roll: <!--SECONDARY_ROLL--><br/>
<!--/STR-->

This doesn't:

STR<br/>(Not Working)<br/><br/>
Primary Roll: <!--STR_PRIMARY_ROLL--><br/>
Secondary Roll: <!--STR_SECONDARY_ROLL--><br/>

Note the lack of the "<!--STR--><!--/STR-->" non-working. But yet the "STR_" within the brackets still works???


JohnBear

 

 

"If we look at the way the universe behaves, quantum mechanics gives us fundamental, unavoidable indeterminacy, so that alternative histories of the universe can be assigned probability."
- - - Murray Gell-Mann

 


#2 Lyinggod

Lyinggod

    New Member

  • HERO Member
  • PipPip
  • 17 posts

Posted 08 July 2017 - 01:27 PM

Have you tried

 

Primary: <!--STR--><!--STR_PRIMARY--><!--/STR--><br/>


The Lyinggod

"Would you trust someone called the Lyinggod?"


#3 JohnBear

JohnBear

    Skilled Normal

  • HERO Member
  • 65 posts

Posted 08 July 2017 - 03:49 PM

Have you tried

 

Primary: <!--STR--><!--STR_PRIMARY--><!--/STR--><br/>

 

Yep. I should have said the opening and closing STR tags. It's as if the program ignores the "STR_" when the main STR tags are used and when they're not it doesn't have a clue what you're asking it to do.


JohnBear

 

 

"If we look at the way the universe behaves, quantum mechanics gives us fundamental, unavoidable indeterminacy, so that alternative histories of the universe can be assigned probability."
- - - Murray Gell-Mann

 


#4 Simon

Simon

    Administrator

  • Administrators
  • 12,495 posts

Posted 08 July 2017 - 03:52 PM

You'll need the surrounding <!--STR--> ... <!--/STR--> container.  Within that, you can use either STR_PRIMARY or just PRIMARY.


I am but mad north by northwest.  When the wind is southerly, I know a hawk from a handsaw.


#5 JohnBear

JohnBear

    Skilled Normal

  • HERO Member
  • 65 posts

Posted 08 July 2017 - 04:19 PM

Gotcha.  Thanks.

 

Hate to do this...is there a difference between:

<!--OCV_CHAR-->
[General Characteristic Tags]
<!--/OCV_CHAR-->

<!--DCV_CHAR-->
[General Characteristic Tags]
<!--/DCV_CHAR-->

<!--OMCV-->
[General Characteristic Tags]
<!--/OMCV-->

<!--DMCV_CHAR-->
[General Characteristic Tags]
<!--/DMCV-->

and this:

OCV 1:<!--OCV--><!--OCV_PRIMARY--><!--/OCV--><br/>
OCV 2:<!--OCV--><!--OCV_PRIMARY--><!--/OCV--><br/>

DCV 1:<!--DCV--><!--PRIMARY_DCV--><!--/DCV--><br/>
DCV 2:<!--DCV--><!--SECONDARY_DCV--><!--/DCV--><br/>

Why the "_CHAR" stuck on the end? Or is there a comment buried in the code I should be pulling out to answer that <lopsided grin>?


JohnBear

 

 

"If we look at the way the universe behaves, quantum mechanics gives us fundamental, unavoidable indeterminacy, so that alternative histories of the universe can be assigned probability."
- - - Murray Gell-Mann

 


#6 Simon

Simon

    Administrator

  • Administrators
  • 12,495 posts

Posted 08 July 2017 - 04:32 PM

There's a number of things to comment on in that post, but I'll stick to the basics.

In regards to the _CHAR, it's mostly an artifact -- the program has evolved over time.  As tags were changed and merged into a common structure, old tags couldn't just be dropped.  Support had to continue in order for existing (or older) templates and formats to work.

 

You'd be better off (have an easier time) if you just join the characteristics into a single block.

Rather than:

DCV 1:<!--DCV--><!--PRIMARY_DCV--><!--/DCV--><br/>
DCV 2:<!--DCV--><!--SECONDARY_DCV--><!--/DCV--><br/>

Use:

<!--DCV-->
DCV 1:<!--PRIMARY_DCV--><br/>
DCV 2:<!--SECONDARY_DCV--><br/>
<!--/DCV>

I am but mad north by northwest.  When the wind is southerly, I know a hawk from a handsaw.


#7 JohnBear

JohnBear

    Skilled Normal

  • HERO Member
  • 65 posts

Posted 08 July 2017 - 04:50 PM

Artifacts got it.

 

Oh, and that's not a real character sheet.  It's my "test out syntax" and make sure it works the way I expect file. Essentially a "hello world" export format.

 

Thanks for all the help guys.  I really appreciate it.

 

JB


JohnBear

 

 

"If we look at the way the universe behaves, quantum mechanics gives us fundamental, unavoidable indeterminacy, so that alternative histories of the universe can be assigned probability."
- - - Murray Gell-Mann