SEUS Renewed1.0.0のInvalid programエラー解決法

ゲーム
スポンサーリンク

こんにちは、たらこです。
先日マインクラフト(Minecraft)で影MOD(シェーダ)である
SEUS Renewed1.0.0を導入した際に、少々はまった後、解決できたので
備忘録としてエラー事象と解決法を記載します。

なお、本記事で扱う解決方法の実施は自己責任です。
必ずバックアップ等をとってから実施すること。

こんな人に読んでほしい

  • SEUS Renewed1.0.0を導入した際にゲーム画面にInvalid programと表示されて
    画面表示がおかしくなってしまった人

エラーが発生した状況

  • Minecraft Version:1.12.2
  • Minecraft Forge:導入済み(forge-1.12.2-14.23.5.2838)
  • Optfine:導入済み(OptiFine 1.12.2 HD U E3)

公式サイトからSEUS-Renewed-1.0.0.zipをダウンロードした後、
shaderpacksフォルダに設置し、Minecraftを起動。

起動後、ビデオ設定 > シェーダの詳細設定 と選択し、
SEUS-Renewed-1.0.0.zipを選択して完了ボタンをクリック。

最後に、ワールドを読み込んでゲーム起動。

エラー事象

起動して、ワールドを読み込んだ後の画面に下の画像のように
[Shaders] Error: Invalid program のエラーが複数表示されて、
画面表示がおかしい状態になっていました。

なんだかエラーがいっぱい

エラー解析

Minecraftは常にゲームのシステムログを記録していて、logsフォルダ内に保存してある。
そのフォルダ内のlatest.logというファイル名のテキストファイルに前回起動した時の
ログが記録されているため、ちょっと拝見させてもらいました。

エラーログ

長いですが、下記のようなエラーログがありました。

[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Program loaded: shadow
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Program loaded: gbuffers_basic
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_textured.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_textured.fsh
ERROR: 0:243: '=' : assigning non-constant to 'const highp float'
ERROR: 0:244: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 16 (gbuffers_textured)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_textured
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_textured, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_textured"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_textured"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_textured_lit.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_textured_lit.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 16 (gbuffers_textured_lit)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_textured_lit
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_textured_lit, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_textured_lit"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_textured_lit"
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Program loaded: gbuffers_skybasic
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Program loaded: gbuffers_skytextured
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_terrain.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_terrain.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 18 (gbuffers_terrain)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_terrain
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_terrain, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_terrain"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_terrain"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_damagedblock.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_damagedblock.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 18 (gbuffers_damagedblock)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_damagedblock
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_damagedblock, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_damagedblock"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_damagedblock"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_entities.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_entities.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 18 (gbuffers_entities)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_entities
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_entities, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_entities"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_entities"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_armor_glint.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_armor_glint.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 18 (gbuffers_armor_glint)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_armor_glint
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_armor_glint, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_armor_glint"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_armor_glint"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_hand.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_hand.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 18 (gbuffers_hand)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_hand
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_hand, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_hand"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_hand"
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Program loaded: gbuffers_weather
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_water.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_water.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (gbuffers_water)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: gbuffers_water
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: gbuffers_water, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "gbuffers_water"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "gbuffers_water"
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shadow map distance: 120.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowHardwareFiltering0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowtex1Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowcolor0Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowcolor1Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture enabled
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture resolution: 64
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite1.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite1.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite1)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite1
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite1, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite1"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite1"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling vertex shader: /shaders/composite2.vsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite2.vsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shadow map resolution: 2048
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shadow map distance: 120.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shadow map interval size: 4.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowHardwareFiltering0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowtex1Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowcolor0Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] shadowcolor1Mipmap
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shadow distance render mul: 1.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gcolor format: RGB8
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gdepth format: RGBA8
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gnormal format: RGB16
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] composite format: RGB8
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux1 format: RGBA16
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux2 format: RGBA8
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux3 format: RGBA16
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux4 format: RGBA16
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Sun path rotation: -40.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture enabled
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture resolution: 64
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] AO Level: 0.06
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux3 mipmap enabled
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux4 clear disabled
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Wetness halflife: 1.0
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Dryness halflife: 60.0
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite2.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite2.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite2)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite2
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite2, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite2"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite2"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling vertex shader: /shaders/composite3.vsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite3.vsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture enabled
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Noise texture resolution: 64
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux3 mipmap enabled
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite3.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite3.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite3)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite3
Attached vertex shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite3, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite3"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite3"
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] gaux3 mipmap enabled
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite4.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite4.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite4)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite4
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite4, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite4"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite4"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite5.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite5.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite5)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite5
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite5, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite5"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite5"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/composite6.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/composite6.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (composite6)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: composite6
Attached fragment shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: composite6, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "composite6"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "composite6"
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling vertex shader: /shaders/final.vsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/final.vsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/final.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/final.fsh
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error linking program: 19 (final)
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Info log: final
Attached vertex shader is not compiled.


[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] OpenGL error: 1282 (Invalid operation), program: final, at: useProgram
[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] [Shaders] Error: Invalid program "final"
[19:44:10] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] [Shaders] Error: Invalid program "final"

エラー内容のまとめ

エラーをまとめると、実際にエラーが発生しているのは下記2か所の模様。

1か所目

[19:44:10] [Client thread/ERROR] [net.optifine.shaders.SMCLog]: [Shaders] Error compiling fragment shader: /shaders/gbuffers_textured.fsh
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] Shader info log: /shaders/gbuffers_textured.fsh
ERROR: 0:243: '=' : assigning non-constant to 'const highp float'
ERROR: 0:244: '=' : assigning non-constant to 'const highp float'

2か所目

<省略>
[19:44:10] [Client thread/INFO] [net.optifine.shaders.SMCLog]: [Shaders] File: 1 = /shaders/Common.inc
<省略>
ERROR: 1:220: '=' : assigning non-constant to 'const highp float'
ERROR: 1:221: '=' : assigning non-constant to 'const highp float'

assigning non-constant toのエラーを推測して読み取ると、
プログラム上で定数(const)に対して変数を代入しようとしてエラーが発生している模様。

発生箇所は1か所目が/shaders/gbuffers_textured.fshの243,244行目
発生箇所は2か所目が/shaders/Common.incの220,221行目

ということで該当箇所のソースコードを修正することに。

対処の手順

1. SEUS-Renewed-1.0.0.zipをshaderpacksフォルダの下に展開する

sharderpacksフォルダの下にSEUS-Renewed-1.0.0.zipが設置してあると思うので、
それを右クリックして「すべて展開」を選択してください。
下記のようなフォルダ構成になればOKです。

.minecraft(ここは人それぞれです)
  ∟ (modsとか、いろいろなフォルダ)
  ∟ shaderpacks
     ∟ SEUS-Renewed-1.0.0
        ∟ shaders
        ∟ LICENSE.txt

2. 展開したshadersフォルダ内のgbuffers_textured.fshを修正

まずはgbuffers_textured.fshを修正します。修正の際はメモ帳は使用しないでください。
必ず、テキストエディタ(さくらエディタ,Atom,VSCode,Terapad等々)を利用してください。

下記のように243行目と244行目を修正します。

変更前

243行目 const float K_R = 0.186 * rayleighAmount;
244行目 const float K_M = 0.035 * mieAmount;

変更後

243行目 float K_R = 0.186 * rayleighAmount;
244行目 float K_M = 0.035 * mieAmount;

それぞれの行の先頭のconstを消すだけです。
これで保存して完了。簡単でしょ?

3. 展開したshadersフォルダ内のCommon.incを修正

次に同様にCommon.incを修正します。修正の際はメモ帳は使用しないでください。
必ず、テキストエディタ(さくらエディタ,Atom,VSCode,Terapad等々)を利用してください。

下記のように220行目と221行目を修正します。

変更前

220行目 const float K_R = 0.186 * rayleighAmount;
221行目 const float K_M = 0.035 * mieAmount;

変更後

220行目 float K_R = 0.186 * rayleighAmount;
221行目 float K_M = 0.035 * mieAmount;

同じくれぞれの行の先頭のconstを消すだけです。
保存して完了です。

4. シェーダの詳細設定から展開したフォルダに読み込み先を変更する

最後に、Minecraftを起動して設定画面から最初にビデオ設定 > シェーダの詳細設定から、
SEUS-Renewed-1.0.0.zipを選択したように、SEUS-Renewed-1.0.0を選択(zipではない)
展開したフォルダそのものを選択するイメージです。

(ちなみに、Optfineではシェーダはzipファイルでも展開したフォルダでも選択が可能)

以上で作業は完了です。
実際にゲームを起動させてみました。

対処後

起動したら、エラーメッセージが消え、画面表示が正常になっていました!
直った!よかった!

まとめ

今回は、SEUS Renewed1.0.0でInvalid programエラーが発生した際の対処法をまとめました。

プログラムミスなので、おそらく近いうちに修正はされると思いますが、
それまでの間に同じ事象が発生している方は、ぜひ一度お試しください。

では、よいサイバーライフを!

コメント

  1. ぽこぽこ より:

    おかげで色がバグった世界から美しい世界に戻すことができました!本当に感謝です。

    ですが、未だにこのシェーダーを使おうとするとテキストにいろいろerrorとでてきますが、これは気にしなくても大丈夫ですか?

    • たらこたらこ より:

      返信遅くなってごめんなさい!管理人のたらこです。
      わざわざコメントありがとうございます!初めて反応があって感無量です。
      無事解決したようで良かったです、が、また別のエラーが出てるみたいですね。
      ゲームプレイ自体に支障が出なければOKだとは思いますが、なんだか気持ち悪いのはお察しします。

      何か別の要因でエラーが出てる可能性がありますので、
      エラー名で検索を掛けてみるともしかしたら解決の糸口がつかめるかもしれません。
      また、もしよければ、エラー内容等、共有してもらえればお手伝いでします。

タイトルとURLをコピーしました