News: 11 March 2016 - Forum Rules

Author Topic: Inserting More Text Then Original  (Read 3638 times)

Enildraf

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Inserting More Text Then Original
« on: November 05, 2011, 03:10:06 am »
I'm am working on translating a japanese game into english....I now have a way to extract and repack all the text...

My problem is that the japanese text uses less bytes then the englsih text so when I try to put it in all the table pointers get messed up.

I tried modifing the pointers to point to the new posiotions but the game froze when it came to the changed ones...

The following is one of the pointer sets - This is how the text is broken up...when somthing such as the background changes...then is goes to a new set.
- the numbers in bold are the pointers themselves...not sure of the rest yet,


                                                           00 00
02 00 00 00 01 00 00 00 02 00 00 00 89 88 88 3C
02 00 00 00 02 00 00 00 03 00 00 00 01 00 00 00
02 00 00 00 03 00 00 00 00 00 00 00 02 00 00 00
1C 00 00 20 00 00 00 00 00 00 00 00 3C 00 00 00
01 00 00 00 00 00 00 00 1C 07 00 00 01 00 00 00
01 00 00 00 01 00 00 00 02 00 00 00 01 00 00 00
03 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00
BC 07 00 00 01 00 00 00 01 00 00 00 01 00 00 00
02 00 00 00 01 00 00 00 03 00 00 00 01 00 00 00
01 00 00 00 05 00 00 00 01 00 00 00 01 00 00 00
06 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00
05 00 00 00

The Following is at the start of each peice of text

01 - Always 01 - This is where the pointer points to.
00 00 00  - Possibly Filler
06  - Character Speaking (Each Character Uses A Diffrent Number
00 00 00 00 00 00 00 - Possibly Filler
3E - Text Number (The number increases by one for each peice of text)
08 - Dialouge Set number
00 - Filler?
A0 - Unknown
00 00 00 00  - Filler?
20  - Unknown
00 00 00  - Filler?
2C  - Unknown - May Relate To The Specific Character Image To Use (eg.Smile, Sad, Angry)
00 00 00  - Filler?
40  - Unknown
00 00 00  - Filler?

Does anyone have any sugestions on what to do or on what I may be missing??

RetroHelix

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Re: Inserting More Text Then Original
« Reply #1 on: November 05, 2011, 10:32:31 am »
Cant say much but I would search for the size of the chunk of text you are editing.
About the character-images, just try another value without changing the text to find whether the value determines the character-image or not.


Auryn

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Inserting More Text Then Original
« Reply #2 on: November 05, 2011, 03:06:35 pm »
Or that game is coded in ways I never seen before or if you ask me, that doesn't look like the pointer table.

Almost all information you described (like the character image) should not be in the pointer table as well.


Forbiddencreed

  • Jr. Member
  • **
  • Posts: 47
    • View Profile
Re: Inserting More Text Then Original
« Reply #3 on: November 05, 2011, 10:52:29 pm »
Well... consider me interested, I would like to play around with this myself when i have time, what game is this?

Enildraf

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Inserting More Text Then Original
« Reply #4 on: November 07, 2011, 12:35:19 am »
@RetroHelix
Hmm hadn't thought about the size of text....I'll have to check that out.
Although I should point out that I can insert one block of text which is larger and it will appear in game...but since it will offset the next blocks pointer it crashes....which is why I tried changed the pointer to the new location...with as mentioned no success

@Auryn
The Big thing at the top that's the pointer table....The bottom part where the character information is kept
is the text block....as each block contains of the text being displayed, character img and possibly voice sound...though from the way the top part is layed out...the sound might be up there....

@Forbiddencreed
The Game Is Mahou Shoujo Lyrical Nanoha A's Portable: The Battle of Aces
It's a 3D Fighting Japanese PSP Game
Link

Forbiddencreed

  • Jr. Member
  • **
  • Posts: 47
    • View Profile
Re: Inserting More Text Then Original
« Reply #5 on: November 07, 2011, 11:00:15 am »
You may have to add DTE or alter it if it already has some, thats the only thing i can think of where you wont have to change the pointers but will allow you to put in enough text.

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 7438
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: Inserting More Text Then Original
« Reply #6 on: November 07, 2011, 09:04:04 pm »
Chances are you'd need to find the pointers on route to adding DTE or something. :P
"My watch says 30 chickens" Google, 2018