PDA

View Full Version : End Tag Error when Customizing Charactersheet



LordEntrails
September 1st, 2019, 22:28
Hope someone can point me in the right direction. I'm working on making a custom character sheet for CoreRPG and after some minor modifications and am getting an error when loading the campaign.

XML Parse error ... campaign/record_char.xml - Error on line 106: Error reading end tag.
Line 106 is simply the end close

</sheetdata>
The only section I've modified/added is;

<frame_char name="overviewframe">
<bounds>15,20,-140,45</bounds>
</frame_char>
<string_labeled name="name">
<anchored to="overviewframe" position="insidetopleft" offset="15,10" width="150" height="20">
<right offset="-15" />
</anchored>
<labelres>char_label_name</labelres>
<string_labeled name="designation">
<anchored to="name" position="right" offset="5,0" width="175" />
<labelres>char_label_designation</labelres>
</string_labeled>


Basically all I'm trying to do is split the name field into two sections so I added a width to the first one and placed the second part.

I've added the string "designation" to the strings_campaign.xml including;

<string name="char_label_designation">DESIGNATION</string>

I'm guessing their is some LUA I'm missing, but don't know where to look. Find in Files hasn't given me anything.

Kelrugem
September 1st, 2019, 22:43
I am not that proficient with that things but it looks like that there is one

</string_labeled>
missing, isn't it? (for the first string_labeled :) )

Zacchaeus
September 1st, 2019, 22:53
An end tag error means something hasn’t been closed somewhere.

LordEntrails
September 1st, 2019, 22:53
Yep, that was it. Thanks!

Correct code is;

<frame_char name="overviewframe">
<bounds>15,20,-140,45</bounds>
</frame_char>
<string_labeled name="name">
<anchored to="overviewframe" position="insidetopleft" offset="15,10" width="150" height="20">
<right offset="-15" />
</anchored>
<labelres>char_label_name</labelres>
</string_labeled>
<string_labeled name="designation">
<anchored to="name" position="right" offset="5,0" width="175" />
<labelres>char_label_designation</labelres>
</string_labeled>

LordEntrails
September 1st, 2019, 23:09
Well, not the correct code, the anchor tag isn't right.

This code is improved, but one can see that the horizontal line for the second field isn't there. Help appreciated :)
28731


<string_labeled name="name">
<anchored to="overviewframe" position="insidetopleft" offset="15,10" width="150" height="20" />
<labelres>char_label_name</labelres>
</string_labeled>
<string_labeled name="designation">
<anchored to="name" position="right" offset="5,0" width="100" >
<right offset="-15" />
</anchored>
<labelres>char_label_designation</labelres>
</string_labeled>

Kelrugem
September 1st, 2019, 23:52
I just looked in some code for similar things in the 3.5e sheet and I guess your problem is the part with right offset :) Rather try:


<string_labeled name="name">
<anchored to="overviewframe" position="insidetopleft" offset="15,10" width="150" height="20" />
<labelres>char_label_name</labelres>
</string_labeled>
<string_labeled name="designation">
<anchored to="name" position="right" offset="5,0" width="100" />
<labelres>char_label_designation</labelres>
</string_labeled>

This maybe resolves the problem :D The code I took as a reference was the notes section in the character sheet in 3.5e about age, gender etc.. This looks like:


<string_labeled name="gender">
<anchored to="detailframe" position="insidetopleft" offset="15,10" width="50" height="20" />
<labelres>char_label_gender</labelres>
</string_labeled>
<string_labeled name="age">
<anchored to="gender" position="right" offset="5,0" width="50" />
<labelres>char_label_age</labelres>
</string_labeled>
<string_labeled name="height">
<anchored to="age" position="right" offset="5,0" width="50" />
<labelres>char_label_height</labelres>
</string_labeled>
<string_labeled name="weight">
<anchored to="height" position="right" offset="5,0" width="50" />
<labelres>char_label_weight</labelres>
</string_labeled>
<string_labeled name="size">
<anchored to="weight" position="right" offset="5,0" width="60" />
<labelres>char_label_size</labelres>
</string_labeled>
<string_labeled name="alignment">
<anchored to="size" position="right" offset="5,0" width="80" />
<labelres>char_label_alignment</labelres>
</string_labeled>
<string_labeled name="deity">
<anchored to="alignment" position="right" offset="5,0" width="80" />
<labelres>char_label_deity</labelres>
</string_labeled>

When I understand it correctly this does exactly what you want to do (but for a different situation), but the right offset is never used :) Thus, my suggestion in the first code box :)

EDIT: Just tried your method with that 3.5e example for the Deity line, then also its line has vanished; so the problem might really be that right offset :)

LordEntrails
September 2nd, 2019, 00:37
Thanks :) I should have caught that. I was taking the multiple entries in one line/frame from the character notes of CoreRPG. It shows the same things you showed. The anchored tag was part of the original for the Name field on the header and I kept it simple because I didn't know to remove it :)

Trying to look through the RefDocs to figure it out, but should have just experimented more :)

Really appreciate your help.

Kelrugem
September 2nd, 2019, 00:50
Thanks :) I should have caught that. I was taking the multiple entries in one line/frame from the character notes of CoreRPG. It shows the same things you showed. The anchored tag was part of the original for the Name field on the header and I kept it simple because I didn't know to remove it :)

Trying to look through the RefDocs to figure it out, but should have just experimented more :)

Really appreciate your help.

You're welcome :) I also do not really know what this right offset is doing in that situation :D

LordEntrails
September 2nd, 2019, 17:10
@Kelrugem,
Wanted to thank you again for your help. Have made a lot of progress (imo) so far. Certainly not 'fancy' and not done, but here's what I've got so far.
2873928740

Kelrugem
September 2nd, 2019, 17:16
You're welcome :) Looks nice so far :) I also learned a bit by helping you, my next extension for 3.5e changes also a bit in the character sheet such that my new knowledge by this thread may help me, too :)