Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/sprite_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def get_pt_remapper():
'redux': (0x8e8000, 256, 'font_redux.png', (0x8ECADF, 99)),
'nl': (0x8e8000, 256, 'font_nl.png', (0x8ECADF, 99)),
'sv': (0x8e8000, 256, 'font_sv.png', (0x8ECADF, 99)),
'it': (0x8e8000, 256, 'font_it.png', (0x8ECADF, 99)),
}

def decode_font():
Expand Down
22 changes: 22 additions & 0 deletions assets/text_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@
# 112-
]

kTextAlphabet_IT = [
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", # 0 - 15
"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", # 16 - 31
"g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", # 32 - 47
"w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "!", "?", # 48 - 63
"-", ".", ",",
# 64 - 79
"[...]", ">", "(", ")",
"[Ankh]", "[Waves]", "[Snake]", "[LinkL]", "[LinkR]",
"\"", "[Up]", "[Down]", "[Left]",
# 80 - 95
"[Right]", "'", "[1HeartL]", "[1HeartR]", "[2HeartL]", "[3HeartL]", "[3HeartR]",
"[4HeartL]", "[4HeartR]", " ", "<", "[A]", "[B]", "[X]", "[Y]", "[I]",
"¡", "[!]", " ",
]

kText_CommandLengths_US = [1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, ]
kText_CommandNames_US = [
"NextPic", "Choose", "Item", "Name", "Window", "Number",
Expand Down Expand Up @@ -388,6 +404,11 @@ class LangFR_C(LangEU):
dictionary = kTextDictionary_FR
rom_addrs = [0x9c8000, 0x8CF150]

class LangIT(LangUS):
alphabet = kTextAlphabet_IT
dictionary = kTextDictionary_US
rom_addrs = [0x9c8000, 0x8edf40]

kLanguages = {
'us' : LangUS(),
'de' : LangDE(),
Expand All @@ -400,6 +421,7 @@ class LangFR_C(LangEU):
'redux' : LangUS(),
'nl' : LangNL(),
'sv' : LangSV(),
'it' : LangIT(),
}

def dialogue_filename(s):
Expand Down
1 change: 1 addition & 0 deletions assets/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def cache(user_function):
'9325C22EB0A2A1F0017157C8B620BC3A605CEDE1' : ('redux', 'English Redux - https://www.romhacking.net/hacks/2594/'),
'FA8ADFDBA2697C9A54D583A1284A22AC764C7637' : ('nl', 'Dutch - https://www.romhacking.net/translations/1124/'),
'43CD3438469B2C3FE879EA2F410B3EF3CB3F1CA4' : ('sv', 'Swedish - https://www.romhacking.net/translations/982/'),
'AB839464566B2FADB8C5748C4DF49B71BEF065F4' : ('it', 'Italian - https://www.romhacking.net/translations/7163/'),
}

def load_rom(filename, support_multilanguage = False):
Expand Down