Iris & Oculus Flywheel Compat

Iris & Oculus Flywheel Compat

15M Downloads

Crash on Iris 1.5.0

Luke100000 opened this issue ยท 1 comments

commented

Crash when trying to use Shaders:

[19:52:05] [Render thread/ERROR]: Mixin apply for mod irisflw failed irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw -> net.coderbot.iris.pipeline.newshader.NewWorldRenderingPipeline: org.spongepowered.asm.mixin.gen.throwables.InvalidAccessorException No candidates were found matching createShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944; in net/coderbot/iris/pipeline/newshader/NewWorldRenderingPipeline for irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw->@Invoker[METHOD_PROXY]::callCreateShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944; [INJECT Applicator Phase -> irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw -> Apply Accessors ->  -> Locate -> irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw->@Invoker[METHOD_PROXY]::callCreateShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944;]
org.spongepowered.asm.mixin.gen.throwables.InvalidAccessorException: No candidates were found matching createShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944; in net/coderbot/iris/pipeline/newshader/NewWorldRenderingPipeline for irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw->@Invoker[METHOD_PROXY]::callCreateShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944; [INJECT Applicator Phase -> irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw -> Apply Accessors ->  -> Locate -> irisflw.mixins.iris.json:MixinNewWorldRenderingPipeline from mod irisflw->@Invoker[METHOD_PROXY]::callCreateShader(Ljava/lang/String;Lnet/coderbot/iris/shaderpack/ProgramSource;Lnet/coderbot/iris/gl/blending/AlphaTest;Lnet/minecraft/class_293;Lnet/coderbot/iris/pipeline/newshader/FogMode;ZZ)Lnet/minecraft/class_5944;]

Which is the methode here, callCreateShader

public abstract ShaderInstance callCreateShader(String name, ProgramSource source, AlphaTest fallbackAlpha, VertexFormat vertexFormat, FogMode fogMode, boolean isIntensity, boolean isFullbright) throws IOException;

Because, or at least I assume so, this commit changed one parameter:
IrisShaders/Iris@aa0f41e#diff-fea33629ad571b72f36f852b887844f250ebab9e5693e9a26aebadeba588d11bR37
To:
https://github.com/IrisShaders/Iris/blob/01e5ea7a26c3614cd5e52682d34f19050013b512/src/main/java/net/coderbot/iris/pipeline/newshader/NewWorldRenderingPipeline.java#L500

Downgrading Iris works fine :)

commented

Thank you for your interest in my mod. I have uploaded a new version that should be compatible with Iris 1.5 above. I hope you enjoy using it and let me know if you encounter any issues.