-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
105 lines (71 loc) · 3.03 KB
/
README.txt
File metadata and controls
105 lines (71 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
------------------------------------------------------
Nombre: HexString
Autor: koda
Latest Version: 1.0
URL: https://traduccioneskoda.blogspot.com/
Last Update: 23/11/2024
------------------------------------------------------
1 - WHAT'S THIS?
------------------------------------------------------
HexString allows you to dump the text of a ROM, then
reinsert it in order to modify and translate it into
other languages. By providing the correct parameters,
this program will also modify the pointer table. This
automates the entire process, and you only need to
focus on translating.
------------------------------------------------------
2 - WHAT'S NEW
------------------------------------------------------
------------------------------------------------------
3 - HOW TO USE IT?
------------------------------------------------------
To decode:
Use the Windows console and type -d, then fill in the
arguments:
- romFile: ROM file name.
- pointersStartAddress: Address where the pointer table
begins.
- pointerTableSize: Size of the pointers, in hexadecimal.
- headerSize: The size of the header (Formula: take the
first pointer in the table, reverse it, and subtract
the address where the text begins) in hexadecimal.
- lineBreaker: Code used in the ROM to break the text
strings, e.g., 0x00 or 0xFF. (If there is more than
one, separate with commas).
- outFile: Output file, it can be a .bin or .txt file.
- tblFile: (optional) If provided, it decodes using a
.tbl file; otherwise, it uses ASCII.
Para codificar:
Then edit the output file with your favorite text editor
(I recommend Notepad++).
To encode:
Use the Windows console and type -e, then fill in the
arguments:
- textFile: File with the text.
- textStartAddress: Address where the text block begins.
- textSize: Size of the text block, in hexadecimal.
- pointersStartAddress: Address where the pointer table
begins.
- headerSize: The size of the header (Formula: take the
first pointer in the table, reverse it, and subtract the
address where the text begins) in hexadecimal.
- romFile: ROM file name.
- tblFile: (optional) If provided, it decodes using a .tbl
file; otherwise, it uses ASCII.
Tips:
-To avoid typing the arguments repeatedly, I recommend
creating a .bat file for quicker operation.
-Before you begin, it's recommended to make a copy of the
ROM and back up any progress you have.
-You can dump the text and then reinsert it. Use a
hexadecimal comparator to check for discrepancies.
-If you notice that the text size exceeds the available
space in the text block when reinserting, you can search
for empty space in the ROM or simply increase the ROM size.
------------------------------------------------------
4 - TO DO:
------------------------------------------------------
- I assume at some point I’ll add support for 3-byte
pointers.
- A graphical interface—unlikely, as it requires a
lot of work, which I don't have time for right now.