Author Topic: Any Brigandine (PSX) fans?  (Read 160219 times)

Offline HwitVlf

  • Dark Slayer Destroyer
  • ****
  • Posts: 1667
Re: Any Brigandine (PSX) fans?
« Reply #60 on: August 08, 2013, 03:50:42 pm »
For example:
"ISO-8859-5 Cyrillic" uses the range of 0xA0 - 0xFF
ASCII uses the range of 0x20 - 0x7F

0xA0 in binary is "10100000", 0xA1 in binary is "10100001"
0x20 in binary is "00100000", 0x21 in binary is "00100001"

So, to convert ISO-8859-5 value to ASCII, you simply change the first bit from 1 to 0.

I can insert a process in BGE's EXE that automatically changes first bit in every letter to 0.
("Bitwise AND" each letter with "01111111")

This will let you write Russian directly into "010 Hex Editor" and the text will also show up in Brigandine as Russian too.

All you would need to change is to rearrange the letters on the font chart to match ISO-8859-5.
« Last Edit: August 08, 2013, 03:56:19 pm by HwitVlf »

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #61 on: August 08, 2013, 04:03:48 pm »
There are several nuances ... A little later, I will describe (left to transfer 100 of 600 words)
Okay, now I will describe to not spend time))) First, in the English alphabet of 26 ASCII characters, and the Russian 33. Second character codes will have to try to tim alphabet. In general it is necessary to think, is not so obvious ... And while I'm to translate text ...
But I'm damn glad that you are asking me to help!
« Last Edit: August 12, 2013, 07:48:52 pm by Hellborn »

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #62 on: August 08, 2013, 05:17:57 pm »
phew. conversion of more than ready ... I will deal with the coding.  :smash2: Too bad pointers and did not understand how to look for them given the shift is also necessary as you learn.  :movingeyes: It was pretty darn cool to implement such a process in the BGE

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #63 on: August 09, 2013, 07:02:55 am »
Damn I dig through the PSX EXE and I can not understand, names, names of objects and so initially it was scattered on the file or change it to make a patch to use the unallocated space for the big words?   :smash2:

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #64 on: August 09, 2013, 03:18:29 pm »
I have to dig the forums in search of methods. Used as a Russian-speaking and English sources. And I got it! It will take more than one month only so that I could safely dig in binary code ...  :confused:
But there is one thing! Since I started, and I mopped))) What encoding to look Pointers?

Offline HwitVlf

  • Dark Slayer Destroyer
  • ****
  • Posts: 1667
Re: Any Brigandine (PSX) fans?
« Reply #65 on: August 09, 2013, 04:00:09 pm »
In my translation, I sorted the text into categories. Also, I moved the text to make room for long words.  Keep in mind also, names must fit into in-game menus.

Some of my translation-lists are attached. They might help. The names are listed like this:

0x00724C [M.0x016A4C]
* 0008A1EC [4C6A0180]
ファイター
Fighter

The numbers mean:
0x(text location in EXE) [M.0x (text location in RAM)]
* (Pointer location in EXE) [Pointer's original value]

Notice that "text location in RAM" is always "text location in EXE" +0xF800.

Notice that the "pointer's original value" is the reverse of "text location in RAM". And also, it has 0x80 added to the end:
     0x 4C 6A 01 80
[M.0x 01 6A 4C]

I call this type of pointer a "Full Pointer". Text with a "Full Pointer" can be moved anywhere in the EXE, when you edit the pointer value. A "Full Pointer" will always end in 0x80.

Another type of pointer is what I call "Half Pointer":
0x096F08 [M.0x0A6708]
* 0003A9DC [08678424]
クラス
Class

A "Half Pointer" only shows the last two bytes of the text's location.
0A 67 08
     08 67 8424

Never change the end of a "half pointer" (0x8424). It is a CPU command code. You can only move text with "Half Pointer" a short distance.

Note: BGE often has multiple Pointers for a single name. For example:

0x08BBA8 [M.0x09B3A8]
* 0008BDB0 [A8B30980]
0x08BBA8 [M.0x09B3A8]
* 0008BDD8 [A8B30980]
0x08BBA8 [M.0x09B3A8]
* 0008BE00 [A8B30980]
ナイトソード
Knight Sword

This shows three pointers for "Knight Sword". You will have to edit all three if you move the text.

Can I plunder the space occupied by the words "FreeSpace"?
Yes, you can write text in this space.

Also included is a "Number Converter" tool which might help.
« Last Edit: August 09, 2013, 06:40:53 pm by HwitVlf »

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #66 on: August 09, 2013, 04:43:48 pm »
Thanks a lot! I will experiment. How to get to insert my whole transaction translate to the game video preview.
If you need help editing images - please contact us. For me, this is rather easy.

Offline HwitVlf

  • Dark Slayer Destroyer
  • ****
  • Posts: 1667
Re: Any Brigandine (PSX) fans?
« Reply #67 on: August 09, 2013, 06:40:14 pm »
Sorry, I attached the wrong folder. I did not include the texts. Attached is the correct file.

You can resize the game menus so that the Russian text will fit better. But it is a complicated process to find the data that needs to be changed. However, once you find the location, it is easy to change.  I know where some "move text" data is.  You can move text up, down, left right.

For "Number Converter Tool", the "In Save" location is the data location in a "pSX Emulator v1.13" "save-game".

EDIT:Removed attachment. Since I expect you downloaded it already.
« Last Edit: August 11, 2013, 02:59:41 pm by HwitVlf »

Offline HwitVlf

  • Dark Slayer Destroyer
  • ****
  • Posts: 1667
Re: Any Brigandine (PSX) fans?
« Reply #68 on: August 13, 2013, 02:13:12 pm »
I never appreciated how hard it would be to come up with 1000 semi-meaningful names! Near the end, I was reduced to naming a set of twin ghouls Slurp and Burp  :movingeyes:  Hopefully I'm finished with the name section now.

Hellborn, like the new angel avatar  :wink:

Offline Hellborn

  • Bow Bearer
  • *
  • Posts: 33
Re: Any Brigandine (PSX) fans?
« Reply #69 on: August 13, 2013, 04:18:01 pm »
Phew. At the moment I am working on a program to find and edit the text with the Pointer. :tinfoil: It will be fun to have a couple of options). Information presented to the last post was helpful as ever. :smile: I began to better understand the coding and work better with the binary code. Soon lay out a copy ... I hope for further cooperation! :beerchug: