2017-10-18 06:59:41 +02:00
|
|
|
<?php
|
2017-10-18 08:46:57 +02:00
|
|
|
include 'Source/functions.php';
|
2017-10-18 06:59:41 +02:00
|
|
|
$fullWidth = $argv[1];
|
|
|
|
$fullHeight = $argv[2];
|
|
|
|
$scaleFactorX = $fullWidth / 1280.0;
|
|
|
|
$scaleFactorY = $fullHeight / 720.0;
|
|
|
|
|
2017-10-18 08:46:57 +02:00
|
|
|
$title = get_title($fullWidth, $fullHeight);
|
2017-10-18 06:59:41 +02:00
|
|
|
?>
|
2017-01-10 05:09:40 +01:00
|
|
|
[Definition]
|
2017-10-19 05:35:32 +02:00
|
|
|
titleIds = 000500001010EC00,000500001010ED00,000500001010EB00
|
2017-10-18 06:59:41 +02:00
|
|
|
name = "Mario Kart 8 - <?=$title?>"
|
2017-05-25 00:55:55 +02:00
|
|
|
version = 2
|
2017-01-10 05:09:40 +01:00
|
|
|
|
2018-01-28 19:42:56 +01:00
|
|
|
##don't scale any compressed format
|
|
|
|
#[TextureRedefine] #Mshadow check
|
|
|
|
#width = 2048
|
|
|
|
#height = 2048
|
|
|
|
#overwriteWidth = <?=round($scaleFactorX*2048)?>
|
|
|
|
#overwriteHeight = <?=round($scaleFactorY*2048)?>
|
|
|
|
|
|
|
|
#[TextureRedefine] #depth??
|
|
|
|
#width = 1536
|
|
|
|
#height = 1536
|
|
|
|
#formatsExcluded = 0x01a
|
|
|
|
#overwriteWidth = <?=round($scaleFactorX*1536)?>
|
|
|
|
#overwriteHeight = <?=round($scaleFactorY*1536)?>
|
|
|
|
|
2017-01-11 21:36:18 +01:00
|
|
|
[TextureRedefine]
|
2017-01-10 05:09:40 +01:00
|
|
|
width = 1280
|
|
|
|
height = 720
|
2018-01-28 19:42:56 +01:00
|
|
|
formatsExcluded = 0x41A,0x431 # exclude the intro background texture, race end background
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-01-10 05:09:40 +01:00
|
|
|
|
2018-01-28 19:42:56 +01:00
|
|
|
[TextureRedefine] #MShadows
|
|
|
|
width = 1024
|
|
|
|
height = 1024
|
|
|
|
formats = 0x005 #shadows 2 lod slices
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*1024)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*1024)?>
|
|
|
|
|
|
|
|
#[TextureRedefine] ##gloss, reflections, don't scale
|
|
|
|
#width = 768
|
|
|
|
#width = 768
|
|
|
|
|
|
|
|
[TextureRedefine] # Multiplayer-Mode Resolution (2p)
|
|
|
|
width = 640
|
|
|
|
height = 720
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
|
|
|
|
2017-01-11 21:36:18 +01:00
|
|
|
[TextureRedefine]
|
|
|
|
width = 640
|
|
|
|
height = 360
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-01-11 21:36:18 +01:00
|
|
|
|
2017-03-12 23:49:22 +01:00
|
|
|
[TextureRedefine]
|
2018-01-28 19:42:56 +01:00
|
|
|
width = 640
|
|
|
|
height = 320
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*320)?>
|
|
|
|
|
|
|
|
#[TextureRedefine] #selection fmv don't scale
|
|
|
|
#width = 512
|
|
|
|
#height = 608
|
|
|
|
#formatsExcluded = 0x001 #selection fmt
|
|
|
|
|
|
|
|
#[TextureRedefine] #shadows multiplayer?
|
|
|
|
#width = 512
|
|
|
|
#height = 512
|
|
|
|
#formats = 0x005 # verify later
|
|
|
|
#overwriteWidth = <?=round($scaleFactorX*512)?>
|
|
|
|
#overwriteHeight = <?=round($scaleFactorY*512)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 427
|
|
|
|
height = 240
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*427)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*240)?>
|
|
|
|
|
|
|
|
[TextureRedefine] #4P?
|
|
|
|
width = 320
|
|
|
|
height = 360
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
|
|
|
|
|
|
|
[TextureRedefine] #Dof,Bloom 0x816
|
2017-03-12 23:49:22 +01:00
|
|
|
width = 320
|
|
|
|
height = 180
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2017-03-12 23:49:22 +01:00
|
|
|
|
2018-01-28 19:42:56 +01:00
|
|
|
[TextureRedefine] #
|
|
|
|
width = 256
|
|
|
|
height = 256
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a,0x234,0x235 #
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*256)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*256)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 199
|
|
|
|
height = 116
|
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*199)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*116)?>
|
|
|
|
|
2018-01-28 18:41:34 +01:00
|
|
|
[TextureRedefine]
|
|
|
|
width = 160
|
2018-01-28 19:42:56 +01:00
|
|
|
height = 180
|
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
|
|
|
|
|
|
|
[TextureRedefine] #Dof,Bloom 1p 0x816
|
|
|
|
width = 160
|
2018-01-28 18:41:34 +01:00
|
|
|
height = 90
|
2018-01-28 19:42:56 +01:00
|
|
|
#formatsExcluded =
|
2018-01-28 18:41:34 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
2018-01-28 19:42:56 +01:00
|
|
|
width = 160
|
|
|
|
height = 80
|
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*80)?>
|
|
|
|
|
|
|
|
[TextureRedefine] #
|
|
|
|
width = 148
|
|
|
|
height = 148
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a,0x234,0x235
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*148)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*148)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 133
|
|
|
|
height = 77
|
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*133)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*77)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 128
|
|
|
|
height = 256
|
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*128)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*256)?>
|
|
|
|
|
|
|
|
|
|
|
|
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
|
|
|
|
#width = 128
|
|
|
|
#height = 128
|
|
|
|
#formatsExcluded =
|
|
|
|
#overwriteWidth = <?=round($scaleFactorX*128)?>
|
|
|
|
#overwriteHeight = <?=round($scaleFactorY*128)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 80
|
|
|
|
height = 90
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*80)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90)?>
|
|
|
|
|
|
|
|
[TextureRedefine] # bloom
|
2018-01-28 18:41:34 +01:00
|
|
|
width = 80
|
|
|
|
height = 45
|
2018-01-28 19:42:56 +01:00
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
2018-01-28 18:41:34 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*80)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*45)?>
|
|
|
|
|
2017-01-17 18:07:29 +01:00
|
|
|
[TextureRedefine]
|
2018-01-28 19:42:56 +01:00
|
|
|
width = 80
|
|
|
|
height = 40
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*80)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*40)?>
|
2017-01-17 18:07:29 +01:00
|
|
|
|
2017-01-21 01:18:17 +01:00
|
|
|
[TextureRedefine]
|
2018-01-28 19:42:56 +01:00
|
|
|
width = 64
|
|
|
|
height = 128
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*64)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*128)?>
|
|
|
|
|
|
|
|
#[TextureRedefine] # glossmap breaks x64 cube?
|
|
|
|
#width = 64
|
|
|
|
#height = 64
|
|
|
|
|
|
|
|
|
|
|
|
#[TextureRedefine] #check later
|
|
|
|
#width = 52
|
|
|
|
#height = 52
|
|
|
|
#formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
#overwriteWidth = 156
|
|
|
|
#overwriteHeight = 156
|
2017-01-21 01:18:17 +01:00
|
|
|
|
2017-03-12 23:49:22 +01:00
|
|
|
[TextureRedefine]
|
2018-01-28 19:42:56 +01:00
|
|
|
width = 49
|
|
|
|
height = 29
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*49)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*29)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 40
|
|
|
|
height = 45
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*40)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*45)?>
|
|
|
|
|
|
|
|
[TextureRedefine] #bloom
|
|
|
|
width = 40
|
|
|
|
height = 22
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*40)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*22)?>
|
2017-03-12 23:49:22 +01:00
|
|
|
|
2018-01-28 19:42:56 +01:00
|
|
|
[TextureRedefine]
|
|
|
|
width = 40
|
|
|
|
height = 20
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*40)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*20)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 33
|
|
|
|
height = 19
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*33)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*19)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 32
|
|
|
|
height = 64
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*32)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*64)?>
|
|
|
|
|
|
|
|
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
|
|
|
|
#width = 32
|
|
|
|
#height = 32
|
|
|
|
#formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x816,0x01a #0x816 exclude cube
|
|
|
|
#overwriteWidth = 96
|
|
|
|
#overwriteHeight = 96
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 20
|
|
|
|
height = 22
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*20)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*22)?>
|
|
|
|
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 20
|
|
|
|
height = 10
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
verwriteWidth = <?=round($scaleFactorX*20)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*11)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 16
|
|
|
|
height = 32
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*16)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*32)?>
|
|
|
|
|
|
|
|
|
|
|
|
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
|
|
|
|
#width = 16
|
|
|
|
#height = 16
|
|
|
|
#formatsExcluded =
|
|
|
|
#overwriteWidth = <?=round($scaleFactorX*16)?>
|
|
|
|
#overwriteHeight = <?=round($scaleFactorY*16)?>
|
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 8
|
|
|
|
height = 16
|
|
|
|
formatsExcluded = 0x31,0x32,0x33,0x34,0x35,0x431,0x432,0x433,0x434,0x435,0x01a
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*8)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*16)?>
|
|
|
|
|
|
|
|
###MKTV###
|
2017-01-11 21:36:18 +01:00
|
|
|
# MKTV screen
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 960
|
|
|
|
height = 540
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*960)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*540)?>
|
2017-01-11 21:36:18 +01:00
|
|
|
|
|
|
|
# MKTV internal render targets
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 960
|
|
|
|
height = 536
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*960)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*536)?>
|
2017-01-11 21:36:18 +01:00
|
|
|
|
|
|
|
# MKTV half res alpha
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 480
|
|
|
|
height = 268
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*960)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*268)?>
|
2017-03-12 23:49:22 +01:00
|
|
|
|
|
|
|
# MKTV quarter res alpha
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 240
|
|
|
|
height = 134
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-18 06:59:41 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*240)?>
|
2018-01-28 19:42:56 +01:00
|
|
|
overwriteHeight = <?=round($scaleFactorY*134)?>
|