Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ultrawide 21:9 Gecko Code #126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb58
################################################################################

.float 0.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 80086b24
################################################################################

nop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb30
################################################################################

.float 0.9
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb34
################################################################################

.float -0.9
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb2c
################################################################################

.float -230
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb28
################################################################################

.float 230
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb4c
################################################################################

.float 0.071
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 80030C7C
################################################################################

li r0,0+100
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 80030C88
################################################################################

li r0,640-100
5 changes: 5 additions & 0 deletions External/Ultrawide/Fix Screen Flash.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 803BB05C
################################################################################

.float 0.34375
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
################################################################################
# Address: 802fcfc4
################################################################################

#Override X Scale
bl Floats
mflr r3
lfs f0,0x0(r3)
b END

Floats:
blrl
.float 6.89

END:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
################################################################################
# Address: 804ddb84
################################################################################

.float 0.2695234375
26 changes: 26 additions & 0 deletions External/Ultrawide/Overwrite CObj Values.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
################################################################################
# Address: 8036A4A8
################################################################################
.include "../../Common/Common.s"

# initialize widescreen
li r3, 1
stb r3, isWidescreen(r13)

lfs f1,0x34(r31) # default code line

bl Floats
mflr r3
lfs f2,0x0(r3)
lfs f3,0x4(r3)
fmuls f1,f1,f2
fdivs f1,f1,f3

b END

Floats:
blrl
.float 420 # 21 / 16 = 1.3125, 320 * 1.3125 = 420
.float 219

END:
28 changes: 28 additions & 0 deletions Output/Netplay/GALE01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6840,6 +6840,34 @@ C0030000 4800000C
60000000 00000000
044DDB84 3E89FEFA #External/Widescreen/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Ultrawide 21:9 [sharlot, Dan Salvato, mirrorbender, Achilles1515, UnclePunch]
*Set Aspect Ratio to "Stretch to Window" in Graphics for 21:9 monitors ----------------------
*Will not cause desyncs when playing online
043BB05C 3EB00000 #External/Ultrawide/Fix Screen Flash.asm
C236A4A8 00000007 #External/Ultrawide/Overwrite CObj Values.asm
38600001 986DAFE0
C03F0034 4800001D
7C6802A6 C0430000
C0630004 EC2100B2
EC211824 48000010
4E800021 43D20000
435B0000 00000000
044DDB58 3E4CCCCD #External/Ultrawide/Adjust Offscreen Scissor/Adjust Bubble Zoom.asm
04086B24 60000000 #External/Ultrawide/Adjust Offscreen Scissor/Draw High Poly Models.asm
04030C7C 38000064 #External/Ultrawide/Adjust Offscreen Scissor/Left Camera Bound.asm
04030C88 3800021C #External/Ultrawide/Adjust Offscreen Scissor/Right Camera Bound.asm
044DDB30 3F666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 1.asm
044DDB34 BF666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 2.asm
044DDB2C C3660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Negative Vertical Bound.asm
044DDB28 43660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Positive Vertical Bound.asm
044DDB4C 3D916873 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Widen Bubble Region.asm
C22FCFC4 00000004 #External/Ultrawide/Nametag Fixes/Adjust Nametag Background X Scale.asm
48000011 7C6802A6
C0030000 4800000C
4E800021 40DC7AE1
60000000 00000000
044DDB84 3E89FEFA #External/Ultrawide/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Disable Screen Shake [Achilles1515]
*Will prevent screen from shaking on hits, KOs, collisions, etc -----------------------
*Will not cause desyncs when playing online
Expand Down
28 changes: 28 additions & 0 deletions Output/Netplay/GALJ01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6839,6 +6839,34 @@ C0030000 4800000C
60000000 00000000
044DDB84 3E89FEFA #External/Widescreen/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Ultrawide 21:9 [sharlot, Dan Salvato, mirrorbender, Achilles1515, UnclePunch]
*Set Aspect Ratio to "Stretch to Window" in Graphics for 21:9 monitors ----------------------
*Will not cause desyncs when playing online
043BB05C 3EB00000 #External/Ultrawide/Fix Screen Flash.asm
C236A4A8 00000007 #External/Ultrawide/Overwrite CObj Values.asm
38600001 986DAFE0
C03F0034 4800001D
7C6802A6 C0430000
C0630004 EC2100B2
EC211824 48000010
4E800021 43D20000
435B0000 00000000
044DDB58 3E4CCCCD #External/Ultrawide/Adjust Offscreen Scissor/Adjust Bubble Zoom.asm
04086B24 60000000 #External/Ultrawide/Adjust Offscreen Scissor/Draw High Poly Models.asm
04030C7C 38000064 #External/Ultrawide/Adjust Offscreen Scissor/Left Camera Bound.asm
04030C88 3800021C #External/Ultrawide/Adjust Offscreen Scissor/Right Camera Bound.asm
044DDB30 3F666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 1.asm
044DDB34 BF666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 2.asm
044DDB2C C3660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Negative Vertical Bound.asm
044DDB28 43660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Positive Vertical Bound.asm
044DDB4C 3D916873 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Widen Bubble Region.asm
C22FCFC4 00000004 #External/Ultrawide/Nametag Fixes/Adjust Nametag Background X Scale.asm
48000011 7C6802A6
C0030000 4800000C
4E800021 40DC7AE1
60000000 00000000
044DDB84 3E89FEFA #External/Ultrawide/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Disable Screen Shake [Achilles1515]
*Will prevent screen from shaking on hits, KOs, collisions, etc -----------------------
*Will not cause desyncs when playing online
Expand Down
28 changes: 28 additions & 0 deletions Output/Playback/GALE01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,34 @@ C0030000 4800000C
043761EC 4800001C #Normal Lag Reduction [Hannes Mann]
04376238 48000018

$Optional: Ultrawide 21:9 [sharlot, Dan Salvato, mirrorbender, Achilles1515, UnclePunch]
*Set Aspect Ratio to "Stretch to Window" in Graphics for 21:9 monitors ----------------------
*Will not cause desyncs when playing online
043BB05C 3EB00000 #External/Ultrawide/Fix Screen Flash.asm
C236A4A8 00000007 #External/Ultrawide/Overwrite CObj Values.asm
38600001 986DAFE0
C03F0034 4800001D
7C6802A6 C0430000
C0630004 EC2100B2
EC211824 48000010
4E800021 43D20000
435B0000 00000000
044DDB58 3E4CCCCD #External/Ultrawide/Adjust Offscreen Scissor/Adjust Bubble Zoom.asm
04086B24 60000000 #External/Ultrawide/Adjust Offscreen Scissor/Draw High Poly Models.asm
04030C7C 38000064 #External/Ultrawide/Adjust Offscreen Scissor/Left Camera Bound.asm
04030C88 3800021C #External/Ultrawide/Adjust Offscreen Scissor/Right Camera Bound.asm
044DDB30 3F666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 1.asm
044DDB34 BF666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 2.asm
044DDB2C C3660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Negative Vertical Bound.asm
044DDB28 43660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Positive Vertical Bound.asm
044DDB4C 3D916873 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Widen Bubble Region.asm
C22FCFC4 00000004 #External/Ultrawide/Nametag Fixes/Adjust Nametag Background X Scale.asm
48000011 7C6802A6
C0030000 4800000C
4E800021 40DC7AE1
60000000 00000000
044DDB84 3E89FEFA #External/Ultrawide/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Disable Screen Shake [Achilles1515]
*Disables all screen shaking
04030E44 4E800020 #External/Disable Screen Shake/Disable Screen Shake.asm
Expand Down
28 changes: 28 additions & 0 deletions Output/Playback/GALJ01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,34 @@ C0030000 4800000C
043761EC 4800001C #Normal Lag Reduction [Hannes Mann]
04376238 48000018

$Optional: Ultrawide 21:9 [sharlot, Dan Salvato, mirrorbender, Achilles1515, UnclePunch]
*Set Aspect Ratio to "Stretch to Window" in Graphics for 21:9 monitors ----------------------
*Will not cause desyncs when playing online
043BB05C 3EB00000 #External/Ultrawide/Fix Screen Flash.asm
C236A4A8 00000007 #External/Ultrawide/Overwrite CObj Values.asm
38600001 986DAFE0
C03F0034 4800001D
7C6802A6 C0430000
C0630004 EC2100B2
EC211824 48000010
4E800021 43D20000
435B0000 00000000
044DDB58 3E4CCCCD #External/Ultrawide/Adjust Offscreen Scissor/Adjust Bubble Zoom.asm
04086B24 60000000 #External/Ultrawide/Adjust Offscreen Scissor/Draw High Poly Models.asm
04030C7C 38000064 #External/Ultrawide/Adjust Offscreen Scissor/Left Camera Bound.asm
04030C88 3800021C #External/Ultrawide/Adjust Offscreen Scissor/Right Camera Bound.asm
044DDB30 3F666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 1.asm
044DDB34 BF666666 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Adjust Corner Value 2.asm
044DDB2C C3660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Negative Vertical Bound.asm
044DDB28 43660000 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Extend Positive Vertical Bound.asm
044DDB4C 3D916873 #External/Ultrawide/Adjust Offscreen Scissor/Fix Bubble Positions/Widen Bubble Region.asm
C22FCFC4 00000004 #External/Ultrawide/Nametag Fixes/Adjust Nametag Background X Scale.asm
48000011 7C6802A6
C0030000 4800000C
4E800021 40DC7AE1
60000000 00000000
044DDB84 3E89FEFA #External/Ultrawide/Nametag Fixes/Adjust Nametag Text X Scale.asm

$Optional: Disable Screen Shake [Achilles1515]
*Disables all screen shaking
04030E44 4E800020 #External/Disable Screen Shake/Disable Screen Shake.asm
Expand Down
22 changes: 22 additions & 0 deletions netplay.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,28 @@
}
]
},
{
"name": "Optional: Ultrawide 21:9",
"authors": [
"sharlot",
"Dan Salvato",
"mirrorbender",
"Achilles1515",
"UnclePunch"
],
"description": [
"Set Aspect Ratio to \"Stretch to Window\" in Graphics for 21:9 monitors ---------------------- ",
"Will not cause desyncs when playing online"
],
"build": [
{
"type": "injectFolder",
"sourceFolder": "External/Ultrawide",
"isRecursive": true,
"annotation": "Ultrawide 21:9"
}
]
},
{
"name": "Optional: Disable Screen Shake",
"authors": [
Expand Down
22 changes: 22 additions & 0 deletions playback.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,28 @@
}
]
},
{
"name": "Optional: Ultrawide 21:9",
"authors": [
"sharlot",
"Dan Salvato",
"mirrorbender",
"Achilles1515",
"UnclePunch"
],
"description": [
"Set Aspect Ratio to \"Stretch to Window\" in Graphics for 21:9 monitors ---------------------- ",
"Will not cause desyncs when playing online"
],
"build": [
{
"type": "injectFolder",
"sourceFolder": "External/Ultrawide",
"isRecursive": true,
"annotation": "Ultrawide 21:9"
}
]
},
{
"name": "Optional: Disable Screen Shake",
"authors": [
Expand Down