Closed noahpodgurski closed 3 months ago
I don't use that for anything in the overlay. It used to work, since I was thinking about adding player ranks to the overlay.
Not sure what to tell you.
Well it worked back when I submitted my MR but slippi must've been updated to change where it's stored in the data or something...
Actually I used memory.slippi.players[1].code
, which doesn't work anymore either
It's possible this string matching method I made isn't working properly. It's supposed to match any characters up until a NULL character.
Yeah, the data is 100% there, just not being parsed correctly I guess.
Changing this line from
return convertJisStr(value:match("(.-)%z*") or value)
to
return convertJisStr(value:match("(.-)%z+") or value)
Somehow allows it to work right. Doesn't really make sense, but I guess that should help you.
Thank you
Actually.. I think this is a better pattern.
^(.-)%z-$
The anchors are what allows it to work correctly.
And confirmed it works.
https://github.com/bkacjios/m-overlay/blob/6dbc28926d567da550c469316582c35bb34fd52c/source/modules/games/GALE01-2.lua#L162
Even when uncommented I'm not seeing the code appear under
memory.slippi.players.1.code