2017-10-19 05:49:18 +02:00
|
|
|
<?php
|
|
|
|
include 'Source/functions.php';
|
|
|
|
$fullWidth = $argv[1];
|
|
|
|
$fullHeight = $argv[2];
|
|
|
|
$scaleFactorX = $fullWidth / 1280.0;
|
|
|
|
$scaleFactorY = $fullHeight / 720.0;
|
2018-01-20 18:39:39 +01:00
|
|
|
|
2017-10-19 05:49:18 +02:00
|
|
|
$title = get_title($fullWidth, $fullHeight);
|
|
|
|
?>
|
|
|
|
[Definition]
|
2018-01-20 18:39:39 +01:00
|
|
|
titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00
|
|
|
|
name = "Xenoblade Chronicles X - <?=$title?>"
|
2017-10-19 05:49:18 +02:00
|
|
|
version = 2
|
|
|
|
|
2018-02-03 12:44:48 +01:00
|
|
|
[TextureRedefine] # increase colour depth, slower but less banding
|
|
|
|
formats = 0x816
|
|
|
|
overwriteFormat = 0x820
|
2018-01-20 18:39:39 +01:00
|
|
|
|
2018-02-03 12:44:48 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
formats = 0x810
|
|
|
|
overwriteFormat = 0x81e
|
2018-01-20 18:39:39 +01:00
|
|
|
|
2018-02-03 12:44:48 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
formats = 0x806
|
|
|
|
overwriteFormat = 0x80e
|
2018-01-20 18:39:39 +01:00
|
|
|
|
2018-02-03 12:44:48 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
formats = 0x007
|
|
|
|
overwriteFormat = 0x00f
|
2018-01-23 23:12:14 +01:00
|
|
|
|
2018-02-03 12:44:48 +01:00
|
|
|
formats = 0x19,0x1a
|
|
|
|
overwriteFormat = 0x1f
|
|
|
|
tileModesExcluded = 0x001
|
|
|
|
|
|
|
|
[TextureRedefine] #
|
|
|
|
width = 320
|
|
|
|
height = 180
|
|
|
|
formats = 0x19
|
|
|
|
overwriteFormat = 0x823
|
|
|
|
|
|
|
|
[TextureRedefine] #
|
|
|
|
width = 320
|
|
|
|
height = 180
|
|
|
|
formats = 0x1a
|
|
|
|
overwriteFormat = 0x823
|
|
|
|
|
|
|
|
#[TextureRedefine] #lod override, shimmer and possible sharper textures
|
|
|
|
#formats = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435
|
|
|
|
#overwriteRelativeLodBias = -1 # don't reccomend more than -1
|
2018-01-23 23:12:14 +01:00
|
|
|
|
2018-03-04 03:10:33 +01:00
|
|
|
[TextureRedefine] #0x01a, super sampling
|
|
|
|
formats = 0x005,0x01a
|
|
|
|
overwriteRelativeLodBias = -16 #
|
|
|
|
|
2018-01-20 18:39:39 +01:00
|
|
|
[TextureRedefine] # tv
|
2017-10-19 05:49:18 +02:00
|
|
|
width = 1280
|
|
|
|
height = 720
|
2018-01-20 18:39:39 +01:00
|
|
|
formatsExcluded = 0x031 #NLA flyover XCX logo screen
|
|
|
|
tileModesExcluded = 0x001
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] #XCX shadow
|
|
|
|
width = 1024
|
|
|
|
height = 1024
|
|
|
|
formats = 0x005
|
2018-02-20 18:04:19 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorY)*1024?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY)*1024?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine] # Gear menu
|
|
|
|
width = 1024
|
|
|
|
height = 720
|
|
|
|
formatsExcluded = 0x001 #in game movies, stasis
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*1024)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
|
|
|
|
2018-01-20 18:39:39 +01:00
|
|
|
[TextureRedefine] # Do not remove, must be upscaled with same factor as TV or probe view breaks
|
2017-11-20 01:53:39 +01:00
|
|
|
width = 854
|
|
|
|
height = 480
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*854)?>
|
2018-01-20 18:39:39 +01:00
|
|
|
overwriteHeight = <?=round($scaleFactorY*480)?>
|
2017-11-20 01:53:39 +01:00
|
|
|
|
2018-01-20 18:39:39 +01:00
|
|
|
[TextureRedefine] # half-res alpha
|
2017-10-19 05:49:18 +02:00
|
|
|
width = 640
|
|
|
|
height = 360
|
2018-03-01 19:05:35 +01:00
|
|
|
formatsExcluded = 0x41A,0x033,0x031 #dialog prompt fixes, XCX Logo NLA exclude obvious textures
|
2018-01-20 18:39:39 +01:00
|
|
|
tileModesExcluded = 0x001
|
2018-03-18 17:54:08 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640 * 2 / 1.5)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY)*360*(2/1.5)?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] #XCX Dynamic shadow scale both same for smoother transitions
|
|
|
|
width = 512
|
|
|
|
height = 512
|
|
|
|
formats = 0x005
|
2018-02-20 18:04:19 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorY)*1024?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY)*1024?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] # Sun, Light Sources (plants, armor etc)
|
|
|
|
width = 512
|
|
|
|
height = 288
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*512*(2/1.5))?>
|
2018-03-18 17:54:08 +01:00
|
|
|
overwriteHeight = <?=round($scaleFactorY)*(288*(2/1.5))?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
2018-01-20 18:39:39 +01:00
|
|
|
[TextureRedefine] # Fog
|
|
|
|
width = 426
|
2017-10-19 05:49:18 +02:00
|
|
|
height = 240
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360*(2/1.5))?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] # q-res alpha (Previously not added due to potential conflict, please remove rule when using Xeno GCN4 workaround)
|
|
|
|
width = 320
|
|
|
|
height = 180
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180*(2/1.5))?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine]
|
|
|
|
width = 261
|
|
|
|
height = 223
|
|
|
|
#formatsExcluded =
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*261*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*223*(2/1.5))?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 256
|
|
|
|
height = 180
|
|
|
|
#formatsExcluded =
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*256*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180*(2/1.5))?>
|
2018-01-20 18:32:48 +01:00
|
|
|
|
2018-01-20 18:39:39 +01:00
|
|
|
[TextureRedefine] # "God rays" stencil res, lens reflections.
|
|
|
|
width = 256
|
|
|
|
height = 144
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*256*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*144*(2/1.5))?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
#[TextureRedefine] # lod switch dithering, don't scale
|
|
|
|
#width = 256
|
|
|
|
#height = 8
|
|
|
|
#formats = 0x01a # verify not to scale.
|
|
|
|
|
|
|
|
#[TextureRedefine] # lod switch dithering, don't scale
|
|
|
|
#width = 256
|
|
|
|
#height = 4
|
|
|
|
#formats = 0x01a # verify not to scale.
|
|
|
|
|
2018-01-20 18:32:48 +01:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
width = 255
|
|
|
|
height = 255
|
2018-01-22 21:36:29 +01:00
|
|
|
formats = 0x810 # 0x01a, PR screen NLA
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*255)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*255)?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine]# Probe glow.
|
2018-01-20 18:39:39 +01:00
|
|
|
width = 160
|
|
|
|
height = 90
|
|
|
|
#formatsExcluded = 0x816 #fixed in shader
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*160*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90*(2/1.5))?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 128
|
|
|
|
height = 128
|
|
|
|
formats = 0x806
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*128)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*128)?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 128
|
|
|
|
height = 90
|
|
|
|
#formatsExcluded =
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*128*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90*(2/1.5))?>
|
2018-01-20 18:39:39 +01:00
|
|
|
|
|
|
|
[TextureRedefine]# should up-scale from 35 to keep aligment with other 16:9 buffers
|
2017-10-19 05:49:18 +02:00
|
|
|
width = 80
|
|
|
|
height = 46
|
2018-01-20 18:39:39 +01:00
|
|
|
#formatsExcluded = 0x816 #fixed in shader
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*80*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*45*(2/1.5))?>
|
2018-01-20 18:39:39 +01:00
|
|
|
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
width = 64
|
|
|
|
height = 64
|
|
|
|
formats = 0x816,0x820 #001a includes cube breaks if scaled
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*64)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*64)?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 64
|
|
|
|
height = 46
|
|
|
|
#formatsExcluded =
|
2018-03-18 17:07:18 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*64*(2/1.5))?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*46*(2/1.5))?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
[TextureRedefine] #
|
|
|
|
height = 32
|
|
|
|
height = 32
|
|
|
|
formats = 0x806 #001a includes cube breaks flashlight scene
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*32)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*32)?>
|
[XCX] scaling 806,820
Scaling 32,x32 8 etc if not
0x031,0x032,0x033,0x034,0x431,0x432,0x433,0x434,0x435,0x081
2018-01-21 22:10:15 +01:00
|
|
|
|
|
|
|
#[TextureRedefine] #grading don't scale
|
|
|
|
#width = 16
|
|
|
|
#height = 16
|
|
|
|
#formatsExcluded =
|
|
|
|
#overwriteWidth = 16
|
|
|
|
#overwriteHeight = 16
|
|
|
|
|
|
|
|
[TextureRedefine] #
|
|
|
|
width = 8
|
|
|
|
height = 8
|
|
|
|
formats = 0x806
|
2018-01-21 22:23:14 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*8)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*8)?>
|