From cc9041718d0ee63d7388f211c37827726000da95 Mon Sep 17 00:00:00 2001 From: Flextape05 <162949034+Flextape05@users.noreply.github.com> Date: Wed, 25 Dec 2024 21:40:38 +0100 Subject: [PATCH] [Skylanders Trap Team] Add ultrawide monitor support Thanks to @Flextape05 for this addition! --- src/SkylandersTrapTeam/Graphics/patches.txt | 14 +++ src/SkylandersTrapTeam/Graphics/rules.txt | 115 +++++++++++++++++++- 2 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 src/SkylandersTrapTeam/Graphics/patches.txt diff --git a/src/SkylandersTrapTeam/Graphics/patches.txt b/src/SkylandersTrapTeam/Graphics/patches.txt new file mode 100644 index 00000000..9cd1b413 --- /dev/null +++ b/src/SkylandersTrapTeam/Graphics/patches.txt @@ -0,0 +1,14 @@ +[tfbgame_cafe16] +moduleMatches = 0x2a14bb42 +0x10006864 = .float $width/$height #Main aspect ratio +0x10006860 = .float $hudY +0x1000685c = .float $hudX +0x1005d808 = .float $fov + +[tfbgame_cafe0] +moduleMatches = 0x321d97f0 +0x10006864 = .float $width/$height #Main aspect ratio +0x10006860 = .float $hudY +0x1000685c = .float $hudX +0x1005d808 = .float $fov + diff --git a/src/SkylandersTrapTeam/Graphics/rules.txt b/src/SkylandersTrapTeam/Graphics/rules.txt index 5b04afb8..dcf15443 100644 --- a/src/SkylandersTrapTeam/Graphics/rules.txt +++ b/src/SkylandersTrapTeam/Graphics/rules.txt @@ -2,7 +2,7 @@ titleIds = 000500001017C600,0005000010181F00 name = Game Resolution and Shadow Quality path = "Skylanders Trap Team/Graphics" -description = Changes the resolution of the game and the quality of the shadows.||Made by Crementif. +description = Changes the resolution of the game and the quality of the shadows.||Made by Crementif.Aspect ratio patch made by Flextape05 version = 5 [Default] @@ -11,7 +11,9 @@ $height = 720 $gameWidth = 1280 $gameHeight = 720 $shadowRes = 1 - +$hudY = 720 +$hudX = 1280 +$fov = 0.017453292 # Resolution @@ -73,8 +75,113 @@ name = 7680x4320 $width = 7680 $height = 4320 +[Preset] +category = Resolution +name = 2560x1080(21:9) +$width = 2560 +$height = 1080 +$hudY = 720 +$hudX = 1720 +$fov = 0.0163 -# Shadow Quality +[Preset] +category = Resolution +name = 3440x1440(21:9) +$width = 3440 +$height = 1440 +$hudY = 720 +$hudX = 1720 +$fov = 0.0163 + +[Preset] +category = Resolution +name = 5120x2160(21:9) +$width = 5120 +$height = 2160 +$hudY = 720 +$hudX = 1720 +$fov = 0.0163 + +[Preset] +category = Resolution +name = 3840x1080(32:9)(broken shadows) +$width = 3840 +$height = 1080 +$hudY = 720 +$hudX = 2560 +$fov = 0.013 + +[Preset] +category = Resolution +name = 5120x1440(32:9)(broken shadows) +$width = 5120 +$height = 1440 +$hudY = 720 +$hudX = 2560 +$fov = 0.013 + +[Preset] +category = Resolution +name = 640x480(4:3) +$width = 640 +$height = 480 +$hudY = 768 +$hudX = 1024 +$fov = 0.019053293 + +[Preset] +category = Resolution +name = 1024x768(4:3) +$width = 1024 +$height = 768 +$hudY = 768 +$hudX = 1024 +$fov = 0.019053293 + +[Preset] +category = Resolution +name = 1600x1200(4:3) +$width = 1600 +$height = 1200 +$hudY = 768 +$hudX = 1024 +$fov = 0.019053293 + +[Preset] +category = Resolution +name = 1280x800(16:10) +$width = 1280 +$height = 800 +$hudY = 800 +$hudX = 1280 +$fov = 0.018353293 + +[Preset] +category = Resolution +name = 1680x1050(16:10) +$width = 1680 +$height = 1050 +$hudY = 800 +$hudX = 1280 +$fov = 0.018353293 + +[Preset] +category = Resolution +name = 1920x1200(16:10) +$width = 1920 +$height = 1200 +$hudY = 800 +$hudX = 1280 +$fov = 0.018353293 + +[Preset] +category = Resolution +name = 2560x1600(16:10) +$width = 2560 +$height = 1600 +$hudY = 800 +$hudX = 1280 +$fov = 0.018353293 [Preset] category = Shadow Quality @@ -100,8 +207,6 @@ category = Shadow Quality name = Extreme (400%, Unstable) $shadowRes = 4 - - # Texture Redefines [TextureRedefine] # Game output and hud resolution