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

Locked
AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

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

Post 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

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

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

Post 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!

User avatar
Ferital
Posts: 282
Joined: Thu Apr 05, 2018 8:01 am

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

Post by Ferital »

I submitted a little fix.

AuntiePixel
Posts: 44
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

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

Post 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.

Locked