Skip to content

Commit c5bb44a

Browse files
authored
[Skylanders Trap Team] HUD, blur filter removal and more (#674)
Thanks to @Flextape05 for his work on these additions!
1 parent 2386f8e commit c5bb44a

Some content is hidden

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

42 files changed

+1925
-168
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#version 460
2+
3+
// Define uniform binding for Vulkan and OpenGL compatibility
4+
#ifdef VULKAN
5+
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
6+
#else
7+
uniform sampler2D textureUnitPS0;
8+
#endif
9+
10+
// Input and output locations
11+
layout(location = 0) in vec2 passUV;
12+
layout(location = 0) out vec4 passPixelColor0;
13+
14+
void main()
15+
{
16+
passPixelColor0 = texture(textureUnitPS0, passUV);
17+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Definition]
2+
titleIds = 000500001010D700,0005000010116000
3+
name = Bloom removal
4+
path = "Skylanders: Giants/Enhancements/Bloom removal"
5+
description = Removes the bloom when playing the game||Made by Flextape05
6+
version = 6
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#version 460
2+
3+
// Define uniform binding for Vulkan and OpenGL compatibility
4+
#ifdef VULKAN
5+
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
6+
#else
7+
uniform sampler2D textureUnitPS0;
8+
#endif
9+
10+
// Input and output locations
11+
layout(location = 0) in vec2 passUV;
12+
layout(location = 0) out vec4 passPixelColor0;
13+
14+
void main()
15+
{
16+
passPixelColor0 = texture(textureUnitPS0, passUV);
17+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Definition]
2+
titleIds = 000500001010D700,0005000010116000
3+
name = Blur filter removal
4+
path = "Skylanders: Giants/Enhancements/Blur filter removal"
5+
description = Removes the muddy blur AA when playing the game||Made by Flextape05
6+
version = 6
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#version 460
2+
3+
// Define uniform binding for Vulkan and OpenGL compatibility
4+
#ifdef VULKAN
5+
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
6+
#else
7+
uniform sampler2D textureUnitPS0;
8+
#endif
9+
10+
// Input and output locations
11+
layout(location = 0) in vec2 passUV;
12+
layout(location = 0) out vec4 passPixelColor0;
13+
14+
void main()
15+
{
16+
passPixelColor0 = texture(textureUnitPS0, passUV);
17+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Definition]
2+
titleIds = 000500001010D700,0005000010116000
3+
name = BackgroundBlur Removal
4+
path = "Skylanders: Giants/Enhancements/DOF removal"
5+
description = disables the games backbground blur||Made by Flextape05
6+
version = 6
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#version 460
2+
3+
layout(set = 1, binding = 1, std140) uniform ufBlock
4+
{
5+
ivec4 uf_remappedPS[3];
6+
float uf_alphaTestRef; // Threshold for alpha testing
7+
vec4 uf_fragCoordScale;
8+
} _86;
9+
10+
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
11+
12+
layout(location = 0) in vec4 passParameterSem128;
13+
layout(location = 1) in vec4 passParameterSem129;
14+
layout(location = 0) out vec4 passPixelColor0;
15+
16+
void main()
17+
{
18+
// Set the fragment color to fully transparent
19+
passPixelColor0 = vec4(0.0, 0.0, 0.0, 0.0);
20+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Definition]
2+
titleIds = 000500001010D700,0005000010116000
3+
name = No HUD
4+
path = "Skylanders: Giants/Enhancements/No HUD"
5+
description = Removes the HUD from the game (breaks the menus)||Made by Flextape05
6+
version = 6
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tfbgame_gold0EU]
2+
moduleMatches = 0x62cc63a5
3+
0x10007e18 = .float $width/$height
4+
0x10007e10 = .float $hudX
5+
0x10007e14 = .float $hudY
6+
0x10007c00 = .float $fov
7+
8+
[tfbgame_gold0US]
9+
moduleMatches = 0x71e3cf7e
10+
0x10007e18 = .float $width/$height
11+
0x10007e10 = .float $hudX
12+
0x10007e14 = .float $hudY
13+
0x10007c00 = .float $fov

src/SkylandersGiants/Graphics/rules.txt

Lines changed: 141 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,28 @@
22
titleIds = 000500001010D700,0005000010116000
33
name = Resolution
44
path = "Skylanders: Giants/Graphics"
5-
description = Changes the resolution of the game.
5+
description = Changes the resolution of the game.||Aspect ratio patch Made by Flextape05
6+
67
version = 7
78

89
[Default]
910
$width = 1280
1011
$height = 720
1112
$gameWidth = 1280
1213
$gameHeight = 720
13-
14+
$padWidth = 854
15+
$padHeight = 480
16+
$shadowRes = 1
17+
$hudY = 720
18+
$hudX = 1280
19+
$fov = 57.29578
1420

1521
# Resolution
22+
[Preset]
23+
category = Resolution
24+
name = 1280x720 (Default)
25+
$width = 1280
26+
$height = 720
1627

1728
[Preset]
1829
category = Resolution
@@ -28,8 +39,9 @@ $height = 540
2839

2940
[Preset]
3041
category = Resolution
31-
name = 1280x720 (Default)
32-
default = 1
42+
name = 1024x576
43+
$width = 1024
44+
$height = 576
3345

3446
[Preset]
3547
category = Resolution
@@ -73,6 +85,131 @@ name = 7680x4320
7385
$width = 7680
7486
$height = 4320
7587

88+
[Preset]
89+
category = Resolution
90+
name = 2560x1080(21:9)
91+
$width = 2560
92+
$height = 1080
93+
$hudY = 720
94+
$hudX = 1720
95+
$fov = 48.29578
96+
97+
[Preset]
98+
category = Resolution
99+
name = 3440x1440(21:9)
100+
$width = 3440
101+
$height = 1440
102+
$hudY = 720
103+
$hudX = 1720
104+
$fov = 48.29578
105+
106+
[Preset]
107+
category = Resolution
108+
name = 5120x2160(21:9)
109+
$width = 5120
110+
$height = 2160
111+
$hudY = 720
112+
$hudX = 1720
113+
$fov = 48.29578
114+
115+
[Preset]
116+
category = Resolution
117+
name = 3840x1080(32:9)
118+
$width = 3840
119+
$height = 1080
120+
$hudY = 720
121+
$hudX = 2560
122+
$fov = 36.19578
123+
124+
[Preset]
125+
category = Resolution
126+
name = 5120x1440(32:9)
127+
$width = 5120
128+
$height = 1440
129+
$hudY = 720
130+
$hudX = 2560
131+
$fov = 36.19578
132+
133+
[Preset]
134+
category = Resolution
135+
name = 5760x1080(48:9)
136+
$width = 5760
137+
$height = 1080
138+
$hudY = 720
139+
$hudX = 3840
140+
$fov = 42.39578
141+
142+
[Preset]
143+
category = Resolution
144+
name = 7680x1440(48:9)
145+
$width = 7680
146+
$height = 1440
147+
$hudY = 720
148+
$hudX = 3840
149+
$fov = 42.39578
150+
151+
[Preset]
152+
category = Resolution
153+
name = 640x480(4:3)
154+
$width = 640
155+
$height = 480
156+
$hudY = 768
157+
$hudX = 1024
158+
$fov = 0.0039215689
159+
160+
[Preset]
161+
category = Resolution
162+
name = 1024x768(4:3)
163+
$width = 1024
164+
$height = 768
165+
$hudY = 768
166+
$hudX = 1024
167+
$fov = 0.0039215689
168+
169+
[Preset]
170+
category = Resolution
171+
name = 1600x1200(4:3)
172+
$width = 1600
173+
$height = 1200
174+
$hudY = 768
175+
$hudX = 1024
176+
$fov = 0.0039215689
177+
178+
[Preset]
179+
category = Resolution
180+
name = 1280x800(16:10)
181+
$width = 1280
182+
$height = 800
183+
$hudY = 800
184+
$hudX = 1280
185+
$fov = 59.39578
186+
187+
[Preset]
188+
category = Resolution
189+
name = 1680x1050(16:10)
190+
$width = 1680
191+
$height = 1050
192+
$hudY = 800
193+
$hudX = 1280
194+
$fov = 59.39578
195+
196+
[Preset]
197+
category = Resolution
198+
name = 1920x1200(16:10)
199+
$width = 1920
200+
$height = 1200
201+
$hudY = 800
202+
$hudX = 1280
203+
$fov = 59.39578
204+
205+
[Preset]
206+
category = Resolution
207+
name = 2560x1600(16:10)
208+
$width = 2560
209+
$height = 1600
210+
$hudY = 800
211+
$hudX = 1280
212+
$fov = 59.39578
76213

77214
[TextureRedefine]
78215
width = 1280

0 commit comments

Comments
 (0)