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,208
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
441
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,208
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,208
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,208
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,208
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,208
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.
  • Julie_Pilgrim @ Julie_Pilgrim:
    oh man, that always goes great!
  • Julie_Pilgrim @ Julie_Pilgrim:
    im sure half the responses won't be literal racial slurs or "drop table" jokes
  • Veho @ Veho:
    Look, it's China. They know what it's like when you give a poll to half a billion trolls.
    +1
  • K3Nv2 @ K3Nv2:
    How much dollar do you think it is?
  • Veho @ Veho:
    ONE MILLION DOLLA
    +1
  • Veho @ Veho:
    I know the pricing of electronics nowadays isn't "how much it actually costs" but "how much we can get away with", but putting up a poll is just cynical.
    +1
  • K3Nv2 @ K3Nv2:
    Probably $150 someone said Anbernic said around the same price as rg556
  • Julie_Pilgrim @ Julie_Pilgrim:
    you know which game i wish they would rerelease
  • Julie_Pilgrim @ Julie_Pilgrim:
    sonic unleashed
  • K3Nv2 @ K3Nv2:
    Make it a happy meal toy
  • Julie_Pilgrim @ Julie_Pilgrim:
    that game's engine is really fucking intensive so it runs like literal shit on xbox 360 and ps3
  • Veho @ Veho:
    Nah I'm getting value creep again. I look at a $50 console "but for just a few more dollars you could get XYZ" and I end up considering the Steam Deck.
    +1
  • Julie_Pilgrim @ Julie_Pilgrim:
    like the lighting in that game was genuinely so good
  • Veho @ Veho:
    Not getting dragged into that again.
  • Julie_Pilgrim @ Julie_Pilgrim:
    i dont get why they didn't port the one game that ran the worst on consoles, to pc
  • Julie_Pilgrim @ Julie_Pilgrim:
    like you port everything to pc except the one game where it would make the most sense. why. what do you gain from this
  • Julie_Pilgrim @ Julie_Pilgrim:
    is sega just personally fucking with me? are they laughing while watching me through my kinect camera as i get up to restart my xbox for the third time because the game froze again
  • K3Nv2 @ K3Nv2:
    Buy handhelds from five below better quality
  • K3Nv2 @ K3Nv2:
    Valve probably going to do another refresh of the deck this fall with rog ally like specs tbh
    +1
  • Veho @ Veho:
    A smaller form factor would be nice too.
    +1
  • K3Nv2 @ K3Nv2:
    A shield portable 2 would be nice aye Nvidia
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    The big leap in all things tech is when carbon based chips start hitting.
  • Psionic Roshambo @ Psionic Roshambo:
    Longer battery life cooler temps and faster! What's not to like lol (probably expensive as hell)
    Psionic Roshambo @ Psionic Roshambo: Longer battery life cooler temps and faster! What's not to like lol (probably expensive as hell)