-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrindex_example.txt
95 lines (79 loc) · 4.64 KB
/
strindex_example.txt
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
This strindex contains the translation for the first lines of the videogame "Katana ZERO"
from the Spanish language, to Italian, specifically for its ".exe" file.
The strindex parser automatically detects the start of the settings (in the header),
as well as the start of the strings to patch (the body), after which comments are not supported.
{
// The md5 hash of the file this strindex was created with.
// Useful for many reasons, such as debugging.
"md5": "29ed1f9e450d43815c2d1a0cab168da3",
// The minimum length of strings that should be considered when creating or updating the strindex.
"min_length": 3,
// A list of prefix/suffix bytes that can prefix a pointer.
// Bytes strings of the same list MUST BE of the same length.
// If the pointers for the strings you want to patch always have those,
// This can help identifying them better and avoiding relocating "false pointers"
// (sequence of bytes that are the same as a pointer but that aren't one).
// When relocating false pointers, there's a high chance of the program crashing.
// You can also give those in the "create" action arguments, as it follows:
// -p "24c7442404" -p "ec04c70424"
"prefix_bytes": ["24c7442404", "ec04c70424"],
"suffix_bytes": [],
// A table which replaces characters (or other sequences of letters) in strings to patch.
// Useful for when the program doesn't support some characters (in this case, "ìÌòÒ")
// and you still want to be grammatically correct.
"patch_replace": {
"ì": "í",
"Ì": "Í",
"ò": "ó",
"Ò": "Ó"
},
// Pattern used by the "spellcheck" action, which removes trash characters to spellcheck correctly.
// In this case, this removes characters used to handle the game dialog boxes color, speed etc.
"clean_pattern": "\\[.*?\\]|\\*",
// Used by the "filter" action to whitelist specific language character lists.
// You can see those in the "utils.py" file, in the Strindex class.
"whitelist": ["latin", "spanish", "cyrillic"],
// Used in the "filter" action to filter a Strindex by detected language.
"source_language": "es",
// Used in the "spellcheck" action to define which language are the Strindex lines translating to.
"target_language": "it",
// Used in the "filter" action to help identifying the languages better, giving it fewer choice.
"among_languages": ["en", "ja", "ko", "de", "fr", "es", "pt", "ru", "zh"]
}
You can replace strings in two ways:
//==============================================================================[reallocate pointer(s) if 1]
// replace this string...
//------------------------------------------------------------------------------
// ...with this string!
or
//==============================================================================/ offset / offset-of-pointer(s) /
// replace the string at this offset with this one.
This is the start of the body of the strindex, detected by the 80 "═" characters:
================================================================================11
A ver...* Háblame de nuevo de los [r]tipos enmascarados...
--------------------------------------------------------------------------------
Vediamo...* Parlami di nuovo di quei [r]tipi mascherati...
================================================================================1
Entiendo...* Entonces comencemos por el principio.
--------------------------------------------------------------------------------
Capisco...* Allora cominciamo dall'inizio.
================================================================================1
¿Has llegado ya?
--------------------------------------------------------------------------------
Sei arrivato?
================================================================================1111111111111111111
*Colgar*
--------------------------------------------------------------------------------
*Riaggancia*
================================================================================/018bcc43/004420cc-004433b4/
Ci sono quasi.
================================================================================/018bccba/00442284/
Non ancora.
================================================================================/018bce65/00442518/
[r]Non riattaccare più.[/]* Ho bisogno di dettagli sulla tua posizione.
================================================================================/018bd058/00442964/
Sono quasi dentro.
================================================================================/018bd067/00442990/
Sto entrando.
================================================================================/018bd13c/00442b1c-00443c4c/
Arriverò presto.