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;
|
|
|
|
|
|
|
|
$title = get_title($fullWidth, $fullHeight);
|
|
|
|
?>
|
|
|
|
[Definition]
|
|
|
|
titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00
|
|
|
|
name = "Xenoblade Chronicles X - <?=$title?>"
|
|
|
|
version = 2
|
|
|
|
|
2017-11-12 12:34:56 +01:00
|
|
|
[TextureRedefine] # increase colour depth
|
|
|
|
formats = 0x01a,0x008
|
|
|
|
replaceFormat 0x01f
|
|
|
|
|
|
|
|
[TextureRedefine] # increase colour depth
|
|
|
|
formats = 0x816
|
|
|
|
replaceFormat 0x823
|
|
|
|
|
|
|
|
[TextureRedefine] # increase colour depth
|
|
|
|
formats = 0x0810
|
|
|
|
replaceFormat 0x81e
|
|
|
|
|
2017-10-19 05:49:18 +02:00
|
|
|
[TextureRedefine] # tv
|
|
|
|
width = 1280
|
|
|
|
height = 720
|
2017-12-02 11:32:16 +01:00
|
|
|
formatsExcluded = 0x031 #NLA flyover XCX logo screen
|
2017-10-19 05:49:18 +02:00
|
|
|
tileModesExcluded = 0x001
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
|
|
|
|
2017-11-21 21:25:15 +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
|
2017-11-20 19:13:10 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*854)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*480)?>
|
2017-11-20 01:53:39 +01:00
|
|
|
|
2017-10-19 05:49:18 +02:00
|
|
|
[TextureRedefine] # half-res alpha
|
|
|
|
width = 640
|
|
|
|
height = 360
|
2017-11-12 12:34:56 +01:00
|
|
|
formatsExcluded = 0x41A,0x033,0x031,0x001 #dialog prompt fixes, XCX Logo NLA exclude obvious textures
|
2017-10-19 05:49:18 +02:00
|
|
|
tileModesExcluded = 0x001
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
|
|
|
|
|
|
|
[TextureRedefine] # q-res alpha (Previously not added due to potential conflict, please remove rule when using Xeno GCN4 workaround)
|
|
|
|
width = 320
|
|
|
|
height = 180
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
|
|
|
|
|
|
|
[TextureRedefine] # Gear menu
|
|
|
|
width = 1024
|
|
|
|
height = 720
|
2017-11-12 12:34:56 +01:00
|
|
|
formatsExcluded = 0x001 #in game movies, stasis
|
2017-10-19 05:49:18 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1024)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
|
|
|
|
|
|
|
[TextureRedefine] # Fog
|
|
|
|
width = 426
|
|
|
|
height = 240
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*426)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*240)?>
|
|
|
|
|
|
|
|
// vvvv credits to Getdls & GITech vvvv //
|
|
|
|
|
|
|
|
[TextureRedefine] # Sun, Light Sources (plants, armor etc)
|
|
|
|
width = 512
|
|
|
|
height = 288
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*512)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*288)?>
|
|
|
|
|
2017-11-27 23:05:06 +01:00
|
|
|
[TextureRedefine] # "God rays" stencil res, lens reflections.
|
|
|
|
width = 256
|
|
|
|
height = 144
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*256)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*144)?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
|
|
|
[TextureRedefine]# Probe glow. Does not increase sample amount, only scales up
|
|
|
|
width = 160
|
|
|
|
height = 90
|
2017-11-12 12:34:56 +01:00
|
|
|
#formatsExcluded = 0x816 #fixed in shader
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90)?>
|
2017-10-19 05:49:18 +02:00
|
|
|
|
2017-11-21 21:25:15 +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
|
2017-11-12 12:34:56 +01:00
|
|
|
#formatsExcluded = 0x816 #fixed in shader
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*80)?>
|
2017-11-21 21:25:15 +01:00
|
|
|
overwriteHeight = <?=round($scaleFactorY*45)?>
|