From f3b02fa389ccc91b06b25f09e732bbda7922aefa Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 12:42:52 -0600 Subject: [PATCH 1/9] New XCX mod that modifies the lib.ini file edits the game's boot configuration file and produces some effects settings proven to produce a visual difference so far: sRGBmode on/off, AntiAliasing 0n/off, bloom on/off, and cloud height min/max --- .../Enhancements/libini/lib.ini | 126 + .../Enhancements/libini/patch_ini.asm | 585 ++++ .../Enhancements/libini/rules.txt | 2559 +++++++++++++++++ 3 files changed, 3270 insertions(+) create mode 100644 src/XenobladeChroniclesX/Enhancements/libini/lib.ini create mode 100644 src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm create mode 100644 src/XenobladeChroniclesX/Enhancements/libini/rules.txt diff --git a/src/XenobladeChroniclesX/Enhancements/libini/lib.ini b/src/XenobladeChroniclesX/Enhancements/libini/lib.ini new file mode 100644 index 000000000..5cc72039b --- /dev/null +++ b/src/XenobladeChroniclesX/Enhancements/libini/lib.ini @@ -0,0 +1,126 @@ +tonemap=on +ssao=on +bloom=on +godray=on +AntiAliasing=on +ColReduction=off +dof=off +lensFlare=on + +lut=on +luttex1=lutba + +cube=cube + +tonemax=2.5 +tonemin=1.0 +tonemul=1.0 +toneLastmul=1.00 +toneBlmmax=1.3 +toneBlmmin=1.0 +toneBlmmul=1.0 +toneBlmLastmul=0.8 + +godray_inival=0.95 +godray_decay=0.99 +godray_scale=1.235 + +blm_border_sub=0.20 +blm_border_mul=0.45 +blm_border_sub2=3.0 +blm_border_mul2=1.5 +blm_border_max=3.5 +blm_tex_mul=3.0 +blm_blurscale1=1.0 +blm_blurscale2=0.7 +blm_blurscale3=1.5 +blm_blurRange1=0.9 +blm_blurRange2=0.8 +blm_blurRange3=0.8 +blm_scale1=0.2 +blm_scale2=0.1 +blm_scale3=0.1 + +lens_max=1 +lens_rot=0 +lens_sub=1.5 +lens_mul=3.5 +lens_weight=0.1 +lens_decay=1.0 +lens_str=1.5 +lens_paMax=4.0 +lens_UVDecay=0.290 + +AA_Sharpness=8.0 +AA_Range=0.5 +AA_Threshold=0.17 +AA_ThresholdMin=0.05 + +red_sclX=0.96 +red_sclY=1.0 + +red_Auto=on +red_AtMaxX=0.96 +red_AtMaxY=1.0 +red_AtMinX=0.6 +red_AtMinY=0.86 +red_AtRate=100.0 + +ao_Lengs=0.1 +ao_LengsRatio=1.98 +ao_range=5.7 +ao_rangeRatio=1.000 +ao_sub=0.02 +ao_subRatio=0.150 +ao_Mul=2.0 +ao_blurRange=0.720 +ao_blurScale=0.75 + + +blur=off +blurStr=0.2 +blurSub=0.05 + +shadowStr=1.0 +shadowHalf=off + +simShwStr=1.6 +simShwIn=0.7 +simShwMin=0.15 + +sRGBMode=on +gamma=6 + +ao_av_CenterWeight=1.090 +ao_av_MaxDistance=0.15 +ao_av_MaxRadius=0.2 +ao_av_FadeOutStart=70000.0 +ao_av_FadeOutDistance=10000.0 +ao_av_BlurFallOff=0.050 +ao_av_BlurScale=1.6 +ao_av_Shwstr=0.5 + +cam_near=0.1 +cam_far=80000.0 + + +avmp01 = 0.5 , 0.5 , 0.5 +avmp02 = 0.5 , 0.5 , 0.5 +avmp03 = 0.5 , 0.5 , 0.5 +avmp04 = 0.5 , 0.5 , 0.5 +avmp05 = 0.5 , 0.5 , 0.5 +avmp06 = 0.5 , 0.5 , 0.5 +avmp07 = 0.5 , 0.5 , 0.5 +avmp08 = 0.5 , 0.5 , 0.5 +avmp09 = 0.5 , 0.5 , 0.5 +avmp10 = 0.5 , 0.5 , 0.5 +avmp11 = 0.5 , 0.5 , 0.5 +avmp12 = 0.5 , 0.5 , 0.5 +avmp13 = 0.5 , 0.5 , 0.5 +avmp14 = 0.5 , 0.5 , 0.5 +avmp15 = 0.5 , 0.5 , 0.5 +avmp16 = 0.5 , 0.5 , 0.5 + +cloud_h_min=1000.0 +cloud_h_max=1100.0 + diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm new file mode 100644 index 000000000..9f7cf8b7c --- /dev/null +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -0,0 +1,585 @@ +[XCX_libini] +moduleMatches = 0xF882D5CF, 0x30B6E091, 0x7672271D, 0x218F6E07, 0xAB97DE6B, 0x676EB33E, 0x785CA8A9 ; 1.0.1E, 1.0.2U, 1.0.2J, 1.0.0E, 1.0.1U, 1.0.0U, 1.0.0J +.origin = codecave + +;string values for luttex1 and cube setting +value_luttex1: +.uint $luttex1_s1, $luttex1_s2, 0 ;if a larger string is needed, add $luttex1_s3, $luttex1_s4, etc. to before the 0 +value_cube: +.uint $cube_s1, 0 ;if a larger string is needed, add $cube_s2, $cube_s3, etc. to before the 0 + +;list of strings that are in the lib.ini file +;this mod will be reprinting them +str_tonemap: +.string "tonemap=" +str_ssao: +.string "ssao=" +str_bloom: +.string "bloom=" +str_godray: +.string "godray=" +str_AntiAliasing: +.string "AntiAliasing=" +str_ColReduction: +.string "ColReduction=" +str_dof: +.string "dof=" +str_lensFlare: +.string "lensFlare=" + +str_lut: +.string "lut=" +str_luttex1: +.string "luttex1=" + +str_cube: +.string "cube=" + +str_tonemax: +.string "tonemax=" +str_tonemin: +.string "tonemin=" +str_tonemul: +.string "tonemul=" +str_toneLastmul: +.string "toneLastmul=" +str_toneBlmmax: +.string "toneBlmmax=" +str_toneBlmmin: +.string "toneBlmmin=" +str_toneBlmmul: +.string "toneBlmmul=" +str_toneBlmLastmul: +.string "toneBlmLastmul=" + +str_godray_inival: +.string "godray_inival=" +str_godray_decay: +.string "godray_decay=" +str_godray_scale: +.string "godray_scale=" + +str_blm_border_sub: +.string "blm_border_sub=" +str_blm_border_mul: +.string "blm_border_mul=" +str_blm_border_sub2: +.string "blm_border_sub2=" +str_blm_border_mul2: +.string "blm_border_mul2=" +str_blm_border_max: +.string "blm_border_max=" +str_blm_tex_mul: +.string "blm_tex_mul=" +str_blm_blurscale1: +.string "blm_blurscale1=" +str_blm_blurscale2: +.string "blm_blurscale2=" +str_blm_blurscale3: +.string "blm_blurscale3=" +str_blm_blurRange1: +.string "blm_blurRange1=" +str_blm_blurRange2: +.string "blm_blurRange2=" +str_blm_blurRange3: +.string "blm_blurRange3=" +str_blm_scale1: +.string "blm_scale1=" +str_blm_scale2: +.string "blm_scale2=" +str_blm_scale3: +.string "blm_scale3=" + +str_lens_max: +.string "lens_max=" +str_lens_rot: +.string "lens_rot=" +str_lens_sub: +.string "lens_sub=" +str_lens_mul: +.string "lens_mul=" +str_lens_weight: +.string "lens_weight=" +str_lens_decay: +.string "lens_decay=" +str_lens_str: +.string "lens_str=" +str_lens_paMax: +.string "lens_paMax=" +str_lens_UVDecay: +.string "lens_UVDecay=" + +str_AA_Sharpness: +.string "AA_Sharpness=" +str_AA_Range: +.string "AA_Range=" +str_AA_Threshold: +.string "AA_Threshold=" +str_AA_ThresholdMin: +.string "AA_ThresholdMin=" + +str_red_sclX: +.string "red_sclX=" +str_red_sclY: +.string "red_sclY=" + +str_red_Auto: +.string "red_Auto=" +str_red_AtMaxX: +.string "red_AtMaxX=" +str_red_AtMaxY: +.string "red_AtMaxY=" +str_red_AtMinX: +.string "red_AtMinX=" +str_red_AtMinY: +.string "red_AtMinY=" +str_red_AtRate: +.string "red_AtRate=" + +str_ao_Lengs: +.string "ao_Lengs=" +str_ao_LengsRatio: +.string "ao_LengsRatio=" +str_ao_range: +.string "ao_range=" +str_ao_rangeRatio: +.string "ao_rangeRatio=" +str_ao_sub: +.string "ao_sub=" +str_ao_subRatio: +.string "ao_subRatio=" +str_ao_Mul: +.string "ao_Mul=" +str_ao_blurRange: +.string "ao_blurRange=" +str_ao_blurScale: +.string "ao_blurScale=" + +str_blur: +.string "blur=" +str_blurStr: +.string "blurStr=" +str_blurSub: +.string "blurSub=" + +str_shadowStr: +.string "shadowStr=" +str_shadowHalf: +.string "shadowHalf=" + +str_simShwStr: +.string "simShwStr=" +str_simShwIn: +.string "simShwIn=" +str_simShwMin: +.string "simShwMin=" + +str_sRGBMode: +.string "sRGBMode=" +str_gamma: +.string "gamma=" + +str_ao_av_CenterWeight: +.string "ao_av_CenterWeight=" +str_ao_av_MaxDistance: +.string "ao_av_MaxDistance=" +str_ao_av_MaxRadius: +.string "ao_av_MaxRadius=" +str_ao_av_FadeOutStart: +.string "ao_av_FadeOutStart=" +str_ao_av_FadeOutDistance: +.string "ao_av_FadeOutDistance=" +str_ao_av_BlurFallOff: +.string "ao_av_BlurFallOff=" +str_ao_av_BlurScale: +.string "ao_av_BlurScale=" +str_ao_av_Shwstr: +.string "ao_av_Shwstr=" + +str_cam_near: +.string "cam_near=" +str_cam_far: +.string "cam_far=" + +str_avmp01: +.string "avmp01 = " +str_avmp02: +.string "avmp02 = " +str_avmp03: +.string "avmp03 = " +str_avmp04: +.string "avmp04 = " +str_avmp05: +.string "avmp05 = " +str_avmp06: +.string "avmp06 = " +str_avmp07: +.string "avmp07 = " +str_avmp08: +.string "avmp08 = " +str_avmp09: +.string "avmp09 = " +str_avmp10: +.string "avmp10 = " +str_avmp11: +.string "avmp11 = " +str_avmp12: +.string "avmp12 = " +str_avmp13: +.string "avmp13 = " +str_avmp14: +.string "avmp14 = " +str_avmp15: +.string "avmp15 = " +str_avmp16: +.string "avmp16 = " + +str_cloud_h_min: +.string "cloud_h_min=" +str_cloud_h_max: +.string "cloud_h_max=" + +;array of pointers to the list of strings above +;will be used to print the associated strings into memory +lookuptable_settingname_INImod: +.uint str_tonemap, str_ssao, str_bloom, str_godray, str_AntiAliasing, str_ColReduction, str_dof, str_lensFlare, str_lut, str_luttex1, str_cube, str_tonemax, str_tonemin, str_tonemul, str_toneLastmul, str_toneBlmmax, str_toneBlmmin, str_toneBlmmul, str_toneBlmLastmul, str_godray_inival, str_godray_decay, str_godray_scale, str_blm_border_sub, str_blm_border_mul, str_blm_border_sub2, str_blm_border_mul2, str_blm_border_max, str_blm_tex_mul, str_blm_blurscale1, str_blm_blurscale2, str_blm_blurscale3, str_blm_blurRange1, str_blm_blurRange2, str_blm_blurRange3, str_blm_scale1, str_blm_scale2, str_blm_scale3, str_lens_max, str_lens_rot, str_lens_sub, str_lens_mul, str_lens_weight, str_lens_decay, str_lens_str, str_lens_paMax, str_lens_UVDecay, str_AA_Sharpness, str_AA_Range, str_AA_Threshold, str_AA_ThresholdMin, str_red_sclX, str_red_sclY, str_red_Auto, str_red_AtMaxX, str_red_AtMaxY, str_red_AtMinX, str_red_AtMinY, str_red_AtRate, str_ao_Lengs, str_ao_LengsRatio, str_ao_range, str_ao_rangeRatio, str_ao_sub, str_ao_subRatio, str_ao_Mul, str_ao_blurRange, str_ao_blurScale, str_blur, str_blurStr, str_blurSub, str_shadowStr, str_shadowHalf, str_simShwStr, str_simShwIn, str_simShwMin, str_sRGBMode, str_gamma, str_ao_av_CenterWeight, str_ao_av_MaxDistance, str_ao_av_MaxRadius, str_ao_av_FadeOutStart, str_ao_av_FadeOutDistance, str_ao_av_BlurFallOff, str_ao_av_BlurScale, str_ao_av_Shwstr, str_cam_near, str_cam_far, str_avmp01, str_avmp02, str_avmp03, str_avmp04, str_avmp05, str_avmp06, str_avmp07, str_avmp08, str_avmp09, str_avmp10, str_avmp11, str_avmp12, str_avmp13, str_avmp14, str_avmp15, str_avmp16, str_cloud_h_min, str_cloud_h_max + +;array of short strings that either contain "on" or "off" +;will be used to print the associated setting +lookuptable_onoff_INImod: +.uint $tonemap, $ssao, $bloom, $godray, $AntiAliasing, $ColReduction, $dof, $lensFlare, $lut, $red_Auto, $blur, $shadowHalf, $sRGBMode + +;array of string pointers used to print the luttex1 and cube setting values +lookuptable_stringvalue_INImod: +.uint value_luttex1, value_cube + +;array of floats used to print the float for the associated string +lookuptable_float_INImod: +.float $tonemax, $tonemin, $tonemul, $toneLastmul, $toneBlmmax, $toneBlmmin, $toneBlmmul, $toneBlmLastmul, $godray_inival, $godray_decay, $godray_scale, $blm_border_sub, $blm_border_mul, $blm_border_sub2, $blm_border_mul2, $blm_border_max, $blm_tex_mul, $blm_blurscale1, $blm_blurscale2, $blm_blurscale3, $blm_blurRange1, $blm_blurRange2, $blm_blurRange3, $blm_scale1, $blm_scale2, $blm_scale3, $lens_max, $lens_rot, $lens_sub, $lens_mul, $lens_weight, $lens_decay, $lens_str, $lens_paMax, $lens_UVDecay, $AA_Sharpness, $AA_Range, $AA_Threshold, $AA_ThresholdMin, $red_sclX, $red_sclY, $red_AtMaxX, $red_AtMaxY, $red_AtMinX, $red_AtMinY, $red_AtRate, $ao_Lengs, $ao_LengsRatio, $ao_range, $ao_rangeRatio, $ao_sub, $ao_subRatio, $ao_Mul, $ao_blurRange, $ao_blurScale, $blurStr, $blurSub, $shadowStr, $simShwStr, $simShwIn, $simShwMin, $gamma, $ao_av_CenterWeight, $ao_av_MaxDistance, $ao_av_MaxRadius, $ao_av_FadeOutStart, $ao_av_FadeOutDistance, $ao_av_BlurFallOff, $ao_av_BlurScale, $ao_av_Shwstr, $cam_near, $cam_far, $avmp0101, $avmp0102, $avmp0103, $avmp0201, $avmp0202, $avmp0203, $avmp0301, $avmp0302, $avmp0303, $avmp0401, $avmp0402, $avmp0403, $avmp0501, $avmp0502, $avmp0503, $avmp0601, $avmp0602, $avmp0603, $avmp0701, $avmp0702, $avmp0703, $avmp0801, $avmp0802, $avmp0803, $avmp0901, $avmp0902, $avmp0903, $avmp1001, $avmp1002, $avmp1003, $avmp1101, $avmp1102, $avmp1103, $avmp1201, $avmp1202, $avmp1203, $avmp1301, $avmp1302, $avmp1303, $avmp1401, $avmp1402, $avmp1403, $avmp1501, $avmp1502, $avmp1503, $avmp1601, $avmp1602, $avmp1603, $cloud_h_min, $cloud_h_max + +;array of intigers used to set the number of decimal places printed for the associated float +lookuptable_float_precision_INImod: +.byte $tonemax_DecimalPlaces, $tonemin_DecimalPlaces, $tonemul_DecimalPlaces, $toneLastmul_DecimalPlaces, $toneBlmmax_DecimalPlaces, $toneBlmmin_DecimalPlaces, $toneBlmmul_DecimalPlaces, $toneBlmLastmul_DecimalPlaces, $godray_inival_DecimalPlaces, $godray_decay_DecimalPlaces, $godray_scale_DecimalPlaces, $blm_border_sub_DecimalPlaces, $blm_border_mul_DecimalPlaces, $blm_border_sub2_DecimalPlaces, $blm_border_mul2_DecimalPlaces, $blm_border_max_DecimalPlaces, $blm_tex_mul_DecimalPlaces, $blm_blurscale1_DecimalPlaces, $blm_blurscale2_DecimalPlaces, $blm_blurscale3_DecimalPlaces, $blm_blurRange1_DecimalPlaces, $blm_blurRange2_DecimalPlaces, $blm_blurRange3_DecimalPlaces, $blm_scale1_DecimalPlaces, $blm_scale2_DecimalPlaces, $blm_scale3_DecimalPlaces, $lens_max_DecimalPlaces, $lens_rot_DecimalPlaces, $lens_sub_DecimalPlaces, $lens_mul_DecimalPlaces, $lens_weight_DecimalPlaces, $lens_decay_DecimalPlaces, $lens_str_DecimalPlaces, $lens_paMax_DecimalPlaces, $lens_UVDecay_DecimalPlaces, $AA_Sharpness_DecimalPlaces, $AA_Range_DecimalPlaces, $AA_Threshold_DecimalPlaces, $AA_ThresholdMin_DecimalPlaces, $red_sclX_DecimalPlaces, $red_sclY_DecimalPlaces, $red_AtMaxX_DecimalPlaces, $red_AtMaxY_DecimalPlaces, $red_AtMinX_DecimalPlaces, $red_AtMinY_DecimalPlaces, $red_AtRate_DecimalPlaces, $ao_Lengs_DecimalPlaces, $ao_LengsRatio_DecimalPlaces, $ao_range_DecimalPlaces, $ao_rangeRatio_DecimalPlaces, $ao_sub_DecimalPlaces, $ao_subRatio_DecimalPlaces, $ao_Mul_DecimalPlaces, $ao_blurRange_DecimalPlaces, $ao_blurScale_DecimalPlaces, $blurStr_DecimalPlaces, $blurSub_DecimalPlaces, $shadowStr_DecimalPlaces, $simShwStr_DecimalPlaces, $simShwIn_DecimalPlaces, $simShwMin_DecimalPlaces, $gamma_DecimalPlaces, $ao_av_CenterWeight_DecimalPlaces, $ao_av_MaxDistance_DecimalPlaces, $ao_av_MaxRadius_DecimalPlaces, $ao_av_FadeOutStart_DecimalPlaces, $ao_av_FadeOutDistance_DecimalPlaces, $ao_av_BlurFallOff_DecimalPlaces, $ao_av_BlurScale_DecimalPlaces, $ao_av_Shwstr_DecimalPlaces, $cam_near_DecimalPlaces, $cam_far_DecimalPlaces, $avmp01_DecimalPlaces, $avmp02_DecimalPlaces, $avmp03_DecimalPlaces, $avmp04_DecimalPlaces, $avmp05_DecimalPlaces, $avmp06_DecimalPlaces, $avmp07_DecimalPlaces, $avmp08_DecimalPlaces, $avmp09_DecimalPlaces, $avmp10_DecimalPlaces, $avmp11_DecimalPlaces, $avmp12_DecimalPlaces, $avmp13_DecimalPlaces, $avmp14_DecimalPlaces, $avmp15_DecimalPlaces, $avmp16_DecimalPlaces, $cloud_h_min_DecimalPlaces, $cloud_h_max_DecimalPlaces + +;format string that the C function sprintf() needs +;the * will be replaced with a number that sets the number of decimal places +str_floating_precision_INImod: +.string "%.*f" +;allocates memory to back up and restore registers r0-r31 +ini_register_backup: +.uint 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 +;allocates memory to back up and restore the link register (LR) +ini_linkregister_backup: +.uint 0 + +;over writes original ini file with 0's +DeleteINI: +addi r30, r22, -4 +li r28, 0 +_whileLoopDeleteINI: + stwu r28, 4(r30) + lbz r24, 1(r30) + cmpwi r24, 0 + bne+ _whileLoopDeleteINI +blr + +;takes in a pointer to a string(r22), and prints it +PrintSettingNameINImod: +lwzu r29, 4(r22) +addi r29, r29, -1 +_whileloopPrintSettingNameINImod: + lbzu r26, 1(r29) + stbu r26, 1(r30) + cmpwi r26, 0 + bne+ _whileloopPrintSettingNameINImod +blr + +;function wraper that takes in r20 and a function pointer(r27) +;loops the function by the ammount in r20 +PrintSettingsINImod: +mflr r31 +_forloopPrintAMVPSettingsINImod: + bl PrintSettingNameINImod + mtctr r27 + bctrl + addic. r20, r20, -1 + bgt+ _forloopPrintAMVPSettingsINImod +mtlr r31 +blr + +;prints new line character +PrintNewLineINImod: +li r26, 0x0D0A +sth r26, 0(r30) +addi r30, r30, 1 +blr + +;checks if the floating point precision is less than 0 or greater than 9 +;if so set precision to 1 to prevent the game from crashing +CheckifPrecisionIsValidINImod: +cmpwi r3, 0x30+0 +bge+ _ifPrecisionLessThan0INImod + li r3, 0x30+1 +_ifPrecisionLessThan0INImod: +cmpwi r3, 0x30+9 +ble+ _ifPrecisionGreaterThan9INImod + li r3, 0x30+1 +_ifPrecisionGreaterThan9INImod: +blr + +;calls the C function sprintf() +;takes in a pointer to a formating string by r4 +;takes in an address to print to by r3 +;takes in a float to print by f1 +;outputs the last address printed to in r11 +CallsprintfINImod: +mflr r29 +lfsu f1, 4(r24) +lis r4, str_floating_precision_INImod@hi +ori r4, r4, str_floating_precision_INImod@l +addi r3, r3, 0x30 +bl CheckifPrecisionIsValidINImod +stb r3, 2(r4) +or r3, r30, r30 +CREQV 4*cr1+eq, 4*cr1+eq, 4*cr1+eq ;required for some reason +mtctr r25 +bctrl ;bl sprintf +or r30, r11, r11 +mtlr r29 +blr + +;passes PrintOnOff into the PrintSettings function wraper +PrintOnOffSettingsINImod: +lis r27, PrintOnOffINImod@hi +ori r27, r27, PrintOnOffINImod@l +b PrintSettingsINImod + +;takes in r23 and prints either on or off +PrintOnOffINImod: +mflr r28 +lwzu r26, 4(r23) +stw r26, 0(r30) +_whileloopPrintOnOffINImod: + lbzu r26, 1(r30) + cmpwi r26, 0 + bne+ _whileloopPrintOnOffINImod +bl PrintNewLineINImod +mtlr r28 +blr + +;passes PrintStringValue into the PrintSettings function wraper +PrintStringValueSettingsINImod: +lis r27, PrintStringValueINImod@hi +ori r27, r27, PrintStringValueINImod@l +b PrintSettingsINImod + +;takes in a string pointer(r18), and hijacks PrintSettingName to print it +PrintStringValueINImod: +mflr r28 +addi r30, r30, -1 +or r19, r22, r22 +or r22, r18, r18 +bl PrintSettingNameINImod +or r18, r22, r22 +or r22, r19, r19 +bl PrintNewLineINImod +mtlr r28 +blr + +;passes PrintFloat into the PrintSettings function wraper +PrintFloatSettingsINImod: +lis r27, PrintFloatINImod@hi +ori r27, r27, PrintFloatINImod@l +b PrintSettingsINImod + +;takes in a floating point(r24), and its precision(r21) +;calls sprintf to print the float +PrintFloatINImod: +mflr r28 +lbzu r3, 1(r21) +bl CallsprintfINImod +bl PrintNewLineINImod +mtlr r28 +blr + +;passes PrintAMVP into the PrintSettings function wraper +PrintAMVPSettingsINImod: +lis r27, PrintAMVPINImod@hi +ori r27, r27, PrintAMVPINImod@l +b PrintSettingsINImod + +;prints 3 floats sperated by a comma +PrintAMVPINImod: +mflr r28 +lis r19, 0x202C +ori r19, r19, 0x2000 +lbzu r3, 1(r21) +bl CallsprintfINImod +stw r19, 0(r11) +addi r30, r30, 3 +lbz r3, 0(r21) +bl CallsprintfINImod +stw r19, 0(r11) +addi r30, r30, 3 +lbz r3, 0(r21) +bl CallsprintfINImod +bl PrintNewLineINImod +mtlr r28 +blr + +; r22 == 0x23f09100 +;Free registers that do not need to be restored: +; r25 r24 r28 r10 +_EditINIforinimod: +;back up registers r0-r31 +lis r10, ini_register_backup@ha +stmw r0, ini_register_backup@l(r10) +;back up link register +mflr r24 +lis r10, ini_linkregister_backup@ha +stw r24, ini_linkregister_backup@l(r10) +;deletes the lib.ini file in ram so we can over write it with our own +bl DeleteINI + +;r30 will track current position in file +addi r30, r22, -1 +;r22 will keep track of the current setting +lis r22, lookuptable_settingname_INImod@ha +addi r22, r22, lookuptable_settingname_INImod@l-4 +;r23 will keep track of on/off settings +lis r23, lookuptable_onoff_INImod@ha +addi r23, r23, lookuptable_onoff_INImod@l-4 +;r24 will keep track of floating point numbers +lis r24, lookuptable_float_INImod@ha +addi r24, r24, lookuptable_float_INImod@l-4 +;r21 will keep track of floating point precision +lis r21, lookuptable_float_precision_INImod@ha +addi r21, r21, lookuptable_float_precision_INImod@l-1 +;r18 will keep track of string values (only used for luttex1 & cube) +lis r18, lookuptable_stringvalue_INImod@ha +addi r18, r18, lookuptable_stringvalue_INImod@l-4 +;the r20 is how many times the loop executes, aka number of settings to print + +;print all the on off settings at the begining of the file +li r20, 9 +bl PrintOnOffSettingsINImod + +;print luttex1 and cube setting +li r20, 2 +bl PrintStringValueSettingsINImod + +;print float settings until hitting an on/off setting +li r20, 41 +bl PrintFloatSettingsINImod + +;print red auto on/off setting +li r20, 1 +bl PrintOnOffSettingsINImod + +;print float settings until hitting an on/off setting +li r20, 14 +bl PrintFloatSettingsINImod + +;print blur on/off setting +li r20, 1 +bl PrintOnOffSettingsINImod + +;print float settings until hitting an on/off setting +li r20, 3 +bl PrintFloatSettingsINImod + +;print shadow half on/off setting +li r20, 1 +bl PrintOnOffSettingsINImod + +;print float settings until hitting an on/off setting +li r20, 3 +bl PrintFloatSettingsINImod + +;print sRGBmode on/off setting +li r20, 1 +bl PrintOnOffSettingsINImod + +;print float settings until hitting avmp settings +li r20, 11 +bl PrintFloatSettingsINImod + +;print avmp settings +li r20, 16 +bl PrintAMVPSettingsINImod + +;print last 2 float settings settings +li r20, 2 +bl PrintFloatSettingsINImod +;print extra new line character +;li r26, 0x0D0A +sth r26, 1(r30) + +_ExitEditINImod: +;restore registers r0-r31 & LR +lis r10, ini_linkregister_backup@ha +lwz r25, ini_linkregister_backup@l(r10) +mtlr r25 +lis r10, ini_register_backup@ha +lmw r0, ini_register_backup@l(r10) +;restores line we over wrote and returns to the game +;lwz r22, 0xa0(r31) +addi r25,r1,0x38 +blr + + + +_SprintfFunctionAddress_V101E_ini: +;load the function pointer for the C function sprintf() into r25 +lis r25, 0x03B1 +ori r25, r25, 0x8118 +b _EditINIforinimod + +_SprintfFunctionAddress_V102U_ini: +;load the function pointer for the C function sprintf() into r25 +lis r25, 0x03B1 +ori r25, r25, 0x8098 +b _EditINIforinimod + +_SprintfFunctionAddress_V102J_ini: +;load the function pointer for the C function sprintf() into r25 +lis r25, 0x03B1 +ori r25, r25, 0x34B0 +b _EditINIforinimod + +_SprintfFunctionAddress_V100U_ini: +;load the function pointer for the C function sprintf() into r25 +lis r25, 0x03B1 +ori r25, r25, 0x7F18 +b _EditINIforinimod + +_SprintfFunctionAddress_V100J_ini: +;load the function pointer for the C function sprintf() into r25 +lis r25, 0x03B0 +ori r25, r25, 0xDEB0 +b _EditINIforinimod + +[XCX_libini_V101E] +moduleMatches = 0xF882D5CF, 0x218F6E07 ; 1.0.1E, 1.0.0E +;patches the address with a branch link to the mod +0x02FF94C8 = bla _SprintfFunctionAddress_V101E_ini + +[XCX_libini_V102U] +moduleMatches = 0x30B6E091 ; 1.0.2U +;patches the address with a branch link to the mod +0x02FF9468 = bla _SprintfFunctionAddress_V102U_ini + +[XCX_libini_V102J] +moduleMatches = 0x7672271D ; 1.0.2J +;patches the address with a branch link to the mod +0x02FF4990 = bla _SprintfFunctionAddress_V102J_ini + +[XCX_libini_V100U] +moduleMatches = 0xAB97DE6B, 0x676EB33E ; 1.0.1U, 1.0.0U +;patches the address with a branch link to the mod +0x02FF92F0 = bla _SprintfFunctionAddress_V100U_ini + +[XCX_libini_V100J] +moduleMatches = 0x785CA8A9 ; 1.0.0J +;patches the address with a branch link to the mod +0x02FEF588 = bla _SprintfFunctionAddress_V100J_ini diff --git a/src/XenobladeChroniclesX/Enhancements/libini/rules.txt b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt new file mode 100644 index 000000000..24a6542dc --- /dev/null +++ b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt @@ -0,0 +1,2559 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = lib.ini edit +path = "Xenoblade Chronicles X/Enhancements/lib.ini" +description = Edit the game's lib.ini file that contains various graphical settings.|Some of these are usefull, such as sRGBMode, and some have no effect on the game. +#Credits: Intra +version = 7 + +#if you find any interesting non-default values +#or think a setting should be show in Basic or Advanced +#or want to add any comments about what a setting does +#please either make a PR on the cemugfx github or +#@_intra_ on the cemu discord +#will be greatly appreciated +#the non-default values and options shown were just quickly made tf up +#there are just too many to test and prove which ones procude a noticable affect + +[Default] +$tonemap = 0x6F6E0000 #on +$ssao = 0x6F6E0000 #on +$bloom = 0x6F6E0000 #on +$godray = 0x6F6E0000 #on +$AntiAliasing = 0x6F6E0000 #on +$ColReduction = 0x6F666600 #off +$dof = 0x6F666600 #off +$lensFlare = 0x6F6E0000 #on + +$lut = 0x6F6E0000 #on +$luttex1_s1 = 0x6C757462 #lutb +$luttex1_s2 = 0x61000000 #a + +$cube_s1 = 0x63756265 #cube + +$tonemax = 2.5 +$tonemax_DecimalPlaces = 1 #0.0 +$tonemin = 1.0 +$tonemin_DecimalPlaces = 1 #0.0 +$tonemul = 1.0 +$tonemul_DecimalPlaces = 1 #0.0 +$toneLastmul = 1.00 +$toneLastmul_DecimalPlaces = 2 #0.00 +$toneBlmmax = 1.3 +$toneBlmmax_DecimalPlaces = 1 #0.0 +$toneBlmmin = 1.0 +$toneBlmmin_DecimalPlaces = 1 #0.0 +$toneBlmmul = 1.0 +$toneBlmmul_DecimalPlaces = 1 #0.0 +$toneBlmLastmul = 0.8 +$toneBlmLastmul_DecimalPlaces = 1 #0.0 + +$godray_inival = 0.95 +$godray_inival_DecimalPlaces = 2 #0.00 +$godray_decay = 0.99 +$godray_decay_DecimalPlaces = 2 #0.00 +$godray_scale = 1.235 +$godray_scale_DecimalPlaces = 3 #0.000 + +$blm_border_sub = 0.20 +$blm_border_sub_DecimalPlaces = 2 #0.00 +$blm_border_mul = 0.45 +$blm_border_mul_DecimalPlaces = 2 #0.00 +$blm_border_sub2 = 3.0 +$blm_border_sub2_DecimalPlaces = 1 #0.0 +$blm_border_mul2 = 1.5 +$blm_border_mul2_DecimalPlaces = 1 #0.0 +$blm_border_max = 3.5 +$blm_border_max_DecimalPlaces = 1 #0.0 +$blm_tex_mul = 3.0 +$blm_tex_mul_DecimalPlaces = 1 #0.0 +$blm_blurscale1 = 1.0 +$blm_blurscale1_DecimalPlaces = 1 #0.0 +$blm_blurscale2 = 0.7 +$blm_blurscale2_DecimalPlaces = 1 #0.0 +$blm_blurscale3 = 1.5 +$blm_blurscale3_DecimalPlaces = 1 #0.0 +$blm_blurRange1 = 0.9 +$blm_blurRange1_DecimalPlaces = 1 #0.0 +$blm_blurRange2 = 0.8 +$blm_blurRange2_DecimalPlaces = 1 #0.0 +$blm_blurRange3 = 0.8 +$blm_blurRange3_DecimalPlaces = 1 #0.0 +$blm_scale1 = 0.2 +$blm_scale1_DecimalPlaces = 1 #0.0 +$blm_scale2 = 0.1 +$blm_scale2_DecimalPlaces = 1 #0.0 +$blm_scale3 = 0.1 +$blm_scale3_DecimalPlaces = 1 #0.0 + +$lens_max = 1 +$lens_max_DecimalPlaces = 0 #0 +$lens_rot = 0 +$lens_rot_DecimalPlaces = 0 #0 +$lens_sub = 1.5 +$lens_sub_DecimalPlaces = 1 #0.0 +$lens_mul = 3.5 +$lens_mul_DecimalPlaces = 1 #0.0 +$lens_weight = 0.1 +$lens_weight_DecimalPlaces = 1 #0.0 +$lens_decay = 1.0 +$lens_decay_DecimalPlaces = 1 #0.0 +$lens_str = 1.5 +$lens_str_DecimalPlaces = 1 #0.0 +$lens_paMax = 4.0 +$lens_paMax_DecimalPlaces = 1 #0.0 +$lens_UVDecay = 0.290 +$lens_UVDecay_DecimalPlaces = 3 #0.000 + +$AA_Sharpness = 8.0 +$AA_Sharpness_DecimalPlaces = 1 #0.0 +$AA_Range = 0.5 +$AA_Range_DecimalPlaces = 1 #0.0 +$AA_Threshold = 0.17 +$AA_Threshold_DecimalPlaces = 2 #0.00 +$AA_ThresholdMin = 0.05 +$AA_ThresholdMin_DecimalPlaces = 2 #0.00 + +$red_sclX = 0.96 +$red_sclX_DecimalPlaces = 2 #0.00 +$red_sclY = 1.0 +$red_sclY_DecimalPlaces = 1 #0.0 + +$red_Auto = 0x6F6E0000 #on +$red_AtMaxX = 0.96 +$red_AtMaxX_DecimalPlaces = 2 #0.00 +$red_AtMaxY = 1.0 +$red_AtMaxY_DecimalPlaces = 1 #0.0 +$red_AtMinX = 0.6 +$red_AtMinX_DecimalPlaces = 1 #0.0 +$red_AtMinY = 0.86 +$red_AtMinY_DecimalPlaces = 2 #0.00 +$red_AtRate = 100.0 +$red_AtRate_DecimalPlaces = 1 #0.0 + +$ao_Lengs = 0.1 +$ao_Lengs_DecimalPlaces = 1 #0.0 +$ao_LengsRatio = 1.98 +$ao_LengsRatio_DecimalPlaces = 2 #0.00 +$ao_range = 5.7 +$ao_range_DecimalPlaces = 1 #0.0 +$ao_rangeRatio = 1.000 +$ao_rangeRatio_DecimalPlaces = 3 #0.000 +$ao_sub = 0.02 +$ao_sub_DecimalPlaces = 2 #0.00 +$ao_subRatio = 0.150 +$ao_subRatio_DecimalPlaces = 3 #0.000 +$ao_Mul = 2.0 +$ao_Mul_DecimalPlaces = 1 #0.0 +$ao_blurRange = 0.720 +$ao_blurRange_DecimalPlaces = 3 #0.000 +$ao_blurScale = 0.75 +$ao_blurScale_DecimalPlaces = 2 #0.00 + +$blur = 0x6F666600 #off +$blurStr = 0.2 +$blurStr_DecimalPlaces = 1 #0.0 +$blurSub = 0.05 +$blurSub_DecimalPlaces = 2 #0.00 + +$shadowStr = 1.0 +$shadowStr_DecimalPlaces = 1 #0.0 +$shadowHalf = 0x6F666600 #off + +$simShwStr = 1.6 +$simShwStr_DecimalPlaces = 1 #0.0 +$simShwIn = 0.7 +$simShwIn_DecimalPlaces = 1 #0.0 +$simShwMin = 0.15 +$simShwMin_DecimalPlaces = 2 #0.00 + +$sRGBMode = 0x6F6E0000 #on +$gamma = 6 +$gamma_DecimalPlaces = 0 #0 + +$ao_av_CenterWeight = 1.090 +$ao_av_CenterWeight_DecimalPlaces = 3 #0.000 +$ao_av_MaxDistance = 0.15 +$ao_av_MaxDistance_DecimalPlaces = 2 #0.00 +$ao_av_MaxRadius = 0.2 +$ao_av_MaxRadius_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutStart = 70000.0 +$ao_av_FadeOutStart_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutDistance = 10000.0 +$ao_av_FadeOutDistance_DecimalPlaces = 1 #0.0 +$ao_av_BlurFallOff = 0.050 +$ao_av_BlurFallOff_DecimalPlaces = 3 #0.000 +$ao_av_BlurScale = 1.6 +$ao_av_BlurScale_DecimalPlaces = 1 #0.0 +$ao_av_Shwstr = 0.5 +$ao_av_Shwstr_DecimalPlaces = 1 #0.0 + +$cam_near = 0.1 +$cam_near_DecimalPlaces = 1 #0.0 +$cam_far = 80000.0 +$cam_far_DecimalPlaces = 1 #0.0 + +$avmp0101 = 0.5 +$avmp0102 = 0.5 +$avmp0103 = 0.5 +$avmp01_DecimalPlaces = 1 #0.0 +$avmp0201 = 0.5 +$avmp0202 = 0.5 +$avmp0203 = 0.5 +$avmp02_DecimalPlaces = 1 #0.0 +$avmp0301 = 0.5 +$avmp0302 = 0.5 +$avmp0303 = 0.5 +$avmp03_DecimalPlaces = 1 #0.0 +$avmp0401 = 0.5 +$avmp0402 = 0.5 +$avmp0403 = 0.5 +$avmp04_DecimalPlaces = 1 #0.0 +$avmp0501 = 0.5 +$avmp0502 = 0.5 +$avmp0503 = 0.5 +$avmp05_DecimalPlaces = 1 #0.0 +$avmp0601 = 0.5 +$avmp0602 = 0.5 +$avmp0603 = 0.5 +$avmp06_DecimalPlaces = 1 #0.0 +$avmp0701 = 0.5 +$avmp0702 = 0.5 +$avmp0703 = 0.5 +$avmp07_DecimalPlaces = 1 #0.0 +$avmp0801 = 0.5 +$avmp0802 = 0.5 +$avmp0803 = 0.5 +$avmp08_DecimalPlaces = 1 #0.0 +$avmp0901 = 0.5 +$avmp0902 = 0.5 +$avmp0903 = 0.5 +$avmp09_DecimalPlaces = 1 #0.0 +$avmp1001 = 0.5 +$avmp1002 = 0.5 +$avmp1003 = 0.5 +$avmp10_DecimalPlaces = 1 #0.0 +$avmp1101 = 0.5 +$avmp1102 = 0.5 +$avmp1103 = 0.5 +$avmp11_DecimalPlaces = 1 #0.0 +$avmp1201 = 0.5 +$avmp1202 = 0.5 +$avmp1203 = 0.5 +$avmp12_DecimalPlaces = 1 #0.0 +$avmp1301 = 0.5 +$avmp1302 = 0.5 +$avmp1303 = 0.5 +$avmp13_DecimalPlaces = 1 #0.0 +$avmp1401 = 0.5 +$avmp1402 = 0.5 +$avmp1403 = 0.5 +$avmp14_DecimalPlaces = 1 #0.0 +$avmp1501 = 0.5 +$avmp1502 = 0.5 +$avmp1503 = 0.5 +$avmp15_DecimalPlaces = 1 #0.0 +$avmp1601 = 0.5 +$avmp1602 = 0.5 +$avmp1603 = 0.5 +$avmp16_DecimalPlaces = 1 #0.0 + +$cloud_h_min = 1000.0 +$cloud_h_min_DecimalPlaces = 1 #0.0 +$cloud_h_max = 1100.0 +$cloud_h_max_DecimalPlaces = 1 #0.0 + +$optionsshown = 3 #<- can replace with 4 if using your own preset + +[Preset] +category = "Options Shown" +name = Basic Options +$optionsshown = 3 + +[Preset] +category = "Options Shown" +name = Advanced Options +$optionsshown = 2 + +#Make your own preset to help with the so many options +#below are 2 examples of how to make your own preset + +#[Preset] +#category = "Options Shown" +#name = User Created Preset Example 1 (AA off, sRGB off, etc.) +#$optionsshown = 4 +#$AntiAliasing = 0x6F666600 #off +#$sRGBMode = 0x6F666600 #off + +#[Preset] +#category = "Options Shown" +#name = User Created Preset Example 2 (sRGB, title screen clouds, etc.) +#$optionsshown = 4 +#$bloom = 0x6F666600 #off +#$sRGBMode = 0x6F666600 #off +#$red_sclX = 4.0 +#$red_sclY = 4.0 +#$red_Auto = 0x6F666600 #off +#$red_AtMaxX = 4.0 +#$red_AtMaxY = 4.0 +#$red_AtMinX = 4.0 +#$red_AtMinY = 4.0 +#$cloud_h_min = 200.0 +#$cloud_h_max = 1500.0 + +[Preset] +category = "Options Shown" +name = ALL Options (will lag cemu if before 2.4) +$optionsshown = 1 + +#be careful when increasing decimal point precision +#there is only enough room in ram for 1988 letters/numbers +#the file by default has 1950 characters, so you can safely add ~38 extra decimal places +#if you need more decimal places for a few settings you can reduce the amount for other settings + +[Preset] +category = "tonemap" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$tonemap = 0x6F6E0000 #on + +[Preset] +category = "tonemap" +condition = $optionsshown <= 2 +name = off +$tonemap = 0x6F666600 #off + +[Preset] +category = "ssao" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$ssao = 0x6F6E0000 #on + +[Preset] +category = "ssao" +condition = $optionsshown <= 2 +name = off +$ssao = 0x6F666600 #off + +[Preset] #produces a swishy effect in the back of pharsis's room, probably has other effects +category = "bloom" +condition = $optionsshown <= 3 +name = on (default) +default = 1 +$bloom = 0x6F6E0000 #on + +[Preset] #make pharsis's room much darker, probably has other effects +category = "bloom" +condition = $optionsshown <= 3 +name = off +$bloom = 0x6F666600 #off + +[Preset] +category = "godray" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$godray = 0x6F6E0000 #on + +[Preset] +category = "godray" +condition = $optionsshown <= 2 +name = off +$godray = 0x6F666600 #off + +[Preset] #enable the game's anti-aliasing +category = "AntiAliasing" +condition = $optionsshown <= 3 +name = on (default) +default = 1 +$AntiAliasing = 0x6F6E0000 #on + +[Preset] #disable the game's anti-aliasing +category = "AntiAliasing" +condition = $optionsshown <= 3 +name = off +$AntiAliasing = 0x6F666600 #off + +[Preset] +category = "ColReduction" +condition = $optionsshown <= 2 +name = on +$ColReduction = 0x6F6E0000 #on + +[Preset] +category = "ColReduction" +condition = $optionsshown <= 2 +name = off (default) +default = 1 +$ColReduction = 0x6F666600 #off + +[Preset] +category = "dof" +condition = $optionsshown <= 2 +name = on +$dof = 0x6F6E0000 #on + +[Preset] +category = "dof" +condition = $optionsshown <= 2 +name = off (default) +default = 1 +$dof = 0x6F666600 #off + +[Preset] +category = "lensFlare" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$lensFlare = 0x6F6E0000 #on + +[Preset] +category = "lensFlare" +condition = $optionsshown <= 2 +name = off +$lensFlare = 0x6F666600 #off + +[Preset] +category = "lut" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$lut = 0x6F6E0000 #on + +[Preset] +category = "lut" +condition = $optionsshown <= 2 +name = off +$lut = 0x6F666600 #off + +[Preset] +category = "luttex1" +condition = $optionsshown <= 1 +name = lutba (default) +default = 1 +$luttex1_s1 = 0x6C757462 #lutb +$luttex1_s2 = 0x61000000 #a + +[Preset] +category = "cube" +condition = $optionsshown <= 1 +name = cube (default) +default = 1 +$cube_s1 = 0x63756265 #cube + +[Preset] +category = "tonemax" +condition = $optionsshown <= 1 +name = 0.5 +$tonemax_DecimalPlaces = 1 #0.0 +$tonemax = 0.5 + +[Preset] +category = "tonemax" +condition = $optionsshown <= 1 +name = 2.5 (default) +default = 1 +$tonemax_DecimalPlaces = 1 #0.0 +$tonemax = 2.5 + +[Preset] +category = "tonemax" +condition = $optionsshown <= 1 +name = 4.0 +$tonemax_DecimalPlaces = 1 #0.0 +$tonemax = 4.0 + +[Preset] +category = "tonemin" +condition = $optionsshown <= 1 +name = 0.1 +$tonemin_DecimalPlaces = 1 #0.0 +$tonemin = 0.1 + +[Preset] +category = "tonemin" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$tonemin_DecimalPlaces = 1 #0.0 +$tonemin = 1.0 + +[Preset] +category = "tonemin" +condition = $optionsshown <= 1 +name = 3.0 +$tonemin_DecimalPlaces = 1 #0.0 +$tonemin = 3.0 + +[Preset] +category = "tonemul" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$tonemul_DecimalPlaces = 1 #0.0 +$tonemul = 1.0 + +[Preset] +category = "tonemul" +condition = $optionsshown <= 1 +name = 2.0 +$tonemul_DecimalPlaces = 1 #0.0 +$tonemul = 2.0 + +[Preset] +category = "toneLastmul" +condition = $optionsshown <= 1 +name = 0.5 +$toneLastmul_DecimalPlaces = 1 #0.0 +$toneLastmul = 0.5 + +[Preset] +category = "toneLastmul" +condition = $optionsshown <= 1 +name = 1.00 (default) +default = 1 +$toneLastmul_DecimalPlaces = 2 #0.00 +$toneLastmul = 1.00 + +[Preset] +category = "toneLastmul" +condition = $optionsshown <= 1 +name = 2.0 +$toneLastmul_DecimalPlaces = 1 #0.0 +$toneLastmul = 2.0 + +[Preset] +category = "toneBlmmax" +condition = $optionsshown <= 1 +name = 0.3 +$toneBlmmax_DecimalPlaces = 1 #0.0 +$toneBlmmax = 0.3 + +[Preset] +category = "toneBlmmax" +condition = $optionsshown <= 1 +name = 1.3 (default) +default = 1 +$toneBlmmax_DecimalPlaces = 1 #0.0 +$toneBlmmax = 1.3 + +[Preset] +category = "toneBlmmax" +condition = $optionsshown <= 1 +name = 2.3 +$toneBlmmax_DecimalPlaces = 1 #0.0 +$toneBlmmax = 2.3 + +[Preset] +category = "toneBlmmin" +condition = $optionsshown <= 1 +name = 0.1 +$toneBlmmin_DecimalPlaces = 1 #0.0 +$toneBlmmin = 0.1 + +[Preset] +category = "toneBlmmin" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$toneBlmmin_DecimalPlaces = 1 #0.0 +$toneBlmmin = 1.0 + +[Preset] +category = "toneBlmmin" +condition = $optionsshown <= 1 +name = 2.0 +$toneBlmmin_DecimalPlaces = 1 #0.0 +$toneBlmmin = 2.0 + +[Preset] +category = "toneBlmmul" +condition = $optionsshown <= 1 +name = 0.2 +$toneBlmmul_DecimalPlaces = 1 #0.0 +$toneBlmmul = 0.2 + +[Preset] +category = "toneBlmmul" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$toneBlmmul_DecimalPlaces = 1 #0.0 +$toneBlmmul = 1.0 + +[Preset] +category = "toneBlmmul" +condition = $optionsshown <= 1 +name = 2.5 +$toneBlmmul_DecimalPlaces = 1 #0.0 +$toneBlmmul = 2.5 + +[Preset] +category = "toneBlmLastmul" +condition = $optionsshown <= 1 +name = 0.2 +$toneBlmLastmul_DecimalPlaces = 1 #0.0 +$toneBlmLastmul = 0.2 + +[Preset] +category = "toneBlmLastmul" +condition = $optionsshown <= 1 +name = 0.8 (default) +default = 1 +$toneBlmLastmul_DecimalPlaces = 1 #0.0 +$toneBlmLastmul = 0.8 + +[Preset] +category = "toneBlmLastmul" +condition = $optionsshown <= 1 +name = 3.0 +$toneBlmLastmul_DecimalPlaces = 1 #0.0 +$toneBlmLastmul = 3.0 + +[Preset] +category = "godray_inival" +condition = $optionsshown <= 1 +name = 0.8 +$godray_inival_DecimalPlaces = 1 #0.0 +$godray_inival = 0.8 + +[Preset] +category = "godray_inival" +condition = $optionsshown <= 1 +name = 0.95 (default) +default = 1 +$godray_inival_DecimalPlaces = 2 #0.00 +$godray_inival = 0.95 + +[Preset] +category = "godray_inival" +condition = $optionsshown <= 1 +name = 1.2 +$godray_inival_DecimalPlaces = 1 #0.0 +$godray_inival = 1.2 + +[Preset] +category = "godray_decay" +condition = $optionsshown <= 1 +name = 0.33 +$godray_decay_DecimalPlaces = 2 #0.00 +$godray_decay = 0.33 + +[Preset] +category = "godray_decay" +condition = $optionsshown <= 1 +name = 0.99 (default) +default = 1 +$godray_decay_DecimalPlaces = 2 #0.00 +$godray_decay = 0.99 + +[Preset] +category = "godray_decay" +condition = $optionsshown <= 1 +name = 1.66 +$godray_decay_DecimalPlaces = 2 #0.00 +$godray_decay = 1.66 + +[Preset] +category = "godray_scale" +condition = $optionsshown <= 1 +name = 0.95 +$godray_scale_DecimalPlaces = 2 #0.00 +$godray_scale = 0.95 + +[Preset] +category = "godray_scale" +condition = $optionsshown <= 1 +name = 1.235 (default) +default = 1 +$godray_scale_DecimalPlaces = 3 #0.000 +$godray_scale = 1.235 + +[Preset] +category = "godray_scale" +condition = $optionsshown <= 1 +name = 2.0 +$godray_scale_DecimalPlaces = 1 #0.0 +$godray_scale = 2.0 + +[Preset] +category = "blm_border_sub" +condition = $optionsshown <= 1 +name = 0.01 +$blm_border_sub_DecimalPlaces = 2 #0.00 +$blm_border_sub = 0.01 + +[Preset] +category = "blm_border_sub" +condition = $optionsshown <= 1 +name = 0.20 (default) +default = 1 +$blm_border_sub_DecimalPlaces = 2 #0.00 +$blm_border_sub = 0.20 + +[Preset] +category = "blm_border_sub" +condition = $optionsshown <= 1 +name = 0.99 +$blm_border_sub_DecimalPlaces = 2 #0.00 +$blm_border_sub = 0.99 + +[Preset] +category = "blm_border_mul" +condition = $optionsshown <= 1 +name = 0.05 +$blm_border_mul_DecimalPlaces = 2 #0.00 +$blm_border_mul = 0.05 + +[Preset] +category = "blm_border_mul" +condition = $optionsshown <= 1 +name = 0.45 (default) +default = 1 +$blm_border_mul_DecimalPlaces = 2 #0.00 +$blm_border_mul = 0.45 + +[Preset] +category = "blm_border_mul" +condition = $optionsshown <= 1 +name = 2.0 +$blm_border_mul_DecimalPlaces = 1 #0.0 +$blm_border_mul = 2.0 + +[Preset] +category = "blm_border_sub2" +condition = $optionsshown <= 1 +name = 0.5 +$blm_border_sub2_DecimalPlaces = 1 #0.0 +$blm_border_sub2 = 0.5 + +[Preset] +category = "blm_border_sub2" +condition = $optionsshown <= 1 +name = 3.0 (default) +default = 1 +$blm_border_sub2_DecimalPlaces = 1 #0.0 +$blm_border_sub2 = 3.0 + +[Preset] +category = "blm_border_sub2" +condition = $optionsshown <= 1 +name = 6.0 +$blm_border_sub2_DecimalPlaces = 1 #0.0 +$blm_border_sub2 = 6.0 + +[Preset] +category = "blm_border_mul2" +condition = $optionsshown <= 1 +name = 0.5 +$blm_border_mul2_DecimalPlaces = 1 #0.0 +$blm_border_mul2 = 0.5 + +[Preset] +category = "blm_border_mul2" +condition = $optionsshown <= 1 +name = 1.5 (default) +default = 1 +$blm_border_mul2_DecimalPlaces = 1 #0.0 +$blm_border_mul2 = 1.5 + +[Preset] +category = "blm_border_mul2" +condition = $optionsshown <= 1 +name = 2.5 +$blm_border_mul2_DecimalPlaces = 1 #0.0 +$blm_border_mul2 = 2.5 + +[Preset] +category = "blm_border_max" +condition = $optionsshown <= 1 +name = 0.5 +$blm_border_max_DecimalPlaces = 1 #0.0 +$blm_border_max = 0.5 + +[Preset] +category = "blm_border_max" +condition = $optionsshown <= 1 +name = 3.5 (default) +default = 1 +$blm_border_max_DecimalPlaces = 1 #0.0 +$blm_border_max = 3.5 + +[Preset] +category = "blm_border_max" +condition = $optionsshown <= 1 +name = 7.5 +$blm_border_max_DecimalPlaces = 1 #0.0 +$blm_border_max = 7.5 + +[Preset] +category = "blm_tex_mul" +condition = $optionsshown <= 1 +name = 0.5 +$blm_tex_mul_DecimalPlaces = 1 #0.0 +$blm_tex_mul = 0.5 + +[Preset] +category = "blm_tex_mul" +condition = $optionsshown <= 1 +name = 3.0 (default) +default = 1 +$blm_tex_mul_DecimalPlaces = 1 #0.0 +$blm_tex_mul = 3.0 + +[Preset] +category = "blm_tex_mul" +condition = $optionsshown <= 1 +name = 9.0 +$blm_tex_mul_DecimalPlaces = 1 #0.0 +$blm_tex_mul = 9.0 + +[Preset] +category = "blm_blurscale1" +condition = $optionsshown <= 1 +name = 0.1 +$blm_blurscale1_DecimalPlaces = 1 #0.0 +$blm_blurscale1 = 0.1 + +[Preset] +category = "blm_blurscale1" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$blm_blurscale1_DecimalPlaces = 1 #0.0 +$blm_blurscale1 = 1.0 + +[Preset] +category = "blm_blurscale1" +condition = $optionsshown <= 1 +name = 3.0 +$blm_blurscale1_DecimalPlaces = 1 #0.0 +$blm_blurscale1 = 3.0 + +[Preset] +category = "blm_blurscale2" +condition = $optionsshown <= 1 +name = 0.1 +$blm_blurscale2_DecimalPlaces = 1 #0.0 +$blm_blurscale2 = 0.1 + +[Preset] +category = "blm_blurscale2" +condition = $optionsshown <= 1 +name = 0.7 (default) +default = 1 +$blm_blurscale2_DecimalPlaces = 1 #0.0 +$blm_blurscale2 = 0.7 + +[Preset] +category = "blm_blurscale2" +condition = $optionsshown <= 1 +name = 3.1 +$blm_blurscale2_DecimalPlaces = 1 #0.0 +$blm_blurscale2 = 3.1 + +[Preset] +category = "blm_blurscale3" +condition = $optionsshown <= 1 +name = 0.5 +$blm_blurscale3_DecimalPlaces = 1 #0.0 +$blm_blurscale3 = 0.5 + +[Preset] +category = "blm_blurscale3" +condition = $optionsshown <= 1 +name = 1.5 (default) +default = 1 +$blm_blurscale3_DecimalPlaces = 1 #0.0 +$blm_blurscale3 = 1.5 + +[Preset] +category = "blm_blurscale3" +condition = $optionsshown <= 1 +name = 3.5 +$blm_blurscale3_DecimalPlaces = 1 #0.0 +$blm_blurscale3 = 3.5 + +[Preset] +category = "blm_blurRange1" +condition = $optionsshown <= 1 +name = 0.1 +$blm_blurRange1_DecimalPlaces = 1 #0.0 +$blm_blurRange1 = 0.1 + +[Preset] +category = "blm_blurRange1" +condition = $optionsshown <= 1 +name = 0.9 (default) +default = 1 +$blm_blurRange1_DecimalPlaces = 1 #0.0 +$blm_blurRange1 = 0.9 + +[Preset] +category = "blm_blurRange1" +condition = $optionsshown <= 1 +name = 10.0 +$blm_blurRange1_DecimalPlaces = 1 #0.0 +$blm_blurRange1 = 10.0 + +[Preset] +category = "blm_blurRange2" +condition = $optionsshown <= 1 +name = 0.1 +$blm_blurRange2_DecimalPlaces = 1 #0.0 +$blm_blurRange2 = 0.1 + +[Preset] +category = "blm_blurRange2" +condition = $optionsshown <= 1 +name = 0.8 (default) +default = 1 +$blm_blurRange2_DecimalPlaces = 1 #0.0 +$blm_blurRange2 = 0.8 + +[Preset] +category = "blm_blurRange2" +condition = $optionsshown <= 1 +name = 9.0 +$blm_blurRange2_DecimalPlaces = 1 #0.0 +$blm_blurRange2 = 9.0 + +[Preset] +category = "blm_blurRange3" +condition = $optionsshown <= 1 +name = 0.1 +$blm_blurRange3_DecimalPlaces = 1 #0.0 +$blm_blurRange3 = 0.1 + +[Preset] +category = "blm_blurRange3" +condition = $optionsshown <= 1 +name = 0.8 (default) +default = 1 +$blm_blurRange3_DecimalPlaces = 1 #0.0 +$blm_blurRange3 = 0.8 + +[Preset] +category = "blm_blurRange3" +condition = $optionsshown <= 1 +name = 9.0 +$blm_blurRange3_DecimalPlaces = 1 #0.0 +$blm_blurRange3 = 9.0 + +[Preset] +category = "blm_scale1" +condition = $optionsshown <= 1 +name = 0.02 +$blm_scale1_DecimalPlaces = 2 #0.00 +$blm_scale1 = 0.02 + +[Preset] +category = "blm_scale1" +condition = $optionsshown <= 1 +name = 0.2 (default) +default = 1 +$blm_scale1_DecimalPlaces = 1 #0.0 +$blm_scale1 = 0.2 + +[Preset] +category = "blm_scale1" +condition = $optionsshown <= 1 +name = 2.0 +$blm_scale1_DecimalPlaces = 1 #0.0 +$blm_scale1 = 2.0 + +[Preset] +category = "blm_scale2" +condition = $optionsshown <= 1 +name = 0.01 +$blm_scale2_DecimalPlaces = 2 #0.00 +$blm_scale2 = 0.01 + +[Preset] +category = "blm_scale2" +condition = $optionsshown <= 1 +name = 0.1 (default) +default = 1 +$blm_scale2_DecimalPlaces = 1 #0.0 +$blm_scale2 = 0.1 + +[Preset] +category = "blm_scale2" +condition = $optionsshown <= 1 +name = 2.0 +$blm_scale2_DecimalPlaces = 1 #0.0 +$blm_scale2 = 2.0 + +[Preset] +category = "blm_scale3" +condition = $optionsshown <= 1 +name = 0.01 +$blm_scale3_DecimalPlaces = 2 #0.00 +$blm_scale3 = 0.01 + +[Preset] +category = "blm_scale3" +condition = $optionsshown <= 1 +name = 0.1 (default) +default = 1 +$blm_scale3_DecimalPlaces = 1 #0.0 +$blm_scale3 = 0.1 + +[Preset] +category = "blm_scale3" +condition = $optionsshown <= 1 +name = 2.0 +$blm_scale3_DecimalPlaces = 1 #0.0 +$blm_scale3 = 2.0 + +[Preset] +category = "lens_max" +condition = $optionsshown <= 1 +name = 0 +$lens_max_DecimalPlaces = 0 #0 +$lens_max = 0 + +[Preset] +category = "lens_max" +condition = $optionsshown <= 1 +name = 1 (default) +default = 1 +$lens_max_DecimalPlaces = 0 #0 +$lens_max = 1 + +[Preset] +category = "lens_rot" +condition = $optionsshown <= 1 +name = 0 (default) +default = 1 +$lens_rot_DecimalPlaces = 0 #0 +$lens_rot = 0 + +[Preset] +category = "lens_rot" +condition = $optionsshown <= 1 +name = 1 +$lens_rot_DecimalPlaces = 0 #0 +$lens_rot = 1 + +[Preset] +category = "lens_sub" +condition = $optionsshown <= 1 +name = 0.5 +$lens_sub_DecimalPlaces = 1 #0.0 +$lens_sub = 0.5 + +[Preset] +category = "lens_sub" +condition = $optionsshown <= 1 +name = 1.5 (default) +default = 1 +$lens_sub_DecimalPlaces = 1 #0.0 +$lens_sub = 1.5 + +[Preset] +category = "lens_sub" +condition = $optionsshown <= 1 +name = 2.5 +$lens_sub_DecimalPlaces = 1 #0.0 +$lens_sub = 2.5 + +[Preset] +category = "lens_mul" +condition = $optionsshown <= 1 +name = 0.5 +$lens_mul_DecimalPlaces = 1 #0.0 +$lens_mul = 0.5 + +[Preset] +category = "lens_mul" +condition = $optionsshown <= 1 +name = 3.5 (default) +default = 1 +$lens_mul_DecimalPlaces = 1 #0.0 +$lens_mul = 3.5 + +[Preset] +category = "lens_mul" +condition = $optionsshown <= 1 +name = 9.5 +$lens_mul_DecimalPlaces = 1 #0.0 +$lens_mul = 9.5 + +[Preset] +category = "lens_weight" +condition = $optionsshown <= 1 +name = 0.002 +$lens_weight_DecimalPlaces = 3 #0.000 +$lens_weight = 0.002 + +[Preset] +category = "lens_weight" +condition = $optionsshown <= 1 +name = 0.1 (default) +default = 1 +$lens_weight_DecimalPlaces = 1 #0.0 +$lens_weight = 0.1 + +[Preset] +category = "lens_weight" +condition = $optionsshown <= 1 +name = 9.0 +$lens_weight_DecimalPlaces = 1 #0.0 +$lens_weight = 9.0 + +[Preset] +category = "lens_decay" +condition = $optionsshown <= 1 +name = 0.1 +$lens_decay_DecimalPlaces = 1 #0.0 +$lens_decay = 0.1 + +[Preset] +category = "lens_decay" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$lens_decay_DecimalPlaces = 1 #0.0 +$lens_decay = 1.0 + +[Preset] +category = "lens_decay" +condition = $optionsshown <= 1 +name = 5.0 +$lens_decay_DecimalPlaces = 1 #0.0 +$lens_decay = 5.0 + +[Preset] +category = "lens_str" +condition = $optionsshown <= 1 +name = 0.2 +$lens_str_DecimalPlaces = 1 #0.0 +$lens_str = 0.2 + +[Preset] +category = "lens_str" +condition = $optionsshown <= 1 +name = 1.5 (default) +default = 1 +$lens_str_DecimalPlaces = 1 #0.0 +$lens_str = 1.5 + +[Preset] +category = "lens_str" +condition = $optionsshown <= 1 +name = 5.0 +$lens_str_DecimalPlaces = 1 #0.0 +$lens_str = 5.0 + +[Preset] +category = "lens_paMax" +condition = $optionsshown <= 1 +name = 0.5 +$lens_paMax_DecimalPlaces = 1 #0.0 +$lens_paMax = 0.5 + +[Preset] +category = "lens_paMax" +condition = $optionsshown <= 1 +name = 4.0 (default) +default = 1 +$lens_paMax_DecimalPlaces = 1 #0.0 +$lens_paMax = 4.0 + +[Preset] +category = "lens_paMax" +condition = $optionsshown <= 1 +name = 12.0 +$lens_paMax_DecimalPlaces = 1 #0.0 +$lens_paMax = 12.0 + +[Preset] +category = "lens_UVDecay" +condition = $optionsshown <= 1 +name = 0.01 +$lens_UVDecay_DecimalPlaces = 2 #0.00 +$lens_UVDecay = 0.01 + +[Preset] +category = "lens_UVDecay" +condition = $optionsshown <= 1 +name = 0.290 (default) +default = 1 +$lens_UVDecay_DecimalPlaces = 3 #0.000 +$lens_UVDecay = 0.290 + +[Preset] +category = "lens_UVDecay" +condition = $optionsshown <= 1 +name = 0.99 +$lens_UVDecay_DecimalPlaces = 2 #0.00 +$lens_UVDecay = 0.99 + +[Preset] #currently has no affect on cemu +category = "AA_Sharpness" +condition = $optionsshown <= 1 +name = 1.0 +$AA_Sharpness_DecimalPlaces = 1 #0.0 +$AA_Sharpness = 1.0 + +[Preset] #currently has no affect on cemu +category = "AA_Sharpness" +condition = $optionsshown <= 1 +name = 8.0 (default) +default = 1 +$AA_Sharpness_DecimalPlaces = 1 #0.0 +$AA_Sharpness = 8.0 + +[Preset] #currently has no affect on cemu +category = "AA_Sharpness" +condition = $optionsshown <= 1 +name = 32.0 +$AA_Sharpness_DecimalPlaces = 1 #0.0 +$AA_Sharpness = 32.0 + +[Preset] #currently has no affect on cemu +category = "AA_Range" +condition = $optionsshown <= 1 +name = 0.1 +$AA_Range_DecimalPlaces = 1 #0.0 +$AA_Range = 0.1 + +[Preset] #currently has no affect on cemu +category = "AA_Range" +condition = $optionsshown <= 1 +name = 0.5 (default) +default = 1 +$AA_Range_DecimalPlaces = 1 #0.0 +$AA_Range = 0.5 + +[Preset] #currently has no affect on cemu +category = "AA_Range" +condition = $optionsshown <= 1 +name = 2.0 +$AA_Range_DecimalPlaces = 1 #0.0 +$AA_Range = 2.0 + +[Preset] #currently has no affect on cemu +category = "AA_Threshold" +condition = $optionsshown <= 1 +name = 0.01 +$AA_Threshold_DecimalPlaces = 2 #0.00 +$AA_Threshold = 0.01 + +[Preset] #currently has no affect on cemu +category = "AA_Threshold" +condition = $optionsshown <= 1 +name = 0.17 (default) +default = 1 +$AA_Threshold_DecimalPlaces = 2 #0.00 +$AA_Threshold = 0.17 + +[Preset] #currently has no affect on cemu +category = "AA_Threshold" +condition = $optionsshown <= 1 +name = 0.99 +$AA_Threshold_DecimalPlaces = 2 #0.00 +$AA_Threshold = 0.99 + +[Preset] #currently has no affect on cemu +category = "AA_ThresholdMin" +condition = $optionsshown <= 1 +name = 0.005 +$AA_ThresholdMin_DecimalPlaces = 3 #0.000 +$AA_ThresholdMin = 0.005 + +[Preset] #currently has no affect on cemu +category = "AA_ThresholdMin" +condition = $optionsshown <= 1 +name = 0.05 (default) +default = 1 +$AA_ThresholdMin_DecimalPlaces = 2 #0.00 +$AA_ThresholdMin = 0.05 + +[Preset] #currently has no affect on cemu +category = "AA_ThresholdMin" +condition = $optionsshown <= 1 +name = 0.9 +$AA_ThresholdMin_DecimalPlaces = 1 #0.0 +$AA_ThresholdMin = 0.9 + +[Preset] +category = "red_sclX" +condition = $optionsshown <= 1 +name = 0.06 +$red_sclX_DecimalPlaces = 2 #0.00 +$red_sclX = 0.06 + +[Preset] +category = "red_sclX" +condition = $optionsshown <= 1 +name = 0.96 (default) +default = 1 +$red_sclX_DecimalPlaces = 2 #0.00 +$red_sclX = 0.96 + +[Preset] +category = "red_sclX" +condition = $optionsshown <= 1 +name = 4.0 +$red_sclX_DecimalPlaces = 1 #0.0 +$red_sclX = 4.0 + +[Preset] +category = "red_sclY" +condition = $optionsshown <= 1 +name = 0.1 +$red_sclY_DecimalPlaces = 1 #0.0 +$red_sclY = 0.1 + +[Preset] +category = "red_sclY" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$red_sclY_DecimalPlaces = 1 #0.0 +$red_sclY = 1.0 + +[Preset] +category = "red_sclY" +condition = $optionsshown <= 1 +name = 4.0 +$red_sclY_DecimalPlaces = 1 #0.0 +$red_sclY = 4.0 + +[Preset] +category = "red_Auto" +condition = $optionsshown <= 2 +name = on (default) +default = 1 +$red_Auto = 0x6F6E0000 #on + +[Preset] +category = "red_Auto" +condition = $optionsshown <= 2 +name = off +$red_Auto = 0x6F666600 #off + +[Preset] +category = "red_AtMaxX" +condition = $optionsshown <= 1 +name = 0.06 +$red_AtMaxX_DecimalPlaces = 2 #0.00 +$red_AtMaxX = 0.06 + +[Preset] +category = "red_AtMaxX" +condition = $optionsshown <= 1 +name = 0.96 (default) +default = 1 +$red_AtMaxX_DecimalPlaces = 2 #0.00 +$red_AtMaxX = 0.96 + +[Preset] +category = "red_AtMaxX" +condition = $optionsshown <= 1 +name = 4.0 +$red_AtMaxX_DecimalPlaces = 1 #0.0 +$red_AtMaxX = 4.0 + +[Preset] +category = "red_AtMaxY" +condition = $optionsshown <= 1 +name = 0.1 +$red_AtMaxY_DecimalPlaces = 1 #0.0 +$red_AtMaxY = 0.1 + +[Preset] +category = "red_AtMaxY" +condition = $optionsshown <= 1 +name = 1.0 (default) +default = 1 +$red_AtMaxY_DecimalPlaces = 1 #0.0 +$red_AtMaxY = 1.0 + +[Preset] +category = "red_AtMaxY" +condition = $optionsshown <= 1 +name = 4.0 +$red_AtMaxY_DecimalPlaces = 1 #0.0 +$red_AtMaxY = 4.0 + +[Preset] +category = "red_AtMinX" +condition = $optionsshown <= 1 +name = 0.1 +$red_AtMinX_DecimalPlaces = 1 #0.0 +$red_AtMinX = 0.1 + +[Preset] +category = "red_AtMinX" +condition = $optionsshown <= 1 +name = 0.6 (default) +default = 1 +$red_AtMinX_DecimalPlaces = 1 #0.0 +$red_AtMinX = 0.6 + +[Preset] +category = "red_AtMinX" +condition = $optionsshown <= 1 +name = 4.0 +$red_AtMinX_DecimalPlaces = 1 #0.0 +$red_AtMinX = 4.0 + +[Preset] +category = "red_AtMinY" +condition = $optionsshown <= 1 +name = 0.06 +$red_AtMinY_DecimalPlaces = 2 #0.00 +$red_AtMinY = 0.06 + +[Preset] +category = "red_AtMinY" +condition = $optionsshown <= 1 +name = 0.86 (default) +default = 1 +$red_AtMinY_DecimalPlaces = 2 #0.00 +$red_AtMinY = 0.86 + +[Preset] +category = "red_AtMinY" +condition = $optionsshown <= 1 +name = 4.0 +$red_AtMinY_DecimalPlaces = 1 #0.0 +$red_AtMinY = 4.0 + +[Preset] +category = "red_AtRate" +condition = $optionsshown <= 1 +name = 10.0 +$red_AtRate_DecimalPlaces = 1 #0.0 +$red_AtRate = 10.0 + +[Preset] +category = "red_AtRate" +condition = $optionsshown <= 1 +name = 100.0 (default) +default = 1 +$red_AtRate_DecimalPlaces = 1 #0.0 +$red_AtRate = 100.0 + +[Preset] +category = "red_AtRate" +condition = $optionsshown <= 1 +name = 1000.0 +$red_AtRate_DecimalPlaces = 1 #0.0 +$red_AtRate = 1000.0 + +[Preset] +category = "ao_Lengs" +condition = $optionsshown <= 1 +name = 0.01 +$ao_Lengs_DecimalPlaces = 2 #0.00 +$ao_Lengs = 0.01 + +[Preset] +category = "ao_Lengs" +condition = $optionsshown <= 1 +name = 0.1 (default) +default = 1 +$ao_Lengs_DecimalPlaces = 1 #0.0 +$ao_Lengs = 0.1 + +[Preset] +category = "ao_Lengs" +condition = $optionsshown <= 1 +name = 1.1 +$ao_Lengs_DecimalPlaces = 1 #0.0 +$ao_Lengs = 1.1 + +[Preset] +category = "ao_LengsRatio" +condition = $optionsshown <= 1 +name = 0.5 +$ao_LengsRatio_DecimalPlaces = 1 #0.0 +$ao_LengsRatio = 0.5 + +[Preset] +category = "ao_LengsRatio" +condition = $optionsshown <= 1 +name = 1.98 (default) +default = 1 +$ao_LengsRatio_DecimalPlaces = 2 #0.00 +$ao_LengsRatio = 1.98 + +[Preset] +category = "ao_LengsRatio" +condition = $optionsshown <= 1 +name = 5.0 +$ao_LengsRatio_DecimalPlaces = 1 #0.0 +$ao_LengsRatio = 5.0 + +[Preset] +category = "ao_range" +condition = $optionsshown <= 1 +name = 0.7 +$ao_range_DecimalPlaces = 1 #0.0 +$ao_range = 0.7 + +[Preset] +category = "ao_range" +condition = $optionsshown <= 1 +name = 5.7 (default) +default = 1 +$ao_range_DecimalPlaces = 1 #0.0 +$ao_range = 5.7 + +[Preset] +category = "ao_range" +condition = $optionsshown <= 1 +name = 12.0 +$ao_range_DecimalPlaces = 1 #0.0 +$ao_range = 12.0 + +[Preset] +category = "ao_rangeRatio" +condition = $optionsshown <= 1 +name = 0.1 +$ao_rangeRatio_DecimalPlaces = 1 #0.0 +$ao_rangeRatio = 0.1 + +[Preset] +category = "ao_rangeRatio" +condition = $optionsshown <= 1 +name = 1.000 (default) +default = 1 +$ao_rangeRatio_DecimalPlaces = 3 #0.000 +$ao_rangeRatio = 1.000 + +[Preset] +category = "ao_rangeRatio" +condition = $optionsshown <= 1 +name = 6.0 +$ao_rangeRatio_DecimalPlaces = 1 #0.0 +$ao_rangeRatio = 6.0 + +[Preset] +category = "ao_sub" +condition = $optionsshown <= 1 +name = 0.01 +$ao_sub_DecimalPlaces = 2 #0.00 +$ao_sub = 0.01 + +[Preset] +category = "ao_sub" +condition = $optionsshown <= 1 +name = 0.02 (default) +default = 1 +$ao_sub_DecimalPlaces = 2 #0.00 +$ao_sub = 0.02 + +[Preset] +category = "ao_sub" +condition = $optionsshown <= 1 +name = 0.5 +$ao_sub_DecimalPlaces = 1 #0.0 +$ao_sub = 0.5 + +[Preset] +category = "ao_subRatio" +condition = $optionsshown <= 1 +name = 0.001 +$ao_subRatio_DecimalPlaces = 3 #0.000 +$ao_subRatio = 0.001 + +[Preset] +category = "ao_subRatio" +condition = $optionsshown <= 1 +name = 0.150 (default) +default = 1 +$ao_subRatio_DecimalPlaces = 3 #0.000 +$ao_subRatio = 0.150 + +[Preset] +category = "ao_subRatio" +condition = $optionsshown <= 1 +name = 0.99 +$ao_subRatio_DecimalPlaces = 2 #0.00 +$ao_subRatio = 0.99 + +[Preset] +category = "ao_Mul" +condition = $optionsshown <= 1 +name = 0.5 +$ao_Mul_DecimalPlaces = 1 #0.0 +$ao_Mul = 0.5 + +[Preset] +category = "ao_Mul" +condition = $optionsshown <= 1 +name = 2.0 (default) +default = 1 +$ao_Mul_DecimalPlaces = 1 #0.0 +$ao_Mul = 2.0 + +[Preset] +category = "ao_Mul" +condition = $optionsshown <= 1 +name = 8.0 +$ao_Mul_DecimalPlaces = 1 #0.0 +$ao_Mul = 8.0 + +[Preset] +category = "ao_blurRange" +condition = $optionsshown <= 1 +name = 0.02 +$ao_blurRange_DecimalPlaces = 2 #0.00 +$ao_blurRange = 0.02 + +[Preset] +category = "ao_blurRange" +condition = $optionsshown <= 1 +name = 0.720 (default) +default = 1 +$ao_blurRange_DecimalPlaces = 3 #0.000 +$ao_blurRange = 0.720 + +[Preset] +category = "ao_blurRange" +condition = $optionsshown <= 1 +name = 1.7 +$ao_blurRange_DecimalPlaces = 1 #0.0 +$ao_blurRange = 1.7 + +[Preset] +category = "ao_blurScale" +condition = $optionsshown <= 1 +name = 0.01 +$ao_blurScale_DecimalPlaces = 2 #0.00 +$ao_blurScale = 0.01 + +[Preset] +category = "ao_blurScale" +condition = $optionsshown <= 1 +name = 0.75 (default) +default = 1 +$ao_blurScale_DecimalPlaces = 2 #0.00 +$ao_blurScale = 0.75 + +[Preset] +category = "ao_blurScale" +condition = $optionsshown <= 1 +name = 3.0 +$ao_blurScale_DecimalPlaces = 1 #0.0 +$ao_blurScale = 3.0 + +[Preset] +category = "blur" +condition = $optionsshown <= 2 +name = on +$blur = 0x6F6E0000 #on + +[Preset] +category = "blur" +condition = $optionsshown <= 2 +name = off (default) +default = 1 +$blur = 0x6F666600 #off + +[Preset] +category = "blurStr" +condition = $optionsshown <= 1 +name = 0.02 +$blurStr_DecimalPlaces = 2 #0.00 +$blurStr = 0.02 + +[Preset] +category = "blurStr" +condition = $optionsshown <= 1 +name = 0.2 (default) +default = 1 +$blurStr_DecimalPlaces = 1 #0.0 +$blurStr = 0.2 + +[Preset] +category = "blurStr" +condition = $optionsshown <= 1 +name = 2.0 +$blurStr_DecimalPlaces = 1 #0.0 +$blurStr = 2.0 + +[Preset] +category = "blurSub" +condition = $optionsshown <= 1 +name = 0.01 +$blurSub_DecimalPlaces = 2 #0.00 +$blurSub = 0.01 + +[Preset] +category = "blurSub" +condition = $optionsshown <= 1 +name = 0.05 (default) +default = 1 +$blurSub_DecimalPlaces = 2 #0.00 +$blurSub = 0.05 + +[Preset] +category = "blurSub" +condition = $optionsshown <= 1 +name = 0.9 +$blurSub_DecimalPlaces = 1 #0.0 +$blurSub = 0.9 + +[Preset] +category = "shadowStr" +condition = $optionsshown <= 2 +name = 0.1 +$shadowStr_DecimalPlaces = 1 #0.0 +$shadowStr = 0.1 + +[Preset] +category = "shadowStr" +condition = $optionsshown <= 2 +name = 1.0 (default) +default = 1 +$shadowStr_DecimalPlaces = 1 #0.0 +$shadowStr = 1.0 + +[Preset] +category = "shadowStr" +condition = $optionsshown <= 2 +name = 4.0 +$shadowStr_DecimalPlaces = 1 #0.0 +$shadowStr = 4.0 + +[Preset] +category = "shadowHalf" +condition = $optionsshown <= 2 +name = on +$shadowHalf = 0x6F6E0000 #on + +[Preset] +category = "shadowHalf" +condition = $optionsshown <= 2 +name = off (default) +default = 1 +$shadowHalf = 0x6F666600 #off + +[Preset] +category = "simShwStr" +condition = $optionsshown <= 1 +name = 0.1 +$simShwStr_DecimalPlaces = 1 #0.0 +$simShwStr = 0.1 + +[Preset] +category = "simShwStr" +condition = $optionsshown <= 1 +name = 1.6 (default) +default = 1 +$simShwStr_DecimalPlaces = 1 #0.0 +$simShwStr = 1.6 + +[Preset] +category = "simShwStr" +condition = $optionsshown <= 1 +name = 5.6 +$simShwStr_DecimalPlaces = 1 #0.0 +$simShwStr = 5.6 + +[Preset] +category = "simShwIn" +condition = $optionsshown <= 1 +name = 0.1 +$simShwIn_DecimalPlaces = 1 #0.0 +$simShwIn = 0.1 + +[Preset] +category = "simShwIn" +condition = $optionsshown <= 1 +name = 0.7 (default) +default = 1 +$simShwIn_DecimalPlaces = 1 #0.0 +$simShwIn = 0.7 + +[Preset] +category = "simShwIn" +condition = $optionsshown <= 1 +name = 3.5 +$simShwIn_DecimalPlaces = 1 #0.0 +$simShwIn = 3.5 + +[Preset] +category = "simShwMin" +condition = $optionsshown <= 1 +name = 0.01 +$simShwMin_DecimalPlaces = 2 #0.00 +$simShwMin = 0.01 + +[Preset] +category = "simShwMin" +condition = $optionsshown <= 1 +name = 0.15 (default) +default = 1 +$simShwMin_DecimalPlaces = 2 #0.00 +$simShwMin = 0.15 + +[Preset] +category = "simShwMin" +condition = $optionsshown <= 1 +name = 2.0 +$simShwMin_DecimalPlaces = 1 #0.0 +$simShwMin = 2.0 + +[Preset] #makes the game run in standard RGB mode +category = "sRGBMode" +condition = $optionsshown <= 3 +name = on (default) +default = 1 +$sRGBMode = 0x6F6E0000 #on + +[Preset] #makes the game run in some high dynamic range mode +category = "sRGBMode" +condition = $optionsshown <= 3 +name = off +$sRGBMode = 0x6F666600 #off + +[Preset] +category = "gamma" +condition = $optionsshown <= 2 +name = 0 +$gamma_DecimalPlaces = 0 #0 +$gamma = 0 + +[Preset] +category = "gamma" +condition = $optionsshown <= 2 +name = 1 +$gamma_DecimalPlaces = 0 #0 +$gamma = 1 + +[Preset] +category = "gamma" +condition = $optionsshown <= 2 +name = 6 (default) +default = 1 +$gamma_DecimalPlaces = 0 #0 +$gamma = 6 + +[Preset] +category = "gamma" +condition = $optionsshown <= 2 +name = 12 +$gamma_DecimalPlaces = 0 #0 +$gamma = 12 + +[Preset] +category = "ao_av_CenterWeight" +condition = $optionsshown <= 1 +name = 0.1 +$ao_av_CenterWeight_DecimalPlaces = 1 #0.0 +$ao_av_CenterWeight = 0.1 + +[Preset] +category = "ao_av_CenterWeight" +condition = $optionsshown <= 1 +name = 1.090 (default) +default = 1 +$ao_av_CenterWeight_DecimalPlaces = 3 #0.000 +$ao_av_CenterWeight = 1.090 + +[Preset] +category = "ao_av_CenterWeight" +condition = $optionsshown <= 1 +name = 3.0 +$ao_av_CenterWeight_DecimalPlaces = 1 #0.0 +$ao_av_CenterWeight = 3.0 + +[Preset] +category = "ao_av_MaxDistance" +condition = $optionsshown <= 1 +name = 0.01 +$ao_av_MaxDistance_DecimalPlaces = 2 #0.00 +$ao_av_MaxDistance = 0.01 + +[Preset] +category = "ao_av_MaxDistance" +condition = $optionsshown <= 1 +name = 0.15 (default) +default = 1 +$ao_av_MaxDistance_DecimalPlaces = 2 #0.00 +$ao_av_MaxDistance = 0.15 + +[Preset] +category = "ao_av_MaxDistance" +condition = $optionsshown <= 1 +name = 0.99 +$ao_av_MaxDistance_DecimalPlaces = 2 #0.00 +$ao_av_MaxDistance = 0.99 + +[Preset] +category = "ao_av_MaxRadius" +condition = $optionsshown <= 1 +name = 0.1 +$ao_av_MaxRadius_DecimalPlaces = 1 #0.0 +$ao_av_MaxRadius = 0.1 + +[Preset] +category = "ao_av_MaxRadius" +condition = $optionsshown <= 1 +name = 0.2 (default) +default = 1 +$ao_av_MaxRadius_DecimalPlaces = 1 #0.0 +$ao_av_MaxRadius = 0.2 + +[Preset] +category = "ao_av_MaxRadius" +condition = $optionsshown <= 1 +name = 0.4 +$ao_av_MaxRadius_DecimalPlaces = 1 #0.0 +$ao_av_MaxRadius = 0.4 + +[Preset] +category = "ao_av_FadeOutStart" +condition = $optionsshown <= 1 +name = 5.0 +$ao_av_FadeOutStart_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutStart = 5.0 + +[Preset] +category = "ao_av_FadeOutStart" +condition = $optionsshown <= 1 +name = 70000.0 (default) +default = 1 +$ao_av_FadeOutStart_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutStart = 70000.0 + +[Preset] +category = "ao_av_FadeOutStart" +condition = $optionsshown <= 1 +name = 990000.0 +$ao_av_FadeOutStart_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutStart = 990000.0 + +[Preset] +category = "ao_av_FadeOutDistance" +condition = $optionsshown <= 1 +name = 10.0 +$ao_av_FadeOutDistance_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutDistance = 10.0 + +[Preset] +category = "ao_av_FadeOutDistance" +condition = $optionsshown <= 1 +name = 10000.0 (default) +default = 1 +$ao_av_FadeOutDistance_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutDistance = 10000.0 + +[Preset] +category = "ao_av_FadeOutDistance" +condition = $optionsshown <= 1 +name = 990000.0 +$ao_av_FadeOutDistance_DecimalPlaces = 1 #0.0 +$ao_av_FadeOutDistance = 990000.0 + +[Preset] +category = "ao_av_BlurFallOff" +condition = $optionsshown <= 1 +name = 0.005 +$ao_av_BlurFallOff_DecimalPlaces = 3 #0.000 +$ao_av_BlurFallOff = 0.005 + +[Preset] +category = "ao_av_BlurFallOff" +condition = $optionsshown <= 1 +name = 0.050 (default) +default = 1 +$ao_av_BlurFallOff_DecimalPlaces = 3 #0.000 +$ao_av_BlurFallOff = 0.050 + +[Preset] +category = "ao_av_BlurFallOff" +condition = $optionsshown <= 1 +name = 0.99 +$ao_av_BlurFallOff_DecimalPlaces = 2 #0.00 +$ao_av_BlurFallOff = 0.99 + +[Preset] +category = "ao_av_BlurScale" +condition = $optionsshown <= 1 +name = 0.1 +$ao_av_BlurScale_DecimalPlaces = 1 #0.0 +$ao_av_BlurScale = 0.1 + +[Preset] +category = "ao_av_BlurScale" +condition = $optionsshown <= 1 +name = 1.6 (default) +default = 1 +$ao_av_BlurScale_DecimalPlaces = 1 #0.0 +$ao_av_BlurScale = 1.6 + +[Preset] +category = "ao_av_BlurScale" +condition = $optionsshown <= 1 +name = 6.7 +$ao_av_BlurScale_DecimalPlaces = 1 #0.0 +$ao_av_BlurScale = 6.7 + +[Preset] +category = "ao_av_Shwstr" +condition = $optionsshown <= 1 +name = 0.1 +$ao_av_Shwstr_DecimalPlaces = 1 #0.0 +$ao_av_Shwstr = 0.1 + +[Preset] +category = "ao_av_Shwstr" +condition = $optionsshown <= 1 +name = 0.5 (default) +default = 1 +$ao_av_Shwstr_DecimalPlaces = 1 #0.0 +$ao_av_Shwstr = 0.5 + +[Preset] +category = "ao_av_Shwstr" +condition = $optionsshown <= 1 +name = 2.0 +$ao_av_Shwstr_DecimalPlaces = 1 #0.0 +$ao_av_Shwstr = 2.0 + +[Preset] +category = "cam_near" +condition = $optionsshown <= 1 +name = -2000.0 +$cam_near_DecimalPlaces = 1 #0.0 +$cam_near = -2000.0 + +[Preset] +category = "cam_near" +condition = $optionsshown <= 1 +name = 0.1 (default) +default = 1 +$cam_near_DecimalPlaces = 1 #0.0 +$cam_near = 0.1 + +[Preset] +category = "cam_near" +condition = $optionsshown <= 1 +name = 2000.0 +$cam_near_DecimalPlaces = 1 #0.0 +$cam_near = 2000.0 + +[Preset] +category = "cam_near" +condition = $optionsshown <= 1 +name = 40000.0 +$cam_near_DecimalPlaces = 1 #0.0 +$cam_near = 40000.0 + +[Preset] +category = "cam_far" +condition = $optionsshown <= 1 +name = 20.0 +$cam_far_DecimalPlaces = 1 #0.0 +$cam_far = 20.0 + +[Preset] +category = "cam_far" +condition = $optionsshown <= 1 +name = 40000.0 +$cam_far_DecimalPlaces = 1 #0.0 +$cam_far = 40000.0 + +[Preset] +category = "cam_far" +condition = $optionsshown <= 1 +name = 80000.0 (default) +default = 1 +$cam_far_DecimalPlaces = 1 #0.0 +$cam_far = 80000.0 + +[Preset] +category = "cam_far" +condition = $optionsshown <= 1 +name = 160000.0 +$cam_far_DecimalPlaces = 1 #0.0 +$cam_far = 160000.0 + +[Preset] +category = "avmp01" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp01_DecimalPlaces = 1 #0.0 +$avmp0101 = 0.1 +$avmp0102 = 0.1 +$avmp0103 = 0.1 + +[Preset] +category = "avmp01" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp01_DecimalPlaces = 1 #0.0 +$avmp0101 = 0.5 +$avmp0102 = 0.5 +$avmp0103 = 0.5 + +[Preset] +category = "avmp01" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp01_DecimalPlaces = 1 #0.0 +$avmp0101 = 1.5 +$avmp0102 = 1.5 +$avmp0103 = 1.5 + +[Preset] +category = "avmp02" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp02_DecimalPlaces = 1 #0.0 +$avmp0201 = 0.1 +$avmp0202 = 0.1 +$avmp0203 = 0.1 + +[Preset] +category = "avmp02" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp02_DecimalPlaces = 1 #0.0 +$avmp0201 = 0.5 +$avmp0202 = 0.5 +$avmp0203 = 0.5 + +[Preset] +category = "avmp02" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp02_DecimalPlaces = 1 #0.0 +$avmp0201 = 1.5 +$avmp0202 = 1.5 +$avmp0203 = 1.5 + +[Preset] +category = "avmp03" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp03_DecimalPlaces = 1 #0.0 +$avmp0301 = 0.1 +$avmp0302 = 0.1 +$avmp0303 = 0.1 + +[Preset] +category = "avmp03" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp03_DecimalPlaces = 1 #0.0 +$avmp0301 = 0.5 +$avmp0302 = 0.5 +$avmp0303 = 0.5 + +[Preset] +category = "avmp03" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp03_DecimalPlaces = 1 #0.0 +$avmp0301 = 1.5 +$avmp0302 = 1.5 +$avmp0303 = 1.5 + +[Preset] +category = "avmp04" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp04_DecimalPlaces = 1 #0.0 +$avmp0401 = 0.1 +$avmp0402 = 0.1 +$avmp0403 = 0.1 + +[Preset] +category = "avmp04" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp04_DecimalPlaces = 1 #0.0 +$avmp0401 = 0.5 +$avmp0402 = 0.5 +$avmp0403 = 0.5 + +[Preset] +category = "avmp04" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp04_DecimalPlaces = 1 #0.0 +$avmp0401 = 1.5 +$avmp0402 = 1.5 +$avmp0403 = 1.5 + +[Preset] +category = "avmp05" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp05_DecimalPlaces = 1 #0.0 +$avmp0501 = 0.1 +$avmp0502 = 0.1 +$avmp0503 = 0.1 + +[Preset] +category = "avmp05" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp05_DecimalPlaces = 1 #0.0 +$avmp0501 = 0.5 +$avmp0502 = 0.5 +$avmp0503 = 0.5 + +[Preset] +category = "avmp05" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp05_DecimalPlaces = 1 #0.0 +$avmp0501 = 1.5 +$avmp0502 = 1.5 +$avmp0503 = 1.5 + +[Preset] +category = "avmp06" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp06_DecimalPlaces = 1 #0.0 +$avmp0601 = 0.1 +$avmp0602 = 0.1 +$avmp0603 = 0.1 + +[Preset] +category = "avmp06" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp06_DecimalPlaces = 1 #0.0 +$avmp0601 = 0.5 +$avmp0602 = 0.5 +$avmp0603 = 0.5 + +[Preset] +category = "avmp06" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp06_DecimalPlaces = 1 #0.0 +$avmp0601 = 1.5 +$avmp0602 = 1.5 +$avmp0603 = 1.5 + +[Preset] +category = "avmp07" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp07_DecimalPlaces = 1 #0.0 +$avmp0701 = 0.1 +$avmp0702 = 0.1 +$avmp0703 = 0.1 + +[Preset] +category = "avmp07" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp07_DecimalPlaces = 1 #0.0 +$avmp0701 = 0.5 +$avmp0702 = 0.5 +$avmp0703 = 0.5 + +[Preset] +category = "avmp07" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp07_DecimalPlaces = 1 #0.0 +$avmp0701 = 1.5 +$avmp0702 = 1.5 +$avmp0703 = 1.5 + +[Preset] +category = "avmp08" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp08_DecimalPlaces = 1 #0.0 +$avmp0801 = 0.1 +$avmp0802 = 0.1 +$avmp0803 = 0.1 + +[Preset] +category = "avmp08" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp08_DecimalPlaces = 1 #0.0 +$avmp0801 = 0.5 +$avmp0802 = 0.5 +$avmp0803 = 0.5 + +[Preset] +category = "avmp08" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp08_DecimalPlaces = 1 #0.0 +$avmp0801 = 1.5 +$avmp0802 = 1.5 +$avmp0803 = 1.5 + +[Preset] +category = "avmp09" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp09_DecimalPlaces = 1 #0.0 +$avmp0901 = 0.1 +$avmp0902 = 0.1 +$avmp0903 = 0.1 + +[Preset] +category = "avmp09" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp09_DecimalPlaces = 1 #0.0 +$avmp0901 = 0.5 +$avmp0902 = 0.5 +$avmp0903 = 0.5 + +[Preset] +category = "avmp09" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp09_DecimalPlaces = 1 #0.0 +$avmp0901 = 1.5 +$avmp0902 = 1.5 +$avmp0903 = 1.5 + +[Preset] +category = "avmp10" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp10_DecimalPlaces = 1 #0.0 +$avmp1001 = 0.1 +$avmp1002 = 0.1 +$avmp1003 = 0.1 + +[Preset] +category = "avmp10" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp10_DecimalPlaces = 1 #0.0 +$avmp1001 = 0.5 +$avmp1002 = 0.5 +$avmp1003 = 0.5 + +[Preset] +category = "avmp10" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp10_DecimalPlaces = 1 #0.0 +$avmp1001 = 1.5 +$avmp1002 = 1.5 +$avmp1003 = 1.5 + +[Preset] +category = "avmp11" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp11_DecimalPlaces = 1 #0.0 +$avmp1101 = 0.1 +$avmp1102 = 0.1 +$avmp1103 = 0.1 + +[Preset] +category = "avmp11" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp11_DecimalPlaces = 1 #0.0 +$avmp1101 = 0.5 +$avmp1102 = 0.5 +$avmp1103 = 0.5 + +[Preset] +category = "avmp11" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp11_DecimalPlaces = 1 #0.0 +$avmp1101 = 1.5 +$avmp1102 = 1.5 +$avmp1103 = 1.5 + +[Preset] +category = "avmp12" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp12_DecimalPlaces = 1 #0.0 +$avmp1201 = 0.1 +$avmp1202 = 0.1 +$avmp1203 = 0.1 + +[Preset] +category = "avmp12" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp12_DecimalPlaces = 1 #0.0 +$avmp1201 = 0.5 +$avmp1202 = 0.5 +$avmp1203 = 0.5 + + +[Preset] +category = "avmp12" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp12_DecimalPlaces = 1 #0.0 +$avmp1201 = 1.5 +$avmp1202 = 1.5 +$avmp1203 = 1.5 + +[Preset] +category = "avmp13" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp13_DecimalPlaces = 1 #0.0 +$avmp1301 = 0.1 +$avmp1302 = 0.1 +$avmp1303 = 0.1 + +[Preset] +category = "avmp13" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp13_DecimalPlaces = 1 #0.0 +$avmp1301 = 0.5 +$avmp1302 = 0.5 +$avmp1303 = 0.5 + +[Preset] +category = "avmp13" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp13_DecimalPlaces = 1 #0.0 +$avmp1301 = 1.5 +$avmp1302 = 1.5 +$avmp1303 = 1.5 + +[Preset] +category = "avmp14" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp14_DecimalPlaces = 1 #0.0 +$avmp1401 = 0.1 +$avmp1402 = 0.1 +$avmp1403 = 0.1 + +[Preset] +category = "avmp14" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp14_DecimalPlaces = 1 #0.0 +$avmp1401 = 0.5 +$avmp1402 = 0.5 +$avmp1403 = 0.5 + +[Preset] +category = "avmp14" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp14_DecimalPlaces = 1 #0.0 +$avmp1401 = 1.5 +$avmp1402 = 1.5 +$avmp1403 = 1.5 + +[Preset] +category = "avmp15" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp15_DecimalPlaces = 1 #0.0 +$avmp1501 = 0.1 +$avmp1502 = 0.1 +$avmp1503 = 0.1 + +[Preset] +category = "avmp15" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp15_DecimalPlaces = 1 #0.0 +$avmp1501 = 0.5 +$avmp1502 = 0.5 +$avmp1503 = 0.5 + +[Preset] +category = "avmp15" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp15_DecimalPlaces = 1 #0.0 +$avmp1501 = 1.5 +$avmp1502 = 1.5 +$avmp1503 = 1.5 + +[Preset] +category = "avmp16" +condition = $optionsshown <= 1 +name = 0.1, 0.1, 0.1 +$avmp16_DecimalPlaces = 1 #0.0 +$avmp1601 = 0.1 +$avmp1602 = 0.1 +$avmp1603 = 0.1 + +[Preset] +category = "avmp16" +condition = $optionsshown <= 1 +name = 0.5, 0.5, 0.5 (default) +default = 1 +$avmp16_DecimalPlaces = 1 #0.0 +$avmp1601 = 0.5 +$avmp1602 = 0.5 +$avmp1603 = 0.5 + +[Preset] +category = "avmp16" +condition = $optionsshown <= 1 +name = 1.5, 1.5, 1.5 +$avmp16_DecimalPlaces = 1 #0.0 +$avmp1601 = 1.5 +$avmp1602 = 1.5 +$avmp1603 = 1.5 + +[Preset] #minimum cloud spawning height on title screen +category = "cloud_h_min" +condition = $optionsshown <= 2 +name = 200.0 +$cloud_h_min_DecimalPlaces = 1 #0.0 +$cloud_h_min = 200.0 + +[Preset] #minimum cloud spawning height on title screen +category = "cloud_h_min" +condition = $optionsshown <= 2 +name = 1000.0 (default) +default = 1 +$cloud_h_min_DecimalPlaces = 1 #0.0 +$cloud_h_min = 1000.0 + +[Preset] #max cloud spawning height on title screen +category = "cloud_h_max" +condition = $optionsshown <= 2 +name = 250.0 +$cloud_h_max_DecimalPlaces = 1 #0.0 +$cloud_h_max = 250.0 + +[Preset] #max cloud spawning height on title screen +category = "cloud_h_max" +condition = $optionsshown <= 2 +name = 1100.0 (default) +default = 1 +$cloud_h_max_DecimalPlaces = 1 #0.0 +$cloud_h_max = 1100.0 From 7450334a567a03f192ce18141a9ec6fbbaea508d Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 12:57:08 -0600 Subject: [PATCH 2/9] change a 1 to a 4 was playing around with the code and forgot to change this back when uploading --- src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index 9f7cf8b7c..3b6071a27 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -278,7 +278,7 @@ addi r30, r22, -4 li r28, 0 _whileLoopDeleteINI: stwu r28, 4(r30) - lbz r24, 1(r30) + lbz r24, 4(r30) cmpwi r24, 0 bne+ _whileLoopDeleteINI blr From 6254b6bb1f7ffd2125fdf587ebf0272f886225df Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 13:25:53 -0600 Subject: [PATCH 3/9] Update rules.txt description adds a warning that sRGBmode makes the brightness fix not take effect. I may try fixing this in the future but for right now ehh. --- src/XenobladeChroniclesX/Enhancements/libini/rules.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/rules.txt b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt index 24a6542dc..6c618dc2c 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/rules.txt +++ b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt @@ -2,7 +2,7 @@ titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 name = lib.ini edit path = "Xenoblade Chronicles X/Enhancements/lib.ini" -description = Edit the game's lib.ini file that contains various graphical settings.|Some of these are usefull, such as sRGBMode, and some have no effect on the game. +description = Edit the game's lib.ini file that contains various graphical settings.|Some of these are usefull, such as sRGBMode, and some have no effect on the game.|Brightness doesn't work with sRGBmode = off. #Credits: Intra version = 7 From dc0624ec5fd7e2fa9eee23c402fc2404ea01271a Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 13:26:39 -0600 Subject: [PATCH 4/9] forgot the word "fix" --- src/XenobladeChroniclesX/Enhancements/libini/rules.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/rules.txt b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt index 6c618dc2c..a96f38cf8 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/rules.txt +++ b/src/XenobladeChroniclesX/Enhancements/libini/rules.txt @@ -2,7 +2,7 @@ titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 name = lib.ini edit path = "Xenoblade Chronicles X/Enhancements/lib.ini" -description = Edit the game's lib.ini file that contains various graphical settings.|Some of these are usefull, such as sRGBMode, and some have no effect on the game.|Brightness doesn't work with sRGBmode = off. +description = Edit the game's lib.ini file that contains various graphical settings.|Some of these are usefull, such as sRGBMode, and some have no effect on the game.|Brightness fix doesn't work with sRGBmode = off. #Credits: Intra version = 7 From c35711e3ca52cfd474a7f05dede521003d9c0c89 Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 13:31:25 -0600 Subject: [PATCH 5/9] and a comment fix because i know its gonna bother me --- src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index 3b6071a27..310cb63dd 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -428,7 +428,7 @@ mtlr r28 blr ; r22 == 0x23f09100 -;Free registers that do not need to be restored: +; registers that do not need to be restored: ; r25 r24 r28 r10 _EditINIforinimod: ;back up registers r0-r31 From 5534c05f75b4f60fd686f7411f6dfd52a3e06e63 Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 14:46:20 -0600 Subject: [PATCH 6/9] readability improvement r30 will always equal r11 after calling CallsprintfINImod so r11 shouldn't leave that function --- src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index 310cb63dd..322716968 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -415,11 +415,11 @@ lis r19, 0x202C ori r19, r19, 0x2000 lbzu r3, 1(r21) bl CallsprintfINImod -stw r19, 0(r11) +stw r19, 0(r30) addi r30, r30, 3 lbz r3, 0(r21) bl CallsprintfINImod -stw r19, 0(r11) +stw r19, 0(r30) addi r30, r30, 3 lbz r3, 0(r21) bl CallsprintfINImod From c4ba480b18034ec16875f55789bdbf937b0a13d1 Mon Sep 17 00:00:00 2001 From: intra0 Date: Sun, 22 Dec 2024 15:03:42 -0600 Subject: [PATCH 7/9] simplify float functions moves the logic for handling floating point precision into where its relivent --- src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index 322716968..93e54b18f 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -337,6 +337,7 @@ mflr r29 lfsu f1, 4(r24) lis r4, str_floating_precision_INImod@hi ori r4, r4, str_floating_precision_INImod@l +lbzu r3, 1(r21) addi r3, r3, 0x30 bl CheckifPrecisionIsValidINImod stb r3, 2(r4) @@ -396,7 +397,6 @@ b PrintSettingsINImod ;calls sprintf to print the float PrintFloatINImod: mflr r28 -lbzu r3, 1(r21) bl CallsprintfINImod bl PrintNewLineINImod mtlr r28 @@ -413,15 +413,14 @@ PrintAMVPINImod: mflr r28 lis r19, 0x202C ori r19, r19, 0x2000 -lbzu r3, 1(r21) bl CallsprintfINImod stw r19, 0(r30) addi r30, r30, 3 -lbz r3, 0(r21) +addi r21, r21, -1 bl CallsprintfINImod stw r19, 0(r30) addi r30, r30, 3 -lbz r3, 0(r21) +addi r21, r21, -1 bl CallsprintfINImod bl PrintNewLineINImod mtlr r28 From 428599739257257cf298b0efd12de2ebc2a22e1f Mon Sep 17 00:00:00 2001 From: Intra Date: Sun, 22 Dec 2024 18:11:07 -0600 Subject: [PATCH 8/9] optimize calling print new line function --- .../Enhancements/libini/patch_ini.asm | 52 +++++++------------ 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index 93e54b18f..d96b4c20a 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -294,6 +294,13 @@ _whileloopPrintSettingNameINImod: bne+ _whileloopPrintSettingNameINImod blr +;prints new line character +PrintNewLineINImod: +li r26, 0x0D0A +sth r26, 0(r30) +addi r30, r30, 1 +blr + ;function wraper that takes in r20 and a function pointer(r27) ;loops the function by the ammount in r20 PrintSettingsINImod: @@ -302,28 +309,22 @@ _forloopPrintAMVPSettingsINImod: bl PrintSettingNameINImod mtctr r27 bctrl + bl PrintNewLineINImod addic. r20, r20, -1 bgt+ _forloopPrintAMVPSettingsINImod mtlr r31 blr -;prints new line character -PrintNewLineINImod: -li r26, 0x0D0A -sth r26, 0(r30) -addi r30, r30, 1 -blr - ;checks if the floating point precision is less than 0 or greater than 9 ;if so set precision to 1 to prevent the game from crashing CheckifPrecisionIsValidINImod: -cmpwi r3, 0x30+0 +cmpwi r26, 0x30+0 bge+ _ifPrecisionLessThan0INImod - li r3, 0x30+1 + li r26, 0x30+1 _ifPrecisionLessThan0INImod: -cmpwi r3, 0x30+9 +cmpwi r26, 0x30+9 ble+ _ifPrecisionGreaterThan9INImod - li r3, 0x30+1 + li r26, 0x30+1 _ifPrecisionGreaterThan9INImod: blr @@ -337,10 +338,10 @@ mflr r29 lfsu f1, 4(r24) lis r4, str_floating_precision_INImod@hi ori r4, r4, str_floating_precision_INImod@l -lbzu r3, 1(r21) -addi r3, r3, 0x30 +lbzu r26, 1(r21) +addi r26, r26, 0x30 bl CheckifPrecisionIsValidINImod -stb r3, 2(r4) +stb r26, 2(r4) or r3, r30, r30 CREQV 4*cr1+eq, 4*cr1+eq, 4*cr1+eq ;required for some reason mtctr r25 @@ -357,15 +358,12 @@ b PrintSettingsINImod ;takes in r23 and prints either on or off PrintOnOffINImod: -mflr r28 lwzu r26, 4(r23) stw r26, 0(r30) _whileloopPrintOnOffINImod: lbzu r26, 1(r30) cmpwi r26, 0 bne+ _whileloopPrintOnOffINImod -bl PrintNewLineINImod -mtlr r28 blr ;passes PrintStringValue into the PrintSettings function wraper @@ -383,32 +381,23 @@ or r22, r18, r18 bl PrintSettingNameINImod or r18, r22, r22 or r22, r19, r19 -bl PrintNewLineINImod mtlr r28 blr -;passes PrintFloat into the PrintSettings function wraper +;passes Callsprintf directly into the PrintSettings function wraper PrintFloatSettingsINImod: -lis r27, PrintFloatINImod@hi -ori r27, r27, PrintFloatINImod@l +lis r27, CallsprintfINImod@hi +ori r27, r27, CallsprintfINImod@l b PrintSettingsINImod -;takes in a floating point(r24), and its precision(r21) -;calls sprintf to print the float -PrintFloatINImod: -mflr r28 -bl CallsprintfINImod -bl PrintNewLineINImod -mtlr r28 -blr - ;passes PrintAMVP into the PrintSettings function wraper PrintAMVPSettingsINImod: lis r27, PrintAMVPINImod@hi ori r27, r27, PrintAMVPINImod@l b PrintSettingsINImod -;prints 3 floats sperated by a comma +;takes in a floating point(r24), and its precision(r21) +;calls sprintf() 3 times to print 3 floats sperated by a comma PrintAMVPINImod: mflr r28 lis r19, 0x202C @@ -422,7 +411,6 @@ stw r19, 0(r30) addi r30, r30, 3 addi r21, r21, -1 bl CallsprintfINImod -bl PrintNewLineINImod mtlr r28 blr From afc79ca40cd2e3bf766480711f3dd5a6b3ef5921 Mon Sep 17 00:00:00 2001 From: Intra Date: Sun, 22 Dec 2024 18:33:44 -0600 Subject: [PATCH 9/9] fix for loop name --- src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm index d96b4c20a..4868cf4c4 100644 --- a/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm +++ b/src/XenobladeChroniclesX/Enhancements/libini/patch_ini.asm @@ -305,13 +305,13 @@ blr ;loops the function by the ammount in r20 PrintSettingsINImod: mflr r31 -_forloopPrintAMVPSettingsINImod: +_forloopPrintSettingsINImod: bl PrintSettingNameINImod mtctr r27 bctrl bl PrintNewLineINImod addic. r20, r20, -1 - bgt+ _forloopPrintAMVPSettingsINImod + bgt+ _forloopPrintSettingsINImod mtlr r31 blr