プレイ日記
MSWS coolestkid123
*SIGH*, can someone please help? I want to filter all the x characters...
1そうだね
プレイ済み
返信[1]
親投稿
12Me23 12Me23
you could use GPUTCHR to test for the X character
1そうだね
プレイ済み
返信[2]
親投稿
Pkyoshi19 Pokeyoshi19
The official SmileBASIC website has a list of kanji with their respective character number.
0そうだね
プレイ済み
返信[3]
親投稿
Here is an elegant solution
0そうだね
プレイ済み
返信[4]
親投稿
PChicken NerdChicken
DEF FILTERX(S$) OUTPUT$="" FOR I=0 TO LEN(S$)-1 IF MID$(S$, I, 1) != CHR$(4) AND MID$(S$, I, 1) != CHR$(4) THEN OUTPUT$=OUTPUT$+MID$(S$, I, 1) NEXT RETURN OUTPUT$
0そうだね
プレイ済み
返信[5]
親投稿
PChicken NerdChicken
A function that removes all the CHR$(3 OR 4) characters from a string.
0そうだね
プレイ済み
返信[6]
親投稿
MSWS coolestkid123
@PChicken The only problem with that is that Smile replaces any illegal ASCII value with the X character. Eg: CHR$(5553) would be X, CHR$(7542) would be the same.
0そうだね
プレイ済み
返信[7]
親投稿
PChicken NerdChicken
oh derp :p
0そうだね
プレイ済み
返信[8]
親投稿
PChicken NerdChicken
now i feel ignorant
0そうだね
プレイ済み
返信[9]
親投稿
L. Lohadaa
Hold it! Why do you want to filter the Xs? Those are tofu marks that, since there are over 6,000 kanji characters but only 4,096 available spaces in the GRPF sprite sheet, represent those that didn't make the cut. In my screenshot, the green characters are the obscure kanji that got replaced by tofu marks (red). But since they're still REAL kanji, their unicode/CHR$ value remain unique.
0そうだね
未プレイ
返信[10]
親投稿
L. Lohadaa
So I don't know why you want to mess with the Xs that mask the obsolete kanji, but if you actually want to see what the respective kanji are, use Godot's Misaki Font List [Key: 43ENYD3F]. You will see something like my previous screenshot and a crisper list on the touch screen. Make 3 changes as shown to fix a bug I found in the program.
0そうだね
未プレイ
返信[11]
親投稿
L. Lohadaa
Here's the bottom screen that shows what the tofu marks in your screenshot are supposed to look like in Nintendo's font. I reread your posts and it seems you already know those Xs represent either illegal values OR legal but obscure characters. I just don't know why you want to touch them :P
0そうだね
未プレイ