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

Curated user bug reports with enough information to reproduce problem. Moderators will move topics here from Help & Support once a bug has been confirmed and enough information has been provided.
Post Reply
AuntiePixel
Posts: 34
Joined: Sat Jan 30, 2021 6:24 pm
Location: US-central KY

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

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: 6133
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: 254
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: 34
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.

Post Reply