Player icon indicating copy to clipboard operation
Player copied to clipboard

Show String Pic + String Vars - Cannot properly find font names from string vars

Open jetrotal opened this issue 8 months ago • 2 comments

Print from a discord convo:

Image

Those nasty edge usages keep appearing huh, not documented anywhere.

the tag used was something like this:

@pic[300].strpic {
    "Hello! Hello! Hi!"
    .pos 0, 0 .topLeft
    .size 0, 0    .chromakey 1
    .scale 100
    .trans 0
    .rgbs 100, 100, 100, 100
    .font t[1], v[2]
    .spacing 0, 4
    .skin "System" .nobg .noframe .noPadding
    .mapLayer 10
    .eraseWhenTransfer
    .affectedByFlash
    .affectedByShake
}

jetrotal avatar Apr 22 '25 19:04 jetrotal

CSA Updated: https://jetrotal.github.io/CSA/#MNC%20|%20Show%20String%20Picture Image

Look at this, garbage characters are also shoved inside the fontName area which explains t[1] being displayed as "aS" or "aU"

jetrotal avatar Apr 22 '25 20:04 jetrotal

Imo that aS etc. is just corrupted data that can be ignored. The mode is encoded in these x01/x02/x03 delimiters. This was already figured out a long time ago. The modes are just not handled for system name and font name as shown here in the code:

https://github.com/EasyRPG/Player/blob/bf041c1c5485d69d415760474463d8468a187afe/src/game_interpreter.cpp#L4558-L4584

Ghabry avatar Apr 29 '25 19:04 Ghabry