Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

?????(Gujian3) text tool

Featured Replies

  • Author
  • Localization

Kaplas, posted Fri Nov 12, 2021 7:48 pm (67485)


Great work!
  • Author
  • Localization

alanm, posted Sat Nov 13, 2021 6:06 am (67486)


Lazy_Cat_2k3 wrote:
Here are all strings extracted with their offset (some strings are wrong because I haven't parsed all types and maybe I've parsed it wrong in the beggining :) )
https://www.mediafire.com/file/8xm20hza ... s.rar/file
The code behind:
Code:
            while (input.Position             {
                byte Type = input.ReadValueU8();
                int sizeString = 0;
                switch (Type)
                {
                    case 8:
                        sizeString = input.ReadValueU8();
                        output.WriteLine(input.ReadString(sizeString));
                        break;
                    case 9:
                        sizeString = input.ReadValueU16();
                        output.WriteLine(input.ReadString(sizeString));
                        break;
                    case 3:
                        input.ReadBytes(1);
                        break;
                    case 4:
                        input.ReadBytes(2);
                        break;
                    case 5:
                        input.ReadBytes(3);
                        break;
                    case 6:
                        input.ReadBytes(3);
                        break;
                    case 7:
                        input.ReadBytes(8);
                        break;
                    case 10:
                        input.ReadBytes(3);
                        break;
                    case 11:
                        input.ReadBytes(4);
                        break;
                    case 16:
                        input.ReadBytes(4);
                        break;
                }
            }


Hello Lazy_Cat_2k3,
I am not a .NET C# coder. I Notice in your attached strings file newline characater (\x0a) in strings all turn into "". Does WirteLine() do that automatically or you set it up that way?
  • Author
  • Localization

Lazy_Cat_2k3, posted Sat Nov 13, 2021 4:05 pm (67489)


alanm wrote:
Good news. Found the buffer size checksum checking code of text buffer. Should not have problem with bigger buffer now.

It's awesome :D
alanm wrote:
Does WirteLine() do that automatically or you set it up that way?

I replaced character "\n" (0x0A) to "".

All types that I have parse, not a full parsing but are enough to extract all strings.
Code:
Unk0 = 0,
Unk1 = 1,
Unk2 = 2,
Byte = 3,
Short = 4,
Int = 5,
Long = 6,
Float = 7,
ByteString = 8,
UShortString = 9,
Array = 11,
Unk13 = 13,
UShort = 15,
UInt = 16
  • Author
  • Localization

Lazy_Cat_2k3, posted Sat Nov 13, 2021 4:16 pm (67490)


Outdated: please use Gujian 3 Manager for more features and improvements

Gujian 3 Text Editor

Download Binaries
Download tag list
Source Code


Changelog:

1.0.1
- Add more tag
- Support steam version (1.3.0)

Note: After editing/packing these string, you'll need to install Gujian3 text mod from alanm (See below)
  • Author
  • Localization

alanm, posted Sat Nov 13, 2021 7:52 pm (67493)


Lazy_Cat_2k3 wrote:
Gujian 3 Text Editor

Download Binaries
Download tag list (still missing lots of tag)
Source Code


Excellent work! Lazy_Cat_2k3.

My text mod was created for v1.2.0.1890 version of .exe , it also works for Steam .exe of the same version. That is gone now because steam released a 1.3.0.2142 version just a day ago which added Japanese language support and have a different text buffer size and address. So no Steam until I figure it out.

The source is not ready for release , it was based on this DX wrapper project (https://github.com/elishacloud/DirectX-Wrappers) with modification that access game code for text mod. The same license and disclaimer applied, not responsible if your machine catch on fire :|.

Gujian3 text mod binary is available here: ( check later post for version that support new version of Steam .exe)

https://www.mediafire.com/file/v0nfvqz6ttzny35/G3TextMod.zip/file

It contains 2 files. Dsound.dll and text.bin. put them both in your game bin64/ directory next to the gujian3.exe
text.bin is the decrypted text buffer. I've tested it lightly with Lazy_Cat_2k3's Gujian3TextEditor. Generated a bigger text.bin with longer text seems to work so far. Remember there is no integrity check of the text.bin format. If you modify a tag insteads of a display string by mistake, game will likely crash or worse.
  • Author
  • Localization

Kaplas, posted Sat Nov 13, 2021 11:26 pm (67495)


alanm wrote:
My text mod was created for v1.2.0.1890 version of .exe , it also works for Steam .exe of the same version. That is gone now because steam released a 1.3.0.2142 version just a day ago which added Japanese language support and have a different text buffer size and address. So no Steam until I figure it out.


If I'm not wrong, the new buffer size is 0x0494818D and the encrypted section is at offset 0x01364F10 in the new exe file.
  • Author
  • Localization

alanm, posted Sun Nov 14, 2021 3:35 am (67499)


Kaplas wrote:
alanm wrote:
My text mod was created for v1.2.0.1890 version of .exe , it also works for Steam .exe of the same version. That is gone now because steam released a 1.3.0.2142 version just a day ago which added Japanese language support and have a different text buffer size and address. So no Steam until I figure it out.


If I'm not wrong, the new buffer size is 0x0494818D and the encrypted section is at offset 0x01364F10 in the new exe file.


You got it right! how did you figure it out this quickly? This really helps in updating the text mod. thank you.

Here is the decrypted text buffer file for Stream version 1.3.0.2142.
https://www.mediafire.com/file/wo3yh6pwcyfilnm/1302142_text.zip/file
  • Author
  • Localization

bruhmoment, posted Sun Nov 14, 2021 9:28 am (67502)


guys you are awesome thank you so much
  • Author
  • Localization

Kaplas, posted Sun Nov 14, 2021 9:32 am (67503)


alanm wrote:
You got it right! how did you figure it out this quickly? This really helps in updating the text mod. thank you.

I supposed that the section would follow the same pattern than before, so I made a "bruteforce" search in the exe trying to find 4 contiguous integers using these rules:

- The first integer is greater than 0x03000000 and lower than 0x06000000
- The second and fourth integer are 0
- The third integer is not 0
  • Author
  • Localization

alanm, posted Sun Nov 14, 2021 4:49 pm (67511)


Kaplas wrote:
I supposed that the section would follow the same pattern than before, so I made a "bruteforce" search in the exe trying to find 4 contiguous integers using these rules:

- The first integer is greater than 0x03000000 and lower than 0x06000000
- The second and fourth integer are 0
- The third integer is not 0


Very resourceful, I learned something new. thank you.

I updated the text mod DLL to support Steam .exe 1.3.0.2142 which should be the current version. Original disclaimer applied. Text mod now come with text.bin and text1302142.bin files. Current Stream game get text from text1302142.bin only. This is not ideal as when game .exe got updated with bigger text buffer, modifications to old text.bin has to be redone to new text.bin file. Until someone come up with a tool to migrate text to new bin, have to live with this limitation.

https://www.mediafire.com/file/cpp100wbd3v5p2o/G3TextMod_0_2.zip/file

Text Mod source : https://github.com/alanm20/Gujian3TextMod

Change log text mod 0.2:
- Support Steam game version 1.3.0.2142
- Added text1302142.bin to support new game version.

Credits to:
Kaplas - Gujian3Manager for extracting and building game data. Finding decrypted data size and buffer sizing solution ideas.
Lazy_Cat_2k3 - game text editor and buffer sizing solution ideas.
  • Author
  • Localization

Kaplas, posted Sat Dec 11, 2021 5:40 pm (68182)


I've just updated my GuJian3Manager tool: https://github.com/Kaplas80/GuJian3Manager

With it, you can:
- Extract and rebuild game data files.
- Decrypt and encrypt game ".xxx" files.
- Convert full text.bin from/to JSON file.
- Convert text strings in text.bin from/to PO files for translation.

Thanks to:
- Lazy_Cat_2k3 for the text editor, it has been very useful to get the text.bin format.
- alanm for the mod loader.
  • Author
  • Localization

wowisi8473, posted Thu Dec 16, 2021 12:46 pm (68290)


alanm wrote:
Kaplas wrote:
I supposed that the section would follow the same pattern than before, so I made a "bruteforce" search in the exe trying to find 4 contiguous integers using these rules:

- The first integer is greater than 0x03000000 and lower than 0x06000000
- The second and fourth integer are 0
- The third integer is not 0


Very resourceful, I learned something new. thank you.

I updated the text mod DLL to support Steam .exe 1.3.0.2142 which should be the current version. Original disclaimer applied. Text mod now come with text.bin and text1302142.bin files. Current Stream game get text from text1302142.bin only. This is not ideal as when game .exe got updated with bigger text buffer, modifications to old text.bin has to be redone to new text.bin file. Until someone come up with a tool to migrate text to new bin, have to live with this limitation.

https://www.mediafire.com/file/cpp100wbd3v5p2o/G3TextMod_0_2.zip/file

Text Mod source : https://github.com/alanm20/Gujian3TextMod

Change log text mod 0.2:
- Support Steam game version 1.3.0.2142
- Added text1302142.bin to support new game version.

Credits to:
Kaplas - Gujian3Manager for extracting and building game data. Finding decrypted data size and buffer sizing solution ideas.
Lazy_Cat_2k3 - game text editor and buffer sizing solution ideas.

hello, I edited text.bin and copied it with dsound.dll to gujian 3\bin64, but the texts are not visible in the game
  • Author
  • Localization

malakito, posted Thu Dec 16, 2021 3:01 pm (68294)


wowisi8473 wrote:
hello, I edited text.bin and copied it with dsound.dll to gujian 3\bin64, but the texts are not visible in the game


If your game is up to date, you've to edit the text1302142.bin file. The text.bin is the previos version.
  • Author
  • Localization

wowisi8473, posted Thu Dec 16, 2021 3:43 pm (68296)


malakito wrote:
wowisi8473 wrote:
hello, I edited text.bin and copied it with dsound.dll to gujian 3\bin64, but the texts are not visible in the game


If your game is up to date, you've to edit the text1302142.bin file. The text.bin is the previos version.

version 1.2.0.1890
  • Author
  • Localization

wowisi8473, posted Thu Dec 16, 2021 8:07 pm (68306)


problem solved thanks
  • Author
  • Localization

wowisi8473, posted Sun Dec 19, 2021 1:10 pm (68368)


Kaplas wrote:
I've just updated my GuJian3Manager tool: https://github.com/Kaplas80/GuJian3Manager

With it, you can:
- Extract and rebuild game data files.
- Decrypt and encrypt game ".xxx" files.
- Convert full text.bin from/to JSON file.
- Convert text strings in text.bin from/to PO files for translation.

Thanks to:
- Lazy_Cat_2k3 for the text editor, it has been very useful to get the text.bin format.
- alanm for the mod loader.

hi when editing dialogs_scene.po and quest.po the game crashes.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.