Should the header tags work in a generator

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
Code:
== Unit name ==
With nothing else on the same line. So do something like this:
Code:
\r\n==== Districts ====\r\n{district list}
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
{
"name": "UnitsFull",
"entries": [
"=={b|Unit name:} {UnitName}==\r{b|Unit type:} {UnitDescription} {b|Strength:} {Strength} \n{b|Competency:} {Competency} {b|Morale: } {Morale} \n{b|Unit Passions:} {Passion} \n{UnitCommander}{MissileWeapons} "
]
},
Did not work
 

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
Did not work
You must also correct the heading syntax. Instead of
Code:
==Headline==
use
Code:
== Headline ==
And is the UnitsFull table guaranteed to begin a new line?
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
I tried earlier both formats. yes it is supposed to be. at least visibly it is.
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
Even when I force it with \r - no luck

"\r== {b|Unit name:} {UnitName} ==\r{b|Unit type:} {UnitDescription} {b|Strength:} {Strength} \n{b|Competency:} {Competency} {b|Morale: } {Morale} \n{b|Unit Passions:} {Passion} \n{UnitCommander}{MissileWeapons} "
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
"\r\n== {b|Unit name:} {UnitName} ==\r\n{b|Unit type:} {UnitDescription} {b|Strength:} {Strength} \n{b|Competency:} {Competency} {b|Morale: } {Morale} \n{b|Unit Passions:} {Passion} \n{UnitCommander}{MissileWeapons} "

no luck
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
"\r\n==== {b|Unit name:} {UnitName} ====\r\n{b|Unit type:} {UnitDescription} {b|Strength:} {Strength} \n{b|Competency:} {Competency} {b|Morale: } {Morale} \n{b|Unit Passions:} {Passion} \n{UnitCommander}{MissileWeapons} "
Tried this as well.. Hmmm. interesting.
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
the only thing that will work is below. If there is anything else here it will not work in logger window either. This is sort of limiting...
==== Unit name: {UnitName} ====
 

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
sure. but not being able to have anything else on the generator string or log entry is kind of limiting. Could we make this kind of formatting the same than others - (can mix on same line)
 

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
The example I posted above is a table entry from a working generator. You can have more than just a heading in a table entry, as long as the heading is alone on a separate line in the output.
 

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
Use this resultPattern with the default generator on the generator testbed and it works fine (replaced the table calls from your latest sample with existing tables):
Code:
  "resultPattern": "\r\n==== {b|Unit name:} {lastname} ====\r\n{b|Unit type:} {lastname} {b|Strength:} {lastname} \n{b|Competency:} {lastname} {b|Morale: } {lastname} \n{b|Unit Passions:} {lastname} \n{lastname}{lastname}",
Unit name: von Sachsen
Unit type: Sumpton Strength: Michaels
Competency: Jarvis Morale: von Hannover
Unit Passions: von Hannover
of Wessexvon Hannover
 
Top