Skip to content

Commit 0957ae7

Browse files
committed
Merge branch 'main' of https://github.com/SuperDude88/TWWHD-Randomizer into barren-fix
2 parents 24ab586 + d01341a commit 0957ae7

71 files changed

Lines changed: 95 additions & 56 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_mac.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
uses: actions/checkout@v6
4040
with:
4141
submodules: recursive
42+
fetch-tags: true
4243

4344
- name: Install Qt
4445
uses: jurplel/install-qt-action@v4

.github/workflows/build_wiiu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
uses: actions/checkout@v6
3939
with:
4040
submodules: recursive
41+
fetch-tags: true
4142

4243
- name: Set Debug Flags
4344
if: inputs.build_type == 'Debug'

.github/workflows/build_windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
uses: actions/checkout@v6
4949
with:
5050
submodules: recursive
51+
fetch-tags: true
5152

5253
- name: Install Qt
5354
uses: jurplel/install-qt-action@v4

asm/patch_diffs/make_game_nonlinear_diff.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Data:
33
0x2190EF4: [0x48, 0x00, 0x00, 0x18]
44
0x219264C: [0x60, 0x00, 0x00, 0x00]
55
0x21A4B4C: [0x41, 0x82, 0x00, 0xDC]
6+
0x21B0BC0: [0x38, 0x60, 0x00, 0x03, 0x48, 0x36, 0xFE, 0xC1]
7+
0x21B51CC: [0x38, 0x60, 0x00, 0x03, 0x48, 0x36, 0xB8, 0xB5]
68
0x21CA1A8: [0x48, 0x00, 0x00, 0x68]
79
0x21CD230: [0x48, 0x00, 0x00, 0x68]
810
0x21F3F1C: [0x38, 0x60, 0x00, 0x01]
@@ -48,6 +50,8 @@ Data:
4850
0x237305C: [0x4B, 0xFF, 0xFF, 0x1C]
4951
0x2374648: [0x60, 0x00, 0x00, 0x00]
5052
0x23746CC: [0x60, 0x00, 0x00, 0x00]
53+
0x2386BA0: [0x38, 0x60, 0x00, 0x03, 0x48, 0x19, 0x9E, 0xE1]
54+
0x2387500: [0x38, 0x60, 0x00, 0x03, 0x48, 0x19, 0x95, 0x81]
5155
0x23A4A98: [0x60, 0x00, 0x00, 0x00]
5256
0x24731E8: [0x38, 0x60, 0x00, 0x01]
5357
0x247348C: [0x38, 0x60, 0x00, 0x01]
@@ -58,6 +62,7 @@ Data:
5862
0x24B22F4: [0x48, 0x44, 0x84, 0x24]
5963
0x24B2798: [0x48, 0x00, 0x00, 0x1C]
6064
0x24D4F1C: [0x60, 0x00, 0x00, 0x00]
65+
0x24EA7E8: [0x38, 0x60, 0x00, 0x03, 0x48, 0x03, 0x62, 0x99]
6166
0x25221F0: [0x4E, 0x80, 0x00, 0x20]
6267
0x25224A4: [0x4E, 0x80, 0x00, 0x20]
6368
0x2522C60: [0x4E, 0x80, 0x00, 0x20]

asm/patches/make_game_nonlinear.asm

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,3 +522,27 @@ tag_photo_check_lenzo_flag_order:
522522
b 0x024B22F8
523523
skip_setting_pictograph_gallery_flag:
524524
b 0x024B2300 ; Return without setting the next flag
525+
526+
527+
528+
; Change the wind in the pond area outside DRC to disappear once Gohma is defeated
529+
; Normally it checks for Din's Pearl
530+
.org 0x021B0BC0 ; in daKytag05_Create
531+
li r3, 3 ; DRC stage ID
532+
bl isStageBossEnemy
533+
; Also do the same for the quake (shake/vibration) triggers
534+
.org 0x02386BA0 ; in daObjQuake_c::_create
535+
li r3, 3 ; DRC stage ID
536+
bl isStageBossEnemy
537+
; Also do the same for the heat effect in the pond area
538+
.org 0x024EA7E8 ; in daYkgr_c::_create
539+
li r3, 3 ; DRC stage ID
540+
bl isStageBossEnemy
541+
; The cloud around DRI normally sets an event bit when it fades away (in the cutscene after warping out of DRC)
542+
; Change this to check for defeating Gohma too
543+
.org 0x02387500 ; in daObjRcloud_c::_create
544+
li r3, 3 ; DRC stage ID
545+
bl isStageBossEnemy
546+
.org 0x021B51CC ; in daLodbg_c::createModelData
547+
li r3, 3 ; DRC stage ID
548+
bl isStageBossEnemy

gui/desktop/generate_qrc_file.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,29 @@
55
import sys
66
import argparse
77

8+
import xml.etree.cElementTree as ET
9+
810
def main():
911
parser = argparse.ArgumentParser()
1012
parser.add_argument("data_dir")
1113
args = parser.parse_args(sys.argv[1:])
1214

1315
data_root = args.data_dir
1416
individual_files = []
15-
with open('data.qrc', 'w') as qrc:
16-
qrc.write('<RCC>\n')
17-
qrc.write(' <qresource prefix="/">\n')
18-
for root, dirs, files in os.walk(data_root):
19-
for file in files:
20-
f = os.path.join(root, file)
21-
if os.path.isfile(f):
22-
f = f.replace('\\', '/')
23-
individual_files.append(f)
2417

25-
for file in individual_files:
26-
embed_path = file.replace(data_root, '')
27-
qrc.write(' <file alias=\"' + embed_path + '\">' + file + '</file>\n')
18+
rcc = ET.Element("RCC")
19+
resources = ET.SubElement(rcc, "qresource", prefix="/")
20+
for root, dirs, files in os.walk(data_root):
21+
for file in files:
22+
f = os.path.join(root, file)
23+
if os.path.isfile(f):
24+
f = f.replace('\\', '/')
25+
individual_files.append(f)
26+
27+
for file in individual_files:
28+
embed_path = file.replace(data_root, '')
29+
ET.SubElement(resources, "file", alias=embed_path).text = file
2830

29-
qrc.write(' </qresource>\n')
30-
qrc.write('</RCC>')
31+
ET.ElementTree(rcc).write("data.qrc")
3132

3233
main()

gui/desktop/mainwindow.ui

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<string notr="true"/>
7070
</property>
7171
<property name="currentIndex">
72-
<number>6</number>
72+
<number>0</number>
7373
</property>
7474
<widget class="QWidget" name="getting_started_tab">
7575
<attribute name="title">
@@ -2462,13 +2462,16 @@ color: lightgray</string>
24622462
</property>
24632463
<property name="minimumSize">
24642464
<size>
2465-
<width>364</width>
2465+
<width>346</width>
24662466
<height>346</height>
24672467
</size>
24682468
</property>
24692469
<property name="cursor">
24702470
<cursorShape>ArrowCursor</cursorShape>
24712471
</property>
2472+
<property name="autoFillBackground">
2473+
<bool>true</bool>
2474+
</property>
24722475
<property name="styleSheet">
24732476
<string notr="true"/>
24742477
</property>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)