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

tomx86

Well-Known Member
OP
Member
Joined
Jun 3, 2015
Messages
780
Trophies
0
Age
38
XP
2,205
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
79
Trophies
0
Age
31
XP
436
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
780
Trophies
0
Age
38
XP
2,205
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
780
Trophies
0
Age
38
XP
2,205
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
780
Trophies
0
Age
38
XP
2,205
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
780
Trophies
0
Age
38
XP
2,205
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
780
Trophies
0
Age
38
XP
2,205
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.
  • K3Nv2 @ K3Nv2:
    why
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, it's not funny
  • K3Nv2 @ K3Nv2:
    ok
  • BigOnYa @ BigOnYa:
    Wut?
  • K3Nv2 @ K3Nv2:
    That's not funny
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    So two cannibals where eating a clown and one says to the other. Hey does this taste funny to you?
    +2
  • K3Nv2 @ K3Nv2:
    What do you call a slow car? Retired
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Did you hear about the police car that someone stole the wheels off of? The police are working tirelessly to find the thieves.
    +2
  • K3Nv2 @ K3Nv2:
    A firefighter got arrested for assault his main claim was what I was told he was on fire
    +2
  • BigOnYa @ BigOnYa:
    What do you call a hooker with a runny nose? Full
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    What do you tell a woman with two black eyes? Nothing you already told her twice!
  • K3Nv2 @ K3Nv2:
    Diddy also works
  • K3Nv2 @ K3Nv2:
    A scientist heard the word batman so he put a naked lady in a cage with a bat
  • Psionic Roshambo @ Psionic Roshambo:
    Chuck Norris won a staring contest, with the sun.
  • K3Nv2 @ K3Nv2:
    A vampires favorite thing to do is moon you
  • BigOnYa @ BigOnYa:
    What's the difference between an airplane, and Ken's mom? Not everyone has been in an airplane.
  • K3Nv2 @ K3Nv2:
    What's the difference between @BigOnYa and his wife? Nothing both want to bone me
    +3
  • RedColoredStars @ RedColoredStars:
    How much wood could a wood chuck chuck if a wood chuck could chuck norris
    +1
  • BakerMan @ BakerMan:
    how do i know? you're a guy, and he wants to bone every guy on this site (maybe, idk)
    +1
  • K3Nv2 @ K3Nv2:
    He wants to bone anything with a dick
    +1
  • Xdqwerty @ Xdqwerty:
    Good night
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, big day tomorrow. Congrats.
    K3Nv2 @ K3Nv2: https://www.instagram.com/reel/C7iLZ35NrQt/?igsh=MWd2Z3U0dmNlMmNxcw==