Added more text dumps
This commit is contained in:
parent
52900e9c50
commit
9f97303106
|
@ -225,6 +225,21 @@ namespace ScriptTool
|
|||
return miscStrings;
|
||||
}
|
||||
|
||||
public static MiscStringCollection ReadDadText(byte[] rom)
|
||||
{
|
||||
return ReadPointerTable(rom, 0xB18310, 0xB18160);
|
||||
}
|
||||
|
||||
public static MiscStringCollection ReadPsiText(byte[] rom)
|
||||
{
|
||||
return ReadPointerTable(rom, 0xB194BC, 0xB18344);
|
||||
}
|
||||
|
||||
public static MiscStringCollection ReadEnemyNames(byte[] rom)
|
||||
{
|
||||
return ReadPointerTable(rom, 0xB1A2F0, 0xB19AD0);
|
||||
}
|
||||
|
||||
public static FixedStringCollection ReadPsiNames(byte[] rom)
|
||||
{
|
||||
return ReadFixedStringTable(rom, 0xB1B916, 0x12, 0xD);
|
||||
|
|
|
@ -178,6 +178,7 @@ namespace ScriptTool
|
|||
// Pull all string refs from the ROM
|
||||
var allRefs = new List<Tuple<string, MainStringRef[]>>();
|
||||
allRefs.Add(Tuple.Create("m12-tpt", M12TextTables.ReadTptRefs(m12Rom)));
|
||||
// TODO: small pointer table at B1B3B0
|
||||
|
||||
// Decompile
|
||||
var allPointers = allRefs.SelectMany(rl => rl.Item2).Select(r => r.OldPointer).ToArray();
|
||||
|
@ -210,6 +211,18 @@ namespace ScriptTool
|
|||
var miscText = M12TextTables.ReadMiscText(m12Rom);
|
||||
DecompileM12MiscStringCollection(m12Rom, workingDirectory, "m12-misctext", miscText);
|
||||
|
||||
// Dad
|
||||
var dadText = M12TextTables.ReadDadText(m12Rom);
|
||||
DecompileM12MiscStringCollection(m12Rom, workingDirectory, "m12-dadtext", dadText);
|
||||
|
||||
// PSI text
|
||||
var psiText = M12TextTables.ReadPsiText(m12Rom);
|
||||
DecompileM12MiscStringCollection(m12Rom, workingDirectory, "m12-psitext", psiText);
|
||||
|
||||
// Enemy names
|
||||
var enemyNames = M12TextTables.ReadEnemyNames(m12Rom);
|
||||
DecompileM12MiscStringCollection(m12Rom, workingDirectory, "m12-enemynames", enemyNames);
|
||||
|
||||
// PSI names
|
||||
var psiNames = M12TextTables.ReadPsiNames(m12Rom);
|
||||
DecompileM12FixedStringCollection(m12Rom, workingDirectory, "m12-psinames", psiNames);
|
||||
|
|
17
todo.md
17
todo.md
|
@ -3,15 +3,12 @@
|
|||
- [ ] Dump enemy names
|
||||
- [ ] Dump PSI names
|
||||
- [ ] Dump main text
|
||||
- [ ] Translate item names
|
||||
- [ ] Translate enemy names
|
||||
- [ ] Translate PSI names
|
||||
|
||||
# M12
|
||||
- [ ] Dump menu strings
|
||||
- [ ] Dump misc strings
|
||||
- [ ] Dump teleport strings
|
||||
- [ ] Translate menu strings
|
||||
- [ ] Translate misc strings
|
||||
- [ ] Translate teleport strings
|
||||
- [ ] Translate main text
|
||||
- [ ] Translate dad text
|
||||
- [ ] Translate enemy names
|
||||
- [X] Translate item names
|
||||
- [ ] Translate menu choices
|
||||
- [ ] Translate misc text
|
||||
- [ ] Translate PSI names
|
||||
- [ ] Translate PSI text
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"OffsetTableLocation": 0xB18310,
|
||||
"StringsLocation": 0xB18160,
|
||||
"StringRefs": [
|
||||
{
|
||||
"Index": 0x0,
|
||||
"OffsetLocation": 0xB18314,
|
||||
"OldPointer": 0xB18160,
|
||||
"Old": "[0C FF]は じゅわきをとった。[00 FF]",
|
||||
"New": "[0C FF]は じゅわきをとった。[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x1,
|
||||
"OffsetLocation": 0xB18318,
|
||||
"OldPointer": 0xB1816F,
|
||||
"Old": "パパ[00 FF]",
|
||||
"New": "パパ[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x2,
|
||||
"OffsetLocation": 0xB1831C,
|
||||
"OldPointer": 0xB18173,
|
||||
"Old": "ママ[00 FF]",
|
||||
"New": "ママ[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x3,
|
||||
"OffsetLocation": 0xB18320,
|
||||
"OldPointer": 0xB18177,
|
||||
"Old": "エスカルゴうんそう[00 FF]",
|
||||
"New": "エスカルゴうんそう[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x4,
|
||||
"OffsetLocation": 0xB18324,
|
||||
"OldPointer": 0xB18182,
|
||||
"Old": "マッハピザ[00 FF]",
|
||||
"New": "マッハピザ[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x5,
|
||||
"OffsetLocation": 0xB18328,
|
||||
"OldPointer": 0xB18189,
|
||||
"Old": "ストイッククラブ[00 FF]",
|
||||
"New": "ストイッククラブ[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x6,
|
||||
"OffsetLocation": 0xB1832C,
|
||||
"OldPointer": 0xB18193,
|
||||
"Old": "◆あ パパだ。[02 FF]◆おまえの ぎんこうこうざに[01 FF]ドル[01 FF] ふりこんでおいたからね。[02 FF]◆つかったぶんと さしひきで[01 FF]ドル[01 FF] ぎんこうに はいっているはずだ。[02 FF]◆えーと つぎのレベルまで··[01 FF][0D FF]は。[01 FF]◆それはそうと なんのようだい?[01 FF][18 FF 00 00]",
|
||||
"New": "◆あ パパだ。[02 FF]◆おまえの ぎんこうこうざに[01 FF]ドル[01 FF] ふりこんでおいたからね。[02 FF]◆つかったぶんと さしひきで[01 FF]ドル[01 FF] ぎんこうに はいっているはずだ。[02 FF]◆えーと つぎのレベルまで··[01 FF][0D FF]は。[01 FF]◆それはそうと なんのようだい?[01 FF][18 FF 00 00]"
|
||||
},
|
||||
{
|
||||
"Index": 0x7,
|
||||
"OffsetLocation": 0xB18330,
|
||||
"OldPointer": 0xB18227,
|
||||
"Old": "◆そうか。[01 FF] パパも もう きょうは[01 FF] やすもうと おもっていたところだ。[02 FF]◆ぼうけんのきろくは[01 FF] つけといたよ。[02 FF]◆おやすみ··[01 FF][18 FF 00 00]",
|
||||
"New": "◆そうか。[01 FF] パパも もう きょうは[01 FF] やすもうと おもっていたところだ。[02 FF]◆ぼうけんのきろくは[01 FF] つけといたよ。[02 FF]◆おやすみ··[01 FF][18 FF 00 00]"
|
||||
},
|
||||
{
|
||||
"Index": 0x8,
|
||||
"OffsetLocation": 0xB18334,
|
||||
"OldPointer": 0xB18286,
|
||||
"Old": "◆がんばれよ。[02 FF]◆ガチャン ツーツーツー[00 FF]",
|
||||
"New": "◆がんばれよ。[02 FF]◆ガチャン ツーツーツー[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0x9,
|
||||
"OffsetLocation": 0xB18338,
|
||||
"OldPointer": 0xB1829D,
|
||||
"Old": "◆[0D FF]も ママににて[01 FF] がんばりやだなぁ。[02 FF]◆むりするなよ。[02 FF]◆ガチャン ツーツーツー[00 FF]",
|
||||
"New": "◆[0D FF]も ママににて[01 FF] がんばりやだなぁ。[02 FF]◆むりするなよ。[02 FF]◆ガチャン ツーツーツー[00 FF]"
|
||||
},
|
||||
{
|
||||
"Index": 0xA,
|
||||
"OffsetLocation": 0xB1833C,
|
||||
"OldPointer": 0xB182CD,
|
||||
"Old": "◆おたがい よくやったよな。[02 FF]◆それじゃ リセットボタンを[01 FF] おさないで でんげんを OFFに[01 FF] しなさい。 わかったね。[00 FF]",
|
||||
"New": "◆おたがい よくやったよな。[02 FF]◆それじゃ リセットボタンを[01 FF] おさないで でんげんを OFFに[01 FF] しなさい。 わかったね。[00 FF]"
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue