Hacking Lesson 1: Text Hacking

Discussion of hacking, editing and developments in Advance Wars games.
Remember, no Rom Requests
Mr Dev
Rank: Slaving Away On Something or Another
Location: The Moon

Hacking Lesson 1: Text Hacking

Post by Mr Dev » Sun Nov 13, 2005 9:36 pm

Lesson 1: Text Hacking

Part A: Understanding How Text Works

Part B: Further Text Editing
i) Colouring And Special Codes
ii) Extended Characters
iii) Things You Can Change And Offsets

Part C: Any troubles, known problems

-----------------------------
PART A: Understanding How Text Works
-----------------------------

Text hacking is by far the easiest hacking to do. But this lesson takes it further by showing you some neat extras.

In the previous lesson it was explained that good hex editors have an address area, a hexidecimal area and a character area.

Take a look at this screenshot:
Image

On the line highlighted the hex area and the character area mean the same thing, the bytes highlighted in the hexidecimal area are the characters in the character area represented as hex and vice versa.

So
54 = T
65 = e
And so on...

In fact here are the commonly used characters as hex:
http://www.lookuptables.com/

You'll only need the Hx and Chr columns.

The character area simply makes it easier to edit text. Once you edit the Hex area the character area will change to represent the change and vice versa. Both are interlinked.

------------------------------
PART B: Further Text Editing
------------------------------

i) Colouring And Special Codes

If you've paid attention to AW2 you'll notice that the unit mini info screens have different colour coded text:
Image

This is not programed anywhere special it is just in the text area. It's just some simple hex coding.

All you do is put these codes in the corresponding area withing the hexidecimal area.

80 = Black Text from then on.
81 = Grey Text " .
82 = Red Text " .
83 = Blue Text " .

Image

If you edit text enough you may notice that your text keeps going of the screen, especially with dialogue and descriptions.

This is beacause these extra codes are necessary:

0D = New line (Ie return)
0E = Time Delay (Used for CO Power quotes and the like)
0F = Text continuation arrow
16/17 = A yes or No option (Cannot program what yes/no does at the moment.)
00 = Any text after this is not taken into account, ie it tells the game to stop using the text from here. It is what is
tells the game to stop using this text. It is used to sepearate the different text parts.

IMPORTANT INFORMATION:
When editing text you are generally restricted to the space that is already there. Don't remove the 00s seperating each text section or overspill into the next text area until we know how to change indexes.

ii) Extended characters

Language fanatic?
Want accented characters e.t.c?

Well AW supports the most common ones, ie the ones used in the European Languages:

You may not be able to enter these into the character area so it may be better to use the corresponding Hex codes:
http://www.lookuptables.com/

All you'll have to do is convert the characters number into hex.

Text Data Starts:
005D9330

Campaign Text
005D9320

CO Power Names
00604B40

Terrain INformation
00604F60

CO Biography
00605760

CO Names
00607FA0
(This does not change name displayed in CO BIO or CO Select as those are graphics, this changes name in intro and Battle Maps name)

iii) Things You Can Change And Offsets

Map and Mode names
00608030

Battle Maps:
00608A90

Victory Quotes:
0060AD90

COP Quotes:
0060B060

Song Names:
006106E0

Campaign Names
00614520

004c3c54 - Alphabet table for design maps typed

00135FC0 - Text

0016e1b0 - Staff Credits

00614530 - Campaign/HC Name

005802A0 - Mode and stuff names

----------------------------------
Part C: Any troubles, known problems
----------------------------------

1) I changed a COs name and it hasn't changed in the CO select screen
A) As stated before: (This does not change name displayed in CO BIO or CO Select as those are graphics, this changes name in intro and Battle Maps name)
Last edited by Mr Dev on Mon Dec 05, 2005 9:54 pm, edited 2 times in total.

User avatar
Xenesis
Tri-Star CO
Tri-Star CO
Rank: Hydrocarbon Inspector
3DS Code: 2535-4646-7163
Location: 0x020232DD

Post by Xenesis » Sun Nov 13, 2005 10:14 pm

I just added the info for the elusive 0E. ;)
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

Who is online

Users browsing this forum: Multivac [Bot] and 0 guests