Should the header tags work in a generator

ELF

Generator Sage
Staff member
CL Add-on Dev
#2
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
#3
{
"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
 

Hannu

Mythras Guru
CL Add-on Dev
#7
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
#8
"\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
#9
"\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
#10
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
#12
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
#13
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
#14
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