ROM Hack Translation Detective Pikachu Returns - How to edit fonts, help please.

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
Hello, I want to add Polish letters to the game fonts, got unity installed but it does not open:
asiakgd-e sdf.ab
dfhei5a sdf.ab
dfpt_b9 sdf.ab
fot-udkakugo_smallpr6n-db sdf.ab
and i can't make it from scratch, I don't know unity at all, so please someone help.
:bow::bow::bow::bow::bow:
ryujinx_capture_2023-10-20_16-54-07.png

I should say:
Wiesz jaka jest dla mnie ważna, no i
Corviknight z nią odleciał!
 
Last edited by tomx86,

blashy101

Well-Known Member
Newcomer
Joined
Sep 12, 2023
Messages
78
Trophies
0
Age
31
XP
390
Country
United States
Hello, I want to add Polish letters to the game fonts, got unity installed but it does not open:
asiakgd-e sdf.ab
dfhei5a sdf.ab
dfpt_b9 sdf.ab
fot-udkakugo_smallpr6n-db sdf.ab
and i can't make it from scratch, I don't know unity at all, so please someone help.
:bow::bow::bow::bow::bow:
View attachment 400252
I should say:
Wiesz jaka jest dla mnie ważna, no i
Corviknight z nią odleciał!
You should be able to open those Asset Bundles with https://github.com/SeriousCache/UABE. Do you know if they’re encrypted?
 

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
You should be able to open those Asset Bundles with https://github.com/SeriousCache/UABE. Do you know if they’re encrypted?
Thanks for the reply, but only one got decompressed successfully:
Bez tytułu.png

Besides I already used UABEAvalonia to view those files and its better then AssetBundleExtractor it opens all font files, and it exports atlas as .png properly, but still it only exports other font files as .dat or .txt files with are useless in unity, so any other solution?
 

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
Hey, guys I made the "FOT-UDKakugo_SmallPr6N-DB SDF" font inside "asiakgd-e sdf.ab" from scratch (I learned some things about Unity) and addet the missing polish characters:
atlas new.png


FOT-UDKakugo_SmallPr6N-DB SDF Atlas.png

and the original atlas:
FOT-UDKakugo_SmallPr6N-DB SDF Atlas-CAB-ebc62cdbea7b285aff28685265cc0949-6083195755817863084.png

But how to import it here:
UABEAvalonia.png

I know how to import the atlas .png, but no luck with "FOT-UDKakugo_SmallPr6N-DB SDF MonoBehaviour".
Help please:cry::cry::cry::bow::bow::bow:
 
Last edited by tomx86,

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
Is there a way to convert "FOT-UDKakugo_SmallPr6N-DB SDF.asset" I've made while recreating the font in unity:

- m_Index: 12
m_Metrics:
m_Width: 32.6875
m_Height: 32.890625
m_HorizontalBearingX: 3.03125
m_HorizontalBearingY: 31.1875
m_HorizontalAdvance: 38.75
m_GlyphRect:
m_X: 1694
m_Y: 2424
m_Width: 33
m_Height: 33
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0

to the "FOT-UDKakugo_SmallPr6N-DB SDF MonoBehaviour" format inside "asiakgd-e sdf.ab":

[11]
0 Glyph data
0 unsigned int m_Index = 12
0 GlyphMetrics m_Metrics
0 float m_Width = 32,6875
0 float m_Height = 32,890625
0 float m_HorizontalBearingX = 3,03125
0 float m_HorizontalBearingY = 31,1875
0 float m_HorizontalAdvance = 38,75
0 GlyphRect m_GlyphRect
0 int m_X = 1694
0 int m_Y = 2424
0 int m_Width = 33
0 int m_Height = 33
0 float m_Scale = 1
0 int m_AtlasIndex = 0

Right now I'm copying all the new values manually and replacing all dots from the .asset to commas inside the MonoBehaviour file, it is manageable but I don't even know if doing this will fix the font, before I'll do all 49333 lines in the MonoBehaviour file with will take weeks, please help :cry: :cry: :cry: :bow: :bow: :bow:
 
Last edited by tomx86,

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
OK, I did it!
I exported "FOT-UDKakugo_SmallPr6N-DB SDF MonoBehaviour" as a .json file.
Used a online YAML to JSON converter on my new "FOT-UDKakugo_SmallPr6N-DB SDF.asset" file.
https://www.json2yaml.com/convert-yaml-to-json
I copied all new glyph info from my new .asset to the original, had to remove and fix some lines.
Imported the new .json and atlas.png, and voila!
ryujinx_capture_2023-11-01_14-21-26.png

1698845871374.png


I'm showing screenshots from the main menu, because I found out that I fave to add the new font files to every file that uses text on screen, so in this case "outgame.ab", what is the point of the "Font" folder anyway?
WTF NINTENDO!
So this thread is closed, for all who tried to help but couldn't, I say thanks and bye.

PS. You can also compress any file that 'UABEAvalonia" decompresses for so the edited files are closer to the sizes of the originals, but use LZ4.
 
Last edited by tomx86,

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,186
Country
Poland
Hey, thanks to @dgyst I've translated the copyright text:
ryujinx_capture_2024-01-29_19-07-45.png

This is a MonoBehaviour. Patch id = -1519283476478896086 Name = TextMeshProUGUI location = outgame.ab
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: I did use a bot for Diablo III though but no ban there lol