ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Sep 15, 2019 8:13 pm

All times are UTC




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Fri Jul 26, 2019 2:32 pm 

Joined: Mon Jul 20, 2015 1:12 pm
Posts: 60
Hi, I am a Korean amateur localizer.

I need help localizing the game

The problem is that I extracted the file and I want to repack the file again after editing it.

I need a text extraction and insertion tool.

When "* .pck" is extracted, "* .bin" is extracted for each folder.

Can anyone help?

This is an example file.
https://drive.google.com/open?id=15gtei ... bYI80z3lSx
https://drive.google.com/open?id=1VJcXz ... xQpxXnHMCq
https://drive.google.com/open?id=1QpagK ... q4vK69tpaO


This is all file
https://drive.google.com/open?id=1cOVum ... C6VMwqKb4s

I need help


Top
   
PostPosted: Sat Jul 27, 2019 3:12 pm 

Joined: Sat Jul 13, 2019 1:08 am
Posts: 6
For those bin file u can edit by using Notepad++

Take example on database.bin on Japan language, open that file on Notepad++ and scroll to right at line 10, u will see the text. But the file encode at ANSI, so u have change encode ANSI to UTF-8 to see the Japanese text

Image

And here for day01_01a.bin on script.pck from English language, open that file on Notepad++ and scroll to right at line 69, u will see the text. This is english language so u can see the text on encode ANSI

Image

The thing is i don't know how to replace font image on .tex file


Top
   
PostPosted: Sat Jul 27, 2019 4:44 pm 

Joined: Mon Jul 20, 2015 1:12 pm
Posts: 60
I know what you said.

However, there is a limit on the number of characters, and it seems like there is a pointer, so it needs to be modified through the program.

Also, in the case of database.bin, there are several files and scripts, which can also be a problem.


Top
   
PostPosted: Sat Jul 27, 2019 4:56 pm 

Joined: Thu Sep 10, 2015 8:22 am
Posts: 16
I can deal with that bin file and the pointer with any languague!

The problem is font.code is the address of font tex file but i can't do anything to that.


Top
   
PostPosted: Sat Jul 27, 2019 5:07 pm 

Joined: Mon Jul 20, 2015 1:12 pm
Posts: 60
I think it would be possible if the encoding utf-8


Top
   
PostPosted: Sun Jul 28, 2019 12:06 am 

Joined: Sun Jul 28, 2019 12:01 am
Posts: 1
haku0011 wrote:
I can deal with that bin file and the pointer with any languague!

The problem is font.code is the address of font tex file but i can't do anything to that.

If you know how to deal with the script, then tell the others so anyone with the same problem will know it too.


Top
   
PostPosted: Sun Jul 28, 2019 9:17 am 

Joined: Thu Sep 10, 2015 8:22 am
Posts: 16
Image
Image

There are many texts and files so to make a tools will make a lots of time. But I just don't know to work with font.
I will make a demo and guide you guys deal with those file.

With my ways you can write any language you want.


Top
   
PostPosted: Sun Jul 28, 2019 10:31 am 

Joined: Sat Jul 13, 2019 1:08 am
Posts: 6
I know how to change texture already, take a look of my example on title.tex

Example: Image

Just use a script bms tool convert tex to dds in here: viewtopic.php?p=49996#p49996

When u get a dds file, i use Paint.NET to edit DDS image. After edit done, just save at A8B8G8R8 mode!


Top
   
PostPosted: Sun Jul 28, 2019 4:28 pm 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 72
Font .code file is pretty simple.

Code:
int fontSize;
int chars;
float charWidth; // (fontSize / textureWidth)
float charHeight; // (fontSize / textureHeight)

struct CharDef {
   char charCode[4]; // Reversed utf8 code, null padded
   float x; // (x_coordinate / textureWidth)
   float y; // (y_coordinate / textureHeight)
   int xoffset;
   int xadvance;
} charDef[chars];


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited