Page 1 of 1

[0.11.0] Character name references appear as "%pfn[undefined]" [RESOLVED 0.11.1]

Posted: Tue Feb 02, 2021 7:42 am
by AuntiePixel
When my character's name appears in dialog, the reference instead shows up as "%pfn[undefined]". I've noticed it both in the normal dialog window when you talk to a random npc, and in on screen pop ups, like when an npc says they have no words for you because your rep is too low. But my character name shows up normally in quest letters from NPC.

Image

Re: [0.11.0] Character name references appear as "%pfn[undefined]"

Posted: Tue Feb 02, 2021 8:20 am
by Interkarma
Looking at string tables, the "%pfn" macro only appears once as a variant of text record 8558 - which is the text shown in your screenshot. It doesn't appear anywhere else in game data.

This macro looks like a typo and should be "%pcf" for player's first name. I'll move to bug reports so text can be updated in core.

Thanks for report!

Re: [0.11.0] Character name references appear as "%pfn[undefined]"

Posted: Tue Feb 02, 2021 11:06 am
by Ferital
I submitted a little fix.

Re: [0.11.0] Character name references appear as "%pfn[undefined]"

Posted: Tue Feb 02, 2021 8:47 pm
by AuntiePixel
Glad to help. I'll see if I can catch the undefined name reference in the dialog window. I expect it's a similar issue, but not spelled the same.