Jump to content

Can't Launch Minecraft 1.15.2 with Optifine in Eclipse


Kevin Phung

Recommended Posts

Got this error while trying to use the deobfuscated OptiFine 1.15.2 HD U G1 pre14.jar in eclipse:

 

Quote

// My bad.

Time: 5/7/20 9:16 AM
Description: Initializing game

java.lang.NoSuchMethodError: net.minecraft.client.MainWindow.func_211162_a(Ljava/util/function/BiConsumer;)V
    at com.mojang.blaze3d.platform.GLX._initGlfw(GLX.java:79) ~[forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {re:classloading,xf:OptiFine:default}
    at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(RenderSystem.java:533) ~[forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:376) ~[forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {re:classloading,pl:accesstransformer:B,xf:fml:bestmod:(Method2ClassTransformerWrapper) replaceDisplayIngameMenu,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:141) ~[forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221] {}
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221] {}
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {}
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [forge-1.15.2-31.1.63_mapped_snapshot_20200502-1.15.1-recomp.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at com.mojang.blaze3d.platform.GLX._initGlfw(GLX.java:79)
    at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(RenderSystem.java:533)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:376)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_221, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 136995512 bytes (130 MB) / 901775360 bytes (860 MB) up to 1908932608 bytes (1820 MB)
    CPUs: 4
    JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2048m
    Launched Version: MOD_DEV
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: NO CONTEXT
    GL Caps:
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: <unknown>
    OptiFine Version: OptiFine_1.15.2_HD_U_G1_pre14
    OptiFine Build: 20200503-012330
    Render Distance Chunks: 8
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: null
    OpenGlRenderer: null
    OpenGlVendor: null
    CpuCount: 4

 

Link to comment
Share on other sites

I'm fairly positive Optifine for 1.15.2 wasn't compatible with forge until the latest release "OptiFine 1.15.2 HD U G1 pre16" posted 2 days ago. Looks like you're using pre14 so my best guess is that's the issue.

 

Best of luck!

Edited by KINØ
Link to comment
Share on other sites

Pre 14's changelog is no longer visible, so we cannot check on that.

Try updating to pre 16, which is compatible with Forge 31.1.63.

If that don't work then report to Optifine, since Forge has nothing to do with it.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

On 5/15/2020 at 5:03 AM, diesieben07 said:

[net.minecraft.client.renderer.GlDebugTextUtils/]: OpenGL SHADER COMPILER ERROR: 0 (SHADER_ID_COMPILE error has been generated. GLSL compile failed for shader 1, "": ERROR: 0:6: 'gl_Vertex' : undeclared identifier 
ERROR: 0:6: 'xy' : vector field selection out of range 
ERROR: 0:6: 'assign' :  cannot convert from 'highp float' to 'varying 2-component vector of highp float'
ERROR: 0:8: 'gl_ModelViewProjectionMatrix' : undeclared identifier 
ERROR: 0:8: 'assign' :  cannot convert from 'highp float' to 'Position 4-component vector of highp float'
ERROR: 0:9: 'gl_FrontColor' : undeclared identifier 
ERROR: 0:9: 'gl_Color' : undeclared identifier)

 

These variables come from rect.vert:

Quote

#version 430 core

 

out vec2 f_Position;

 

void main() {
    f_Position = gl_Vertex.xy;

 

    gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
    gl_FrontColor = gl_Color;
}

So what happened to rect.vert

 

Edited by Kevin Phung
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.