Xuan-Yuan Sword VII

File information

Last updated

Original upload

Created by

thrive4

Uploaded by

thrive4

Virus scan

Safe to use

Tags for this mod

About this mod

Numerous shadertweaks see description
reshade tonemap, relief texture enhancing, color balancing
optional variant with hud tweaks

Permissions and credits
Changelogs
- description

Xuan-yuan sword 7 a nice rpg / melee lite with an
oriental flavor essentially an linear affair with a
focused story and relatable characters.

Alas the game has a tendency to go a bit dark, visually,
and an ui that is possibly a bit to present this package
addresses both issues plus some tweaks to effects as flares,
fog, bloom etc.

The ui tweaks, gameplay related, have a separate package
called 'xuan-yuan sword 7 care package plus hud' and contains
all the tweaks plus some specific gameplay related hud tweaks.

If you do not like specific tweaks please see 'further tweaking'
for disabling specific shader tweaks.

3dmigoto shader tweaks:
- reduce flares on flames also renders the flames
- reduce bloom
- reduce frame based light emission on character and environment
- reduce distance fog plus reduce darkness tonemap day night cycle
- increase hud highlight menu choice (needed due to other tweaks)

ui / hud 3dmigoto shader tweak:
- remove hud markers climbing, save, sub quests, etc
- add opacity hud directional arrows effects status bars in gameplay hud
  also effects status bar load screen

update v1.1 05/02/2022
- a custom shader upscale.hlsl (3dmigoto) replaces reshade
- tweaked bloom and fog shader to reduce darkness in both exterior and interiors
- tested on windows 10 (v1903) with game version 1.13

Note(s):
The  package has a customized shader 'upscale.hlsl' which
does some fullscreen tweaks as sharpening and color modification.

- updating

if the old package was installed remove the following
folder(s) and file(s) in the folder which contains ac3lhd_32.exe

reshade
shadercache
shaderfixes

d3d11.dll
d3dcompiler_46.dll
d3dx.ini
dxgi.dll
dxgi.ini
ReShade.ini

Then copy the contents of the zip file to the install folder of
xuan-yuan sword 7, the folder which contains SWD7-Win64-Shipping.exe.
(xuan-yuan sword 7\SWD7\Binaries\Win64\)

- install

Copy the contents of the zip file to the install folder of
xuan-yuan sword 7, the folder which contains SWD7-Win64-Shipping.exe.
(xuan-yuan sword 7\SWD7\Binaries\Win64\)

- optional install

The following instructions are only needed
if you do not like using unverified dll's you can:

download 3dmigoto from:
https://github.com/bo3b/3Dmigoto/releases
download version 1.3.16 and place the following dlls in the install dir of
xuan-yuan sword 7:
d3d11.dll (64bits)
d3dcompiler_46.dll
then copy `d3dx.ini, ShaderCache and ShaderFixes from the zip file to the same dir aka folder.

download reshade from
https://reshade.me/
install *only* dxgi.dll (64bits) to the install dir aka folder of xuan-yuan sword 7.
Then copy the reshade folder plus ReShade.ini and dxgi.ini
from the package to the install dir of xuan-yuan sword 7.

- verify

After running the game the folder ShaderFixes should contain the .bin versions:

015ef874bdcc33c0-ps_replace.bin
04f6bd17aa783842-ps_replace.bin
29366afdfa666ce2-vs_replace.bin
379122fefb26eef8-ps_replace.bin
3d6f8b72ac85ab17-ps_replace.bin
3f5d6b2d7eae5d39-ps_replace.bin
ba0ab2336f52461e-ps_replace.bin
upscale.bin

of

015ef874bdcc33c0-ps_replace.txt
04f6bd17aa783842-ps_replace.txt
29366afdfa666ce2-vs_replace.txt
379122fefb26eef8-ps_replace.txt
3d6f8b72ac85ab17-ps_replace.txt
3f5d6b2d7eae5d39-ps_replace.txt
ba0ab2336f52461e-ps_replace.txt
upscale.hlsl
upscale.ini

This means that the file(s) .txt have been compiled by 3dmigoto (d3d11.dll)

For reshade:
Press 'F1' in game to toggle reshade shaders on or off
or press 'shift F2' and use reshades gui to toggle
shaders of. Toggling originalbeforesplit and splitscreen_tech
on gives a vertical splitscreen (right side shaders on left
side shaders of).

- tested

Tested with file version 1.13 of xuan-yuan sword 7
on win 10 / nvidia 1050gtx ti
See screenshot for settings game.

- performance

3dmigoto gpu usage [email protected] ~35.7fps
without - clock 1759Mhz gpu usage ~97%
with    - clock 1772Mhz gpu usage ~97%
approximately 4% increase (1050gtx ti on win 10)
max gpu: 1772Mhz gpu usage 100%
**clamped frame rate to 35.7 no sync

- further tweaking

If you like you can compare the modified shader, ShaderCache contains
the original shader, to alter values.

To disable specific tweaks open the shader from
the folder 'shaderfixes' with a text editor example:
015ef874bdcc33c0-ps_replace.txt

Has a remark on the top line:
// reduce flares on flames also renders the flames

So if you do not want that to happen
remove the shader from the folder 'shaderfixes'

015ef874bdcc33c0-ps_replace.txt

and if compiled remove:

015ef874bdcc33c0-ps_replace.bin

then restart the game.

All shaders <shadernumber>ps_replace.txt have
a similar descriptive remark.

- tips

launch with (unreal 4 command line parameters):
SWD7-Win64-Shipping.exe -norc -nowrite -nodatabase -useallavailablecores -noforcefeedback -nosplash -fullscreen

- shader list

---------- 015EF874BDCC33C0-PS_REPLACE.TXT
// reduce flares on flames also renders the flames
// ---- Created with 3Dmigoto v1.3.16 on Wed Nov 04 14:15:09 2020

---------- 04F6BD17AA783842-PS_REPLACE.TXT
// remove hud markers climbing, save, sub quests, etc
// ---- Created with 3Dmigoto v1.3.16 on Wed Nov 04 14:01:33 2020

---------- 29366AFDFA666CE2-VS_REPLACE.TXT
// add opacity hud directional arrows effects status bars in gameplay hud
// also effects status bar load screen
// ---- Created with 3Dmigoto v1.3.16 on Wed Nov 04 14:08:54 2020

---------- 379122FEFB26EEF8-PS_REPLACE.TXT
// reduce bloom and increase light in interiors and caves
// ---- Created with 3Dmigoto v1.3.16 on Sat Nov 07 17:42:13 2020
  r2.w = 1.75f * r2.w * r0.z; // increase light in interiors
  r0.y = t2.Sample(s2_s, v0.xy).x * 0.35f; // reduce bloom

---------- 3D6F8B72AC85AB17-PS_REPLACE.TXT
// reduce frame based light emission on character and environment
// ---- Created with 3Dmigoto v1.3.16 on Sun Nov 08 11:16:17 2020
    o0.xyzw = t5.Sample(s4_s, v0.xy).xyzw; // enviroment
  r1.xyz = r1.yzw * r2.xyz + r4.xyz * 0.80f; // character
  o0.xyz = r1.xyz * r0.yzw + r5.xyz * 0.35f; // character

---------- 3F5D6B2D7EAE5D39-PS_REPLACE.TXT
// reduce distance fog plus reduce darkness tonemap day night cycle
// ---- Created with 3Dmigoto v1.3.16 on Wed Nov 04 14:04:44 2020
  r1.w = exp((2.0 - (1.4 - r2.x)) * r2.w) * r1.w; // decrease darkness
  r1.xyz = cb1[134].yyy * r0.yzw * (0.35f + v0.y); // decrease fog

---------- BA0AB2336F52461E-PS_REPLACE.TXT
// increase hud highlight menu choice
// ---- Created with 3Dmigoto v1.3.16 on Thu Nov 12 18:06:28 2020