Jump to content

[1.7.10]No OpenGL context found in current thread?


HappyKiller1O1

Recommended Posts

So, anytime I try to do anything OpenGL related, I get this error when calling the method.

 

---- Minecraft Crash Report ----
// There are four lights!

Time: 3/25/15 10:29 PM
Description: Ticking player

java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL11.glPushMatrix(GL11.java:2592)
at com.happykiller.crewmod.client.gui.GuiCoinCollected.updateGui(GuiCoinCollected.java:73)
at com.happykiller.crewmod.client.gui.GuiCoinCollected.checkUnlockTime(GuiCoinCollected.java:150)
at com.happykiller.crewmod.events.CrewEventHandler.notifyPickup(CrewEventHandler.java:30)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_CrewEventHandler_notifyPickup_ItemPickupEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
at cpw.mods.fml.common.FMLCommonHandler.firePlayerItemPickupEvent(FMLCommonHandler.java:565)
at net.minecraft.entity.item.EntityItem.onCollideWithPlayer(EntityItem.java:430)
at net.minecraft.entity.player.EntityPlayer.collideWithPlayer(EntityPlayer.java:681)
at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:672)
at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)
at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:327)
at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330)
at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329)
at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37)
at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:111)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)


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

-- Head --
Stacktrace:
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)
at org.lwjgl.opengl.GL11.glPushMatrix(GL11.java:2592)
at com.happykiller.crewmod.client.gui.GuiCoinCollected.updateGui(GuiCoinCollected.java:73)
at com.happykiller.crewmod.client.gui.GuiCoinCollected.checkUnlockTime(GuiCoinCollected.java:150)
at com.happykiller.crewmod.events.CrewEventHandler.notifyPickup(CrewEventHandler.java:30)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_6_CrewEventHandler_notifyPickup_ItemPickupEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
at cpw.mods.fml.common.FMLCommonHandler.firePlayerItemPickupEvent(FMLCommonHandler.java:565)
at net.minecraft.entity.item.EntityItem.onCollideWithPlayer(EntityItem.java:430)
at net.minecraft.entity.player.EntityPlayer.collideWithPlayer(EntityPlayer.java:681)
at net.minecraft.entity.player.EntityPlayer.onLivingUpdate(EntityPlayer.java:672)
at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)
at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:327)

-- Player being ticked --
Details:
Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
Entity ID: 369
Entity Name: Player909
Entity's Exact location: -116.24, 71.00, 269.88
Entity's Block location: World: (-117,71,269), Chunk: (at 11,4,13 in -8,16; contains blocks -128,0,256 to -113,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: 0.00, -0.08, 0.00
Stacktrace:
at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330)
at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329)
at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37)
at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:111)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)

-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@5e77de98
Stacktrace:
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_75, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 926575768 bytes (883 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
CrewMod{1.0.0} [The Crew Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player909'/369, l='Test World Crew Mod', x=-116.24, y=71.00, z=269.88]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'

 

Please help me with this!

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

How would I make it run on a client thread? Sorry if that's an ignorant question, this error has persisted on me for quite some time.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

Thanks! Maybe you could help me with this; when I pickup an item I'm trying to call the updateGui method below but, it won't run! When I don't check for the isRemote, it runs and crashes with the thread error.

 

@SideOnly(Side.CLIENT)
public class GuiCoinCollected extends Gui
{
    private static final ResourceLocation texAchi = new ResourceLocation("textures/gui/achievement/achievement_background.png");

    /** Holds the instance of the game (Minecraft) */
    private Minecraft theGame;

    /** Holds the latest width scaled to fit the game window. */
    private int width;

    /** Holds the latest height scaled to fit the game window. */
    private int height;
    private String headerText;
    private String coinNameText;
    
    private RenderItem renderedItem;
    
    private boolean canUpdate;

    private long unlockedTime;
    
    public GuiCoinCollected(Minecraft mc) {
    	this.theGame = mc;
    	this.renderedItem = new RenderItem();
    	this.canUpdate = false;
    }
    
    private void updateWindowScale()
    {
    	if(!theGame.theWorld.isRemote) {
    	System.out.println("STARTING WINDOW SCALE");
        GL11.glViewport(0, 0, this.theGame.displayWidth, this.theGame.displayHeight);
        GL11.glMatrixMode(GL11.GL_PROJECTION);
        GL11.glLoadIdentity();
        GL11.glMatrixMode(GL11.GL_MODELVIEW);
        GL11.glLoadIdentity();
        this.width = this.theGame.displayWidth;
        this.height = this.theGame.displayHeight;
        ScaledResolution scaledresolution = new ScaledResolution(this.theGame, this.theGame.displayWidth, this.theGame.displayHeight);
        this.width = scaledresolution.getScaledWidth();
        this.height = scaledresolution.getScaledHeight();
        GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
        GL11.glMatrixMode(GL11.GL_PROJECTION);
        GL11.glLoadIdentity();
        GL11.glOrtho(0.0D, (double)this.width, (double)this.height, 0.0D, 1000.0D, 3000.0D);
        GL11.glMatrixMode(GL11.GL_MODELVIEW);
        GL11.glLoadIdentity();
        GL11.glTranslatef(0.0F, 0.0F, -2000.0F);
    	System.out.println("ENDING WINDOW SCALE");
    	}
    }

    public void updateGui()
    {
    	if(!theGame.theWorld.isRemote) {
        if (this.unlockedTime != 0L && Minecraft.getMinecraft().thePlayer != null)
        {
        	System.out.println("PAST FIRST LINE!");
        	
            double d0 = (double)(Minecraft.getSystemTime() - this.unlockedTime) / 3000.0D;

            if (!this.canUpdate)
            {
            	System.out.println("canUpdate EQUALED FALSE!");
            	
                if (d0 < 0.0D || d0 > 1.0D)
                {
                    this.unlockedTime = 0L;
                    return;
                }
            }
            else if (d0 > 0.5D)
            {
                d0 = 0.5D;
            }
            
            System.out.println("STARTING RENDER");

            this.updateWindowScale();
            GL11.glDisable(GL11.GL_DEPTH_TEST);
            GL11.glDepthMask(false);
            double d1 = d0 * 2.0D;

            if (d1 > 1.0D)
            {
                d1 = 2.0D - d1;
            }

            d1 *= 4.0D;
            d1 = 1.0D - d1;

            if (d1 < 0.0D)
            {
                d1 = 0.0D;
            }

            d1 *= d1;
            d1 *= d1;
            int i = this.width - 160;
            int j = 0 - (int)(d1 * 36.0D);
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
            GL11.glEnable(GL11.GL_TEXTURE_2D);
            this.theGame.getTextureManager().bindTexture(texAchi);
            GL11.glDisable(GL11.GL_LIGHTING);
            this.drawTexturedModalRect(i, j, 96, 202, 160, 32);
            
        	System.out.println("RENDERED BOX");

            //if (this.field_146262_n)
            //{
            //    this.theGame.fontRenderer.drawSplitString(this.field_146265_j, i + 30, j + 7, 120, -1);
            //}
            //else
           // {
                this.theGame.fontRenderer.drawString(this.headerText, i + 30, j + 7, -256);
                this.theGame.fontRenderer.drawString(this.coinNameText, i + 30, j + 18, -1);
           // }

            RenderHelper.enableGUIStandardItemLighting();
            GL11.glDisable(GL11.GL_LIGHTING);
            GL11.glEnable(GL12.GL_RESCALE_NORMAL);
            GL11.glEnable(GL11.GL_COLOR_MATERIAL);
            GL11.glEnable(GL11.GL_LIGHTING);
            this.renderedItem.renderItemAndEffectIntoGUI(this.theGame.fontRenderer, this.theGame.getTextureManager(), new ItemStack(CrewMod.crewCoin), i + 8, j + ;
            GL11.glDisable(GL11.GL_LIGHTING);
            GL11.glDepthMask(true);
            GL11.glEnable(GL11.GL_DEPTH_TEST);
            
        	System.out.println("FINISHED RENDERING");
        }
    	}
    }
    
    public void checkUnlockTime() {
    	if(this.unlockedTime != 0) {
    		updateGui();
    	}
    }
    
    public long setUnlockTime(long amount) {
    	System.out.println("SET UNLOCK TIME TO: " + amount);
    	return this.unlockedTime = amount;
    }
    
    public void setUnlockTime() {
    	this.unlockedTime = theGame.getSystemTime() + 2500L;
    	this.canUpdate = true;
    	updateGui();
    	System.out.println("SET UNLOCK TIME TO SYSTEM TIME");
    }
}

 

Here's my EventHandler method:

 

@SubscribeEvent
public void notifyPickup(ItemPickupEvent event) {
	Minecraft mc = Minecraft.getMinecraft();
	GuiCoinCollected guiCoin = new GuiCoinCollected(mc);

	if(event.pickedUp.getEntityItem().isItemEqual(new ItemStack(CrewMod.crewCoin))) {
		event.player.inventory.consumeInventoryItem(CrewMod.crewCoin);	
		CoinKeeper.addCoin(event.player);
		PacketRegistry.network.sendTo(new PacketCoinChangeClient(event.player, CoinKeeper.getCoinAmount(event.player)), (EntityPlayerMP)event.player);
		guiCoin.setUnlockTime();
		//guiCoin.checkUnlockTime();
		//System.out.println("Ran Correctly! Your current coin total is: " + CoinKeeper.getCoinAmount(event.player));
	}
}

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

		Minecraft mc = Minecraft.getMinecraft();

 

You don't say.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

public void notifyPickup(ItemPickupEvent event) {
	Minecraft mc = Minecraft.getMinecraft();

 

if (event.player.isRemote) {

That won't save  you on a dedicated server, if notifyPickup is ever called from the server thread, it will crash in a dedicated server regardless of the isRemote check or not.  Strange but true.

 

I'm guessing this event never fires on the client, only on the server.  You can check by just putting System.out.println("notifyPickup"); in your event handler and nothing else.

 

If so, you'll need to open your GUI on the client by sending it a message from the server.  You could do this by sending it a network message. 

http://greyminecraftcoder.blogspot.com.au/2015/01/client-server-communication-using-your.html for 1.8, 1.7 was similar.

There is another way using Containers which I'm not really familiar with.  Perhaps others too - google may help.

 

-TGG

 

Link to comment
Share on other sites

That won't save  you on a dedicated server, if notifyPickup is ever called from the server thread, it will crash in a dedicated server regardless of the isRemote check or not.  Strange but true.

 

I'm guessing this event never fires on the client, only on the server.  You can check by just putting System.out.println("notifyPickup"); in your event handler and nothing else.

 

If so, you'll need to open your GUI on the client by sending it a message from the server.  You could do this by sending it a network message. 

http://greyminecraftcoder.blogspot.com.au/2015/01/client-server-communication-using-your.html for 1.8, 1.7 was similar.

There is another way using Containers which I'm not really familiar with.  Perhaps others too - google may help.

 

-TGG

 

Back tracing the code it leads to the ItemPickupEvent getting called from

 

EntityItem/onCollideWithPlayer

 

    public void onCollideWithPlayer(EntityPlayer entityIn)
    {
        if (!this.worldObj.isRemote)
        {
            if (this.delayBeforeCanPickup > 0) return;
            ItemStack itemstack = this.getEntityItem();
            int i = itemstack.stackSize;

            int hook = net.minecraftforge.event.ForgeEventFactory.onItemPickup(this, entityIn, itemstack);

 

Which only gets called if it's on the server side apparently.

Link to comment
Share on other sites

Which only gets called if it's on the server side apparently.

 

Correct.  That's why you can't pick up ghost items.

 

So stop calling the client main class.  Even if it's never called (because you wrapped it in an "is not remote" check) it will still crash, because the compiled code is invalid.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I don't think you guys are understanding what I want to do. I am trying to add the onscreen overlay (like the hud and stuff) that acts like and looks like the achievement overlay that says "Achievement Get!". So, in the notify pickup (which is running correctly) I have to use the worldObj to check if the world is remote? I don't see how that would change my circumstance.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

The item pickup happens server side only, the achievement GUI is client side only.  The two sides cannot mix or you will crash a dedicated server.

 

Use packets.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Could you give me an example of what the packet would consist of and where to put it? Packets are honestly my weakest link when it comes to programming.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

I know how to setup packets and such. I just don't know how I would use a packet to tell the game to display the achievement get overlay.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

		Minecraft mc = Minecraft.getMinecraft();

 

You don't say.

 

Not sure if that's sarcasm but, that is how you grab the instance of Minecraft you know. xD

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

		Minecraft mc = Minecraft.getMinecraft();

 

You don't say.

 

Not sure if that's sarcasm but, that is how you grab the instance of Minecraft you know. xD

He was telling you why it was crashing on the server.

 

Anytime you try to access the Minecraft instance on the server it crashes.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Link to comment
Share on other sites

Well, I need the minecraft instance to create an instance for my GuiCoinCollected. Would I just do:

 

GuiCoinCollected guiCoin = new GuiCoinCollected(Minecraft.getMinecraft);

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Link to comment
Share on other sites

Well, I need the minecraft instance to create an instance for my GuiCoinCollected. Would I just do:

 

GuiCoinCollected guiCoin = new GuiCoinCollected(Minecraft.getMinecraft);

Yes... but on the client side.

So you would need a packet...

 

In the packet all you need to put is... nothing.... I think

 

Just in the onMessage() tell it to start displaying the gui

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Link to comment
Share on other sites

Hm ok. Then just send the packet to the client?

Yes and as I had told you in the other thread to have that canUpdate boolean?

 

In the onMessage of your packet have it set the canUpdate to true.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Link to comment
Share on other sites

  • 4 months later...

You're running GUI stuff on the server thread.. don't do that.

 

Not necessary.

 

I just had the same problem on a client with a dedicated server when I tried to handle a network packet and show a GuiScreen.

 

The problem was that my code was running on Netty thread, not on the main thread.

 

Since I already have some scheduling system that is based on ticks, I just pushed to that system a no-delay task that opened the window. Since the system runs all tasks on the main thread, it solved the problem.

Link to comment
Share on other sites

  • 11 months later...

I am getting the problem too here is the crash report

 

 

 

---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 7/12/16 10:50 AM

Description: Exception in server tick loop

 

java.lang.NumberFormatException: For input string: ""

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:592)

at java.lang.Integer.parseInt(Integer.java:615)

at drzhark.customspawner.environment.EnvironmentSettings.processEntityConfig(EnvironmentSettings.java:517)

at drzhark.customspawner.environment.EnvironmentSettings.registerEntity(EnvironmentSettings.java:428)

at drzhark.customspawner.environment.EnvironmentSettings.initializeEntities(EnvironmentSettings.java:271)

at drzhark.customspawner.utils.CMSUtils.addWorldEnvironment(CMSUtils.java:127)

at drzhark.customspawner.EventHooks.structureMapGen(EventHooks.java:196)

at cpw.mods.fml.common.eventhandler.ASMEventHandler_22_EventHooks_structureMapGen_InitMapGenEvent.invoke(.dynamic)

at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)

at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)

at net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(TerrainGen.java:29)

at net.minecraft.world.gen.ChunkProviderGenerate.<init>(ChunkProviderGenerate.java:66)

at net.minecraft.world.WorldType.getChunkGenerator(WorldType.java:149)

at net.minecraft.world.WorldProvider.func_76555_c(WorldProvider.java:66)

at net.minecraft.world.WorldServer.func_72970_h(WorldServer.java:654)

at net.minecraft.world.World.<init>(World.java:245)

at net.minecraft.world.WorldServer.<init>(WorldServer.java:97)

at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:62)

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:92)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

 

 

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

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0_25, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 138440968 bytes (132 MB) / 427884544 bytes (408 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 33 mods loaded, 33 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHIJAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1614-1.7.10.jar)

UCHIJAA Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10.jar)

UCHIJAA CodeChickenCore{1.0.7.46} [CodeChicken Core] (minecraft.jar)

UCHIJAA NotEnoughItems{1.0.5.110} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.110-universal.jar)

UCHIJAA adminweapons{1.0} [Admin Weapons] (adminweapons-v1-mc1.7.10.jar.zip)

UCHIJAA animalbikes{1.7.10} [Animal Bikes] (AnimalBikes_1.7.10.jar)

UCHIJAA AnimationAPI{1.2.4} [AnimationAPI] (AnimationAPI-1.7.10-1.2.4.jar)

UCHIJAA BetterSprinting{1.1.3} [better Sprinting] (BetterSprinting  MC-1.7.10  v1.1.3.jar)

UCHIJAA craftguide{1.6.8.1} [CraftGuide] (CraftGuide-1.6.8.1.zip)

UCHIJAA CustomSpawner{3.3.0} [DrZhark's CustomSpawner] (CustomMobSpawner 3.3.0.zip)

UCHIJAA DamageIndicatorsMod{3.2.0} [Damage Indicators] (Damage-Indicators-Mod-1.7.10.jar.zip)

UCHIJAA MoCreatures{6.3.1} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v6.3.1.zip)

UCHIJAA fossil{1.7.10 Build 7.0.1} [Fossils and Archeology Revival] (Fossils_Archeology_Revival-1.7.10_Build-7.0.1.jar.zip)

UCHIJAA foxlib{0.4.0} [FoxLib] (FoxLib-1.7.10.jar)

UCHIJAA iChunUtil{4.2.2} [iChunUtil] (iChunUtil-4.2.2.jar)

UCHIJAA GraviGun{4.0.0-beta} [GraviGun] (GravityGun-4.0.0-beta.jar)

UCHIJAA InfernalMobs{1.6.0} [infernal Mobs] (InfernalMobs-1.7.10.jar)

UCHIJAA lucky{5.1.0} [Lucky Block] (Lucky-Block-Mod-1.7.10.jar)

UCHIJAA RadixCore{2.1.1} [RadixCore] (RadixCore-1.7.10-2.1.1-universal.jar)

UCHIJAA MCA{1.7.10-5.1.2} [Minecraft Comes Alive] (MCA-1.7.10-5.1.2-universal.jar)

UCHIJAA me{1.3.2.1} [More Enchantments] (MoreEnchantments-1.7.10-1.3.2.1.jar)

UCHIJAA AencEx{0.0.1} [AencEx] (MoreEnchantments-1.7.10-1.3.2.1.jar)

UCHIJAA moreplayermodels{1.7.10b} [MorePlayerModels] (MorePlayerModels_1.7.10b.jar)

UCHIJAA Morph{0.9.2} [Morph] (Morphing-Mod-1.7.10.jar)

UCHIJAA cfm{3.4.7} [§9MrCrayfish's Furniture Mod] (MrCrayfishs-Furniture-Mod-1.7.10.jar)

UCHIJAA MutantCreatures{1.4.9} [Mutant Creatures] (MutantCreatures-1.7.10-1.4.9.jar)

UCHIJAA OreSpawn{1.7.10.20.3} [OreSpawn] (Ore-Spawn-Mod-1.7.10.zip)

UCHIJAA PortalGun{4.0.0-beta-4} [PortalGun] (PortalGun-4.0.0-beta-4.jar)

UCHIJAA realmsofchaos{Alpha 1.0 pre 1} [Realms of Chaos] (realmsofchaos-Alpha_1.0.jar)

UCHIJAA Tails{$version} [Tails] (Tails-1.7.10-1.0.0.jar)

UCHIJAA TwilightForest{2.3.2} [The Twilight Forest] (twilightforest-1.7.10-2.3.2.jar)

UCHIJAA weaponcaseloot{1.2.12} [WeaponCaseLoot] (weaponcaseloot-1.2.12.jar)

GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

Profiler Position: N/A (disabled)

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

Can someone help me plz

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have done this now but have got the error:   'food(net.minecraft.world.food.FoodProperties)' in 'net.minecraft.world.item.Item.Properties' cannot be applied to                '(net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>)' public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register( "lemon_juice", () -> new Item( new HoneyBottleItem.Properties().stacksTo(1).food( (new FoodProperties.Builder()) .nutrition(3) .saturationMod(0.25F) .effect(() -> new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 1500), 0.01f ) .build() ) )); The code above is from the ModFoods class, the one below from the ModItems class. public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register("lemon_juice", () -> new Item(new Item.Properties().food(ModFoods.LEMON_JUICE)));   I shall keep going between them to try and figure out the cause. I am sorry if this is too much for you to help with, though I thank you greatly for your patience and all the effort you have put in to help me.
    • I have been following these exact tutorials for quite a while, I must agree that they are amazing and easy to follow. I have registered the item in the ModFoods class, I tried to do it in ModItems (Where all the items should be registered) but got errors, I think I may need to revert this and figure it out from there. Once again, thank you for your help! 👍 Just looking back, I have noticed in your code you added ITEMS.register, which I am guessing means that they are being registered in ModFoods, I shall go through the process of trial and error to figure this out.
    • ♈+2349027025197ஜ Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join a brotherhood for protection and wealth here’s is your opportunity, but you should know there’s no ritual without repercussions but with the right guidance and support from this great temple your destiny is certain to be changed for the better and equally protected depending if you’re destined for greatness Call now for enquiry +2349027025197☎+2349027025197₩™ I want to join ILLUMINATI occult without human sacrificeGREATORLDRADO BROTHERHOOD OCCULT , Is The Club of the Riches and Famous; is the world oldest and largest fraternity made up of 3 Millions Members. We are one Family under one father who is the Supreme Being. In Greatorldrado BROTHERHOOD we believe that we were born in paradise and no member should struggle in this world. Hence all our new members are given Money Rewards once they join in order to upgrade their lifestyle.; interested viewers should contact us; on. +2349027025197 ۝ஐℰ+2349027025197 ₩Greatorldrado BROTHERHOOD OCCULT IS A SACRED FRATERNITY WITH A GRAND LODGE TEMPLE SITUATED IN G.R.A PHASE 1 PORT HARCOURT NIGERIA, OUR NUMBER ONE OBLIGATION IS TO MAKE EVERY INITIATE MEMBER HERE RICH AND FAMOUS IN OTHER RISE THE POWERS OF GUARDIANS OF AGE+. +2349027025197   SEARCHING ON HOW TO JOIN THE Greatorldrado BROTHERHOOD MONEY RITUAL OCCULT IS NOT THE PROBLEM BUT MAKE SURE YOU'VE THOUGHT ABOUT IT VERY WELL BEFORE REACHING US HERE BECAUSE NOT EVERYONE HAS THE HEART TO DO WHAT IT TAKES TO BECOME ONE OF US HERE, BUT IF YOU THINK YOU'RE SERIOUS MINDED AND READY TO RUN THE SPIRITUAL RACE OF LIFE IN OTHER TO ACQUIRE ALL YOU NEED HERE ON EARTH CONTACT SPIRITUAL GRANDMASTER NOW FOR INQUIRY +2349027025197   +2349027025197 Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join
    • Hi, I'm trying to use datagen to create json files in my own mod. This is my ModRecipeProvider class. public class ModRecipeProvider extends RecipeProvider implements IConditionBuilder { public ModRecipeProvider(PackOutput pOutput) { super(pOutput); } @Override protected void buildRecipes(Consumer<FinishedRecipe> pWriter) { ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', ModItems.COMPRESSED_DIAMOND.get()) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get(),9) .requires(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .unlockedBy(getHasName(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()), has(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get())) .save(pWriter); ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', Blocks.DIAMOND_BLOCK) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); } } When I try to run the runData client, it shows an error:  Caused by: java.lang.IllegalStateException: Duplicate recipe compressed:compressed_diamond I know that it's caused by the fact that there are two recipes for the ModItems.COMPRESSED_DIAMOND. But I need both of these recipes, because I need a way to craft ModItems.COMPRESSED_DIAMOND_BLOCK and restore 9 diamond blocks from ModItems.COMPRESSED_DIAMOND. Is there a way to solve this?
  • Topics

×
×
  • Create New...

Important Information

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