Skip to content

Commit

Permalink
Update v15.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Admentus64 committed Nov 6, 2021
1 parent 0db27a1 commit b290a35
Show file tree
Hide file tree
Showing 58 changed files with 367 additions and 287 deletions.
Binary file not shown.
9 changes: 9 additions & 0 deletions Files/Games/Majora's Mask/Custom Text/PlaceFilesHere.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Drop the following files in here, with these names:

1. Message Data Static File as "message_data_static.bin"
2. Message Data Table File as "message_data.tbl"

If any of these files missed, nothing happens.
Make sure these files are correct, otherwise your ROM will crash!

Select the "Custom" option for "English Dialogue" using the English language
Binary file modified Files/Games/Majora's Mask/Decompressed/master_quest_remix.ppf
Binary file not shown.
Binary file modified Files/Games/Majora's Mask/Decompressed/redux_widescreen.bps
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BPS1p�p��xE���<3� �(�MSs �ZL
Binary file not shown.
4 changes: 2 additions & 2 deletions Files/Games/Majora's Mask/Languages/Languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"script_start" : "AD1000",
"script_length" : "699F0",
"output" : "_pl_patched",
"credits" : "RPG (v1.1)"
"credits" : "RPG (v1.1) & GhostlyDark (improvements)"
}, {
"title" : "Russian",
"code" : "ru",
Expand All @@ -82,5 +82,5 @@
"script_start" : "AD1000",
"script_length" : "65EB0",
"output" : "_ru_patched",
"credits" : "Zelda64rus (v2.0 Beta)"
"credits" : "Zelda64rus (v2.0 Beta) & GhostlyDark (improvements)"
} ]
9 changes: 9 additions & 0 deletions Files/Games/Majora's Mask/Script/PlaceFilesHere.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Drop the following files in here, with these names:

1. Message Table File as "script.tbl"
2. Message Data File as "script.bin"

If any of these files missed, nothing happens.
Make sure these files are correct, otherwise your ROM will crash!

Select the "Custom" option for "English Dialogue" using the English language
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions Files/Games/Ocarina of Time/Custom Text/PlaceFilesHere.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Drop the following files in here, with these names:

1. Message Data Static File as "message_data_static.bin"
2. Message Data Table File as "message_data.tbl"

If any of these files missed, nothing happens.
Make sure these files are correct, otherwise your ROM will crash!

Select the "Custom" option for "English Dialogue" using the English language
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 4 additions & 5 deletions Files/Games/Ocarina of Time/Languages/Languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"script_length" : "38130",
"output" : "_pt-BR_patched",
"max_text_speed" : 2,
"credits" : "Fserve (v1.7a)",
"warning" : "This fan-translation is not completed yet{0}[!] Graphical edits are completed for about 50%, but all text is translated"
"credits" : "Fserve (v1.7a), Mex Maximus BR, Projeto BR (MM v1.1c) & GhostlyDark"
}, {
"title" : "Italian",
"code" : "it",
Expand All @@ -64,7 +63,7 @@
"script_length" : "38130",
"max_text_speed" : 2,
"output" : "_pl_patched",
"credits" : "RPG (v1.3)"
"credits" : "RPG (v1.3) & GhostlyDark (improvements)"
}, {
"title" : "Russian",
"code" : "ru",
Expand All @@ -74,7 +73,7 @@
"script_length" : "34390",
"max_text_speed" : 2,
"output" : "_ru_patched",
"credits" : "Zelda64rus (v2.32)"
"credits" : "Zelda64rus (v2.32) & GhostlyDark (improvements)"
}, {
"title" : "Japanese",
"code" : "ja",
Expand All @@ -97,5 +96,5 @@
"l_target_jpn" : 1,
"max_text_speed" : 1,
"output" : "_zh-CN_patched",
"credits" : "madcell (2009)"
"credits" : "madcell (2009) & GhostlyDark (improvements)"
} ]
Binary file modified Files/Games/Ocarina of Time/Languages/pt-BR.ppf
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Female/Nabooru.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/1996 Link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/Dark Link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/Majora's Mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/Original.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/Sashed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Adult Male/Skyward Sword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Child Male/1996 Link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Models/Child Male/Majora's Mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified Files/Games/Ocarina of Time/Models/Child Male/Original.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Files/Games/Ocarina of Time/Models/Child Male/Sashed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 15 additions & 5 deletions Files/Games/Ocarina of Time/Models/Models.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"author" : "Ikey Ilex",
"deku_shield" : 0,
"hylian_shield" : 0
}, {
"name" : "Dark Link",
"author" : "Mikus64",
"deku_shield" : 0,
"hylian_shield" : 0
}, {
"name" : "Kafei",
"author" : "Nintendo & Malon Rose",
Expand All @@ -43,6 +38,15 @@
"name" : "Twilight Princess",
"author" : "Skilarbabcock",
"url" : "https://www.youtube.com/user/skilarbabcock"
}, {
"name" : "Ocarina of Time 3D",
"author" : "Skilarbabcock",
"url" : "https://www.youtube.com/user/skilarbabcock",
"deku_shield" : 0
}, {
"name" : "Twilight Princess",
"author" : "Skilarbabcock",
"url" : "https://www.youtube.com/user/skilarbabcock"
}, {
"name" : "A Link to the Past",
"author" : "Oni 3D-Arts",
Expand Down Expand Up @@ -136,6 +140,12 @@
"name" : "Twilight Princess",
"author" : "Skilarbabcock",
"url" : "https://www.youtube.com/user/skilarbabcock"
}, {
"name" : "Ocarina of Time 3D",
"author" : "Skilarbabcock",
"url" : "https://www.youtube.com/user/skilarbabcock",
"hylian_shield" : 0,
"mirror_shield" : 0
}, {
"name" : "Link's Awakening",
"author" : "Skilarbabcock",
Expand Down
Binary file not shown.
Binary file not shown.
33 changes: 22 additions & 11 deletions Files/Scripts/Bytes.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function ChangeBytes([string]$File, [string]$Offset, [object]$Values, [uint16]$Interval=1, [switch]$Add, [switch]$Subtract, [switch]$IsDec, [switch]$Overflow) {
function ChangeBytes([string]$File, [string]$Offset, [object]$Match=$null, [object]$Values, [uint16]$Interval=1, [switch]$Add, [switch]$Subtract, [switch]$IsDec, [switch]$Overflow) {

if ($Match -is [System.String]) { $Match = $Match -split ' ' }
if ($Values -is [System.String]) { $Values = $Values -split ' ' }
if (IsSet $File) { $ByteArrayGame = [System.IO.File]::ReadAllBytes($File) }
if ($Interval -lt 1) { $Interval = 1 }
Expand All @@ -17,6 +18,18 @@ function ChangeBytes([string]$File, [string]$Offset, [object]$Values, [uint16]$I
return $False
}

# Match
if ($Match -ne $null) {
foreach ($i in 0..($Match.Length-1)) {
try { [byte]$value = GetDecimal $Match[$i] }
catch {
WriteToConsole "Match value is negative!"
return $False
}
if ($ByteArrayGame[$Offset + $i] -ne $value) { return $True }
}
}

# Convert to Byte if needed
if ($IsDec) {
$arr = @()
Expand All @@ -31,21 +44,19 @@ function ChangeBytes([string]$File, [string]$Offset, [object]$Values, [uint16]$I
if ($IsDec) {
if ($Values[$i] -lt 0 -and $Overflow) { $Values[$i] = $Values[$i] + 255 }
elseif ($Values[$i] -gt 255 -and $Overflow) { $Values[$i] = $Values[$i] - 255 }
[byte]$Value = $Values[$i]
[byte]$value = $Values[$i]
}
else {
try {
[byte]$Value = GetDecimal $Values[$i]
}
try { [byte]$value = GetDecimal $Values[$i] }
catch {
WriteToConsole "Value is negative!"
return $False
}
}

if ($Add) { $ByteArrayGame[$Offset + ($i * $Interval)] += $Value }
elseif ($Subtract) { $ByteArrayGame[$Offset + ($i * $Interval)] -= $Value }
else { $ByteArrayGame[$Offset + ($i * $Interval)] = $Value }
if ($Add) { $ByteArrayGame[$Offset + ($i * $Interval)] += $value }
elseif ($Subtract) { $ByteArrayGame[$Offset + ($i * $Interval)] -= $value }
else { $ByteArrayGame[$Offset + ($i * $Interval)] = $value }
}

# Write to File
Expand Down Expand Up @@ -160,7 +171,7 @@ function ExportBytes([string]$File, [string]$Offset, [string]$End, [string]$Leng


#==============================================================================================================================================================================================
function SearchBytes([string]$File, [string]$Start="0", [string]$End, [object]$Values) {
function SearchBytes([string]$File, [string]$Start="0", [string]$End, [object]$Values, [switch]$Suppress) {

if ($values -is [System.String]) { $values = $values -split ' ' }

Expand Down Expand Up @@ -197,12 +208,12 @@ function SearchBytes([string]$File, [string]$Start="0", [string]$End, [object]$V
}
}
if ($Search -eq $True) {
WriteToConsole ("Found values at: " + (Get32Bit $i))
if (!$Suppress) { WriteToConsole ("Found values at: " + (Get32Bit $i)) }
return Get32Bit $i
}
}

WriteToConsole "Did not find searched values"
if (!$Suppress) { WriteToConsole "Did not find searched values" }
return -1;

}
Expand Down
1 change: 1 addition & 0 deletions Files/Scripts/Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ function ChangeGameMode() {
$GameFiles.downgrade = $GameFiles.Base + "\Downgrade"
$GameFiles.textures = $GameFiles.Base + "\Textures"
$GameFiles.editor = $GameFiles.Base + "\Editor"
$GameFiles.customText = $GameFiles.Base + "\Custom Text"
$GameFiles.info = $GameFiles.Base + "\Info.txt"
$GameFiles.patches = $GameFiles.Base + "\Patches.json"
$GameFiles.controls = $GameFiles.Base + "\Controls.json"
Expand Down
16 changes: 9 additions & 7 deletions Files/Scripts/Files.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ function SetFileParameters() {
$Files.oot.frontflip_jump = $Paths.Games + "\Ocarina of Time\Binaries\Jumps\frontflip.bin"
$Files.oot.somarsault_jump = $Paths.Games + "\Ocarina of Time\Binaries\Jumps\somarsault.bin"
$Files.oot.message_credits = $Paths.Games + "\Ocarina of Time\Binaries\Message\credits.bin"
$Files.oot.message_female_pronouns = $Paths.Games + "\Ocarina of Time\Binaries\Message\female_pronouns.tbl"
$Files.oot.message_mq1 = $Paths.Games + "\Ocarina of Time\Binaries\Message\mq_navi_action.bin"
$Files.oot.message_mq2 = $Paths.Games + "\Ocarina of Time\Binaries\Message\mq_navi_door.bin"
$Files.oot.message_restore = $Paths.Games + "\Ocarina of Time\Binaries\Message\restore.tbl"
$Files.oot.message_ruto_confession = $Paths.Games + "\Ocarina of Time\Binaries\Message\ruto_confession.bin"
$Files.oot.message_songs = $Paths.Games + "\Ocarina of Time\Binaries\Message\songs.bin"
$Files.oot.fire_temple_bank = $Paths.Games + "\Ocarina of Time\Binaries\Fire Temple Theme\audiobank_pointers.bin"
Expand All @@ -95,9 +93,11 @@ function SetFileParameters() {

$Files.oot.theme_fire_temple = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\audiobank_fire_temple")
$Files.oot.debug_map_select = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\debug_map_select")
$Files.oot.restore_text = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\restore")
$Files.oot.redux_text = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\redux")
$Files.oot.female_pronouns_text = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\female_pronouns")
$Files.oot.restore_text_static = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\restore_static")
$Files.oot.restore_text_table = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\restore_table")
$Files.oot.redux_text_static = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\redux_static")
$Files.oot.female_pronouns_text_static = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\female_pronouns_static")
$Files.oot.female_pronouns_text_table = CheckPatchExtension ($Paths.Games + "\Ocarina of Time\Export\Message\female_pronouns_table")

$Files.oot.gerudo1 = $Paths.Games + "\Ocarina of Time\Textures\Gerudo Symbols\crystal_switch.bin"
$Files.oot.gerudo2 = $Paths.Games + "\Ocarina of Time\Textures\Gerudo Symbols\dampe.bin"
Expand Down Expand Up @@ -158,7 +158,6 @@ function SetFileParameters() {
$Files.mm.message_razor_sword_2 = $Paths.Games + "\Majora's Mask\Binaries\Message\razor_sword_2.bin"
$Files.mm.message_razor_sword_3 = $Paths.Games + "\Majora's Mask\Binaries\Message\razor_sword_3.bin"
$Files.mm.message_razor_sword_4 = $Paths.Games + "\Majora's Mask\Binaries\Message\razor_sword_4.bin"
$Files.mm.message_restore = $Paths.Games + "\Majora's Mask\Binaries\Message\restore.tbl"

$Files.mm.southern_swamp_cleared = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Southern Swamp\southern_swamp_cleared_scene")
$Files.mm.southern_swamp_cleared_0 = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Southern Swamp\southern_swamp_cleared_room_0")
Expand All @@ -167,7 +166,10 @@ function SetFileParameters() {
$Files.mm.deku_palace_0 = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Deku Palace\deku_palace_room_0")
$Files.mm.deku_palace_1 = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Deku Palace\deku_palace_room_1")
$Files.mm.deku_palace_2 = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Deku Palace\deku_palace_room_2")
$Files.mm.restore_text = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Message\restore")
$Files.mm.text_master_quest_static = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Message\master_quest_static")
$Files.mm.text_master_quest_table = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Message\master_quest_table")
$Files.mm.text_restore_static = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Message\restore_static")
$Files.mm.text_restore_table = CheckPatchExtension ($Paths.Games + "\Majora's Mask\Export\Message\restore_table")



Expand Down
Loading

0 comments on commit b290a35

Please sign in to comment.