KillzXGaming / Cafe-Shader-Studio

A program to preview various materials and shaders in games.
MIT License
48 stars 9 forks source link

Possible Hardcoded Directory for One or More Libraries #20

Open CorruptedPhazite opened 1 year ago

CorruptedPhazite commented 1 year ago

When attempting to export 3D models from Splatoon 2 or Mario Kart 8, Shader Studio crashes because it is unable to locate one or more libraries (specifically it is trying to reference Model.cs module at C:\Users\Nathan\Documents\GitHub\GLEngine\BfresLibrary\BfresLibrary\Shared\Models\ as well as a projects directory located at the base of the C drive (C:\projects\cafe-shader-studio)

Crash Log:



FragmentShaderArb:
0(117) : warning C7533: global variable gl_FragColor is deprecated after version 120

VertexShader:

FragmentShaderArb:
0(117) : warning C7533: global variable gl_FragColor is deprecated after version 120

VertexShader:

FragmentShaderArb:
0(117) : warning C7533: global variable gl_FragColor is deprecated after version 120

VertexShader:

FragmentShaderArb:
0(117) : warning C7533: global variable gl_FragColor is deprecated after version 120

VertexShader:

FragmentShaderArb:
0(40) : warning C7533: global variable gl_FragColor is deprecated after version 120

VertexShader:

FragmentShaderArb:

FragmentShaderArb:

VertexShader:

FragmentShaderArb:

VertexShader:

VertexShader:

FragmentShaderArb:

Resized dear imgui vertex buffer to new size 41680
Resized dear imgui index buffer to new size 6252
compressionFormat Yaz0
Reloading Shader Program Jnt_Body__m_Body
program 5
program 6
program 7
program 8
program 9
Reloading Shader Program Jnt_Body__m_Light
program 0
program 1
program 2
program 3
program 4
Reloading Shader Program Jnt_PartsL__m_Body
program 5
program 6
program 7
program 8
program 9
Reloading Shader Program Jnt_PartsR__m_Body
program 5
program 6
program 7
program 8
program 9
VertexShader:

FragmentShaderArb:

FragmentShaderArb:

VertexShader:

depth 6
format BC1_SRGB 8 4 4 blockHeight 16 BlockHeightLog2 4 ImageData 953856
size 524288
format BC1_SRGB 8 4 4 blockHeight 16 BlockHeightLog2 4 ImageData 953856
size 524288
format BC5_SNORM 16 4 4 blockHeight 16 BlockHeightLog2 4 ImageData 1415168
size 589824
format BC1_SRGB 8 4 4 blockHeight 16 BlockHeightLog2 4 ImageData 718848
size 294912
format BC4_UNORM 8 4 4 blockHeight 2 BlockHeightLog2 1 ImageData 15872
size 2048
format BC4_UNORM 8 4 4 blockHeight 8 BlockHeightLog2 3 ImageData 66560
size 27720
FragmentShaderArb:

VertexShader:

VertexShader:

FragmentShaderArb:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at BfresLibrary.Core.ResFileSaver.ExportSection(String fileName, IResData resData, ResFile resFile) in C:\Users\Nathan\Documents\GitHub\GLEngine\BfresLibrary\BfresLibrary\Shared\Core\ResFileSaver.cs:line 75
   at BfresLibrary.Model.Export(String FileName, ResFile ResFile) in C:\Users\Nathan\Documents\GitHub\GLEngine\BfresLibrary\BfresLibrary\Shared\Models\Model.cs:line 104
   at BfresEditor.FMDL.Export(String fileName) in C:\projects\cafe-shader-studio\BfresEditor\Bfres\Wrappers\FMDL.cs:line 85
   at CafeStudio.UI.Outliner.SetupRightClickMenu(NodeBase node) in C:\projects\cafe-shader-studio\CafeStudio.UI\Windows\Outliner.cs:line 546
   at CafeStudio.UI.Outliner.DrawNode(NodeBase node, Single itemHeight) in C:\projects\cafe-shader-studio\CafeStudio.UI\Windows\Outliner.cs:line 283
   at CafeStudio.UI.Outliner.DrawNode(NodeBase node, Single itemHeight) in C:\projects\cafe-shader-studio\CafeStudio.UI\Windows\Outliner.cs:line 483
   at CafeStudio.UI.Outliner.DrawNode(NodeBase node, Single itemHeight) in C:\projects\cafe-shader-studio\CafeStudio.UI\Windows\Outliner.cs:line 483
   at CafeStudio.UI.Outliner.Render() in C:\projects\cafe-shader-studio\CafeStudio.UI\Windows\Outliner.cs:line 170
   at CafeShaderStudio.MainWindow.LoadWorkspaces() in C:\projects\cafe-shader-studio\CafeShaderStudio\MainWindow.cs:line 466
   at CafeShaderStudio.MainWindow.OnRenderFrame(FrameEventArgs e) in C:\projects\cafe-shader-studio\CafeShaderStudio\MainWindow.cs:line 383
   at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
   at OpenTK.GameWindow.DispatchRenderFrame()
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
   at OpenTK.GameWindow.Run()
   at CafeShaderStudio.Program.Main(String[] args) in C:\projects\cafe-shader-studio\CafeShaderStudio\Program.cs:line 23```