Jump to content

Recommended Posts

Posted

Ive been having a really hard time trying to solve what is causing my minecraft forge to crash when attempting to play, immediately after i press play it crashes. I deleted all my mods and currently have none in my mods folder so i know it has nothing to do with outdated mods or mods in general, its forge. I can still play vanilla minecraft. 

I have done the following:

-reinstalled java

-reinstalled forge

-reinstalled minecraft launcher

-deleting and reinstalling versions of minecraft

-deleting and reinstalling forge for different versions of minecraft

-deleted all mods

-deleted my .minecraft folder then relaunching minecraft before launching forge again

-turning off my firewalls then relaunching minecraft forge

-giving more ram to the installation folder

-changing the java pathway (so it is not using the bundled java)

  • Like 1
  • Sad 1
  • 2 weeks later...
Posted (edited)

It is still not working for me too unfortunately, and i have tried reaching out directly to get support from forge off of the curse forge website but they did not help and instead redirected me here again where my problem remains unsolved, id appreciate it if someone could reach out to me and help, as many others i have encountered online are having the same problem .

Edited by Breyauna Jacobs
typo
Posted

Go into .minecraft/logs and find "latest"

Wouldn't be surprised if it says something about a Mod.toml file missing or unexpected schema

As I'm having the same issue and have posted about it twice now with no response

  • Like 1
Posted

Aah more people with the same issue! Happy to hear I am not alone here, but still no solution ....

What I have done in order:

- Reinstalled java, forge and Minecraft launcher

👉 Still error code 1

 

- Tried different versions of Forge, also mod packs I know have been working

 👉 Still error code 1

 

- Tried Minecraft without Forge

 👉 works without any issue

 

- Check all mods if they are the right compatible versions and have all needed files on the right places

  👉 works without any issue

 

- Deleted and reinstalled versions of Minecraft, java, forge and Minecraft launcher. Tried with several different Forge versions

 👉 Still error code 1

 

- Changing the java pathway, tried with several different Forge versions

  👉 Still error code 1

 

- Deleted all mods and tried with different versions of Forge

 👉 Still error code 1

 

- Gave max ram to the installation folder, tried with several different Forge versions

  👉 Still error code 1

 

- Saw this post and yes, I did have indeed an update on my ASUS ROG STRIX GeForce RTX (Nvidia) card, updated this one, rebooted pc, tried with forge without and with mod and several different versions

   👉 Still error code 1

 

- Check for every single possible update for anything on my pc and updated where there was an update, 

 rebooted pc, tried with forge without and with mod and several different versions

   👉 Still error code 1

 

- Did a reset of my pc ........ 

  tried with forge without and with mod and several different versions

   👉 Still error code 1

 

So yes, I guess I have to stop playing this game .... just now I have made a server for my son to play on together with me .... As there is no issue when forge is not involved it must be something related with forge.

pc specs:

AMD Ryzen 7 3800X 8-Core Processor, 3.89 GHz, 32 MB cache

Installed RAM: 32.0 GB (2x16GB, G.Skill Trident DDR4 3600 MHz)

ASUS ROG STRIX GeForce RTX 3070 Gaming OC 8GB

ASUS ROG STRIX X570-F Gaming

 

And yes, error messages in the log like:

------------- Part 1 ---------

[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\fmlcore\1.20.1-47.1.1\fmlcore-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.1.1\javafmllanguage-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.1.1\lowcodelanguage-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\mclanguage\1.20.1-47.1.1\mclanguage-1.20.1-47.1.1.jar is missing mods.toml file
--- and then it says:

[23:52:52] [main/INFO]: Found mod file fmlcore-1.20.1-47.1.1.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file javafmllanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file lowcodelanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file mclanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b

 

------------- Part 2 ---------

[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: geckolib. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\geckolib-forge-1.20.1-4.2.1.jar
[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: cloth_config. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\cloth-config-11.1.106-forge.jar
[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\resourcefullib-forge-1.20.1-2.1.4.jar

---- Got them there and in the right version ---

------------- Part 3 ---------

[23:52:53] [main/INFO]: Starting runtime mappings setup...
[23:52:53] [main/INFO]: Injecting ScriptModLocator candidates...
[23:52:53] [main/INFO]: Injected Jimfs file system
[23:52:53] [main/INFO]: Skipped loading script mods from directory C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\scripts as it did not exist.
[23:52:53] [main/INFO]: Injected ScriptModLocator mod candidates. Found 0 valid mod candidates and 0 broken mod files.

------ Just not sure about this last ScriptModLocator error, as it does say "found", but here it says found 0. Yes, the \mods\scripts is empty but I cannot find what to put in here then

  • Like 1
Posted (edited)

Please note that "error code 1" only means "it crashed", with error code 0 meaning "game closed without crashing".

To help diagnose your issue we need your debug.log in full, found in %AppData%\.minecraft\logs\ . Please put it on pastebin.com and provide a link

 

Quote

[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\fmlcore\1.20.1-47.1.1\fmlcore-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.1.1\javafmllanguage-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.1.1\lowcodelanguage-1.20.1-47.1.1.jar is missing mods.toml file
[23:52:52] [main/WARN]: Mod file C:\Users\svanb\curseforge\minecraft\Install\libraries\net\minecraftforge\mclanguage\1.20.1-47.1.1\mclanguage-1.20.1-47.1.1.jar is missing mods.toml file

These can be safely ignored, it's not an error.

 

 

Quote

[23:52:52] [main/INFO]: Found mod file fmlcore-1.20.1-47.1.1.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file javafmllanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file lowcodelanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b
[23:52:52] [main/INFO]: Found mod file mclanguage-1.20.1-47.1.1.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@11f9535b

From top to bottom, this is saying "found the mod loader", "found the java mod support", "found the lowcode mod support (think global datapacks)", "found the game".

 

 

Quote

[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: geckolib. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\geckolib-forge-1.20.1-4.2.1.jar
[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: cloth_config. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\cloth-config-11.1.106-forge.jar
[23:52:53] [main/WARN]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\resourcefullib-forge-1.20.1-2.1.4.jar

JarJar is the name for Forge's jar-in-jar system. Basically, mods can embed dependencies and libraries inside their mod jar. These log messages are saying it already found the required deps as normal jars and will be using those instead of embedded ones, nothing to worry about.

 

 

Quote

[23:52:53] [main/INFO]: Starting runtime mappings setup...
[23:52:53] [main/INFO]: Injecting ScriptModLocator candidates...
[23:52:53] [main/INFO]: Injected Jimfs file system
[23:52:53] [main/INFO]: Skipped loading script mods from directory C:\Users\svanb\curseforge\minecraft\Instances\Trails and Tails Enhanced [Forge]\mods\scripts as it did not exist.
[23:52:53] [main/INFO]: Injected ScriptModLocator mod candidates. Found 0 valid mod candidates and 0 broken mod files.

This isn't part of Forge. We need your debug.log to be able to assist you further.

Edited by Paint_Ninja
Address each part of the partial logs provided
  • Like 1
Posted (edited)

I copied and pasted my crash log in the pastebin website following your instructions, heres the link: https://pastebin.com/4YYvMv1R  hopefully i did it right and inserted the right crash log, I followed your instructions on how to find the debug.logs and just clicked on the most recent one, but i can just try starting up minecraft with forge again to get a new crash report and copy and paste that to be sure it's the right one. Heres the log right after the game crashed: https://pastebin.com/zYYfydKX

Edited by Breyauna Jacobs
more information
Posted
On 7/23/2023 at 10:26 PM, Breyauna Jacobs said:

I copied and pasted my crash log in the pastebin website following your instructions, heres the link: https://pastebin.com/4YYvMv1R  hopefully i did it right and inserted the right crash log, I followed your instructions on how to find the debug.logs and just clicked on the most recent one, but i can just try starting up minecraft with forge again to get a new crash report and copy and paste that to be sure it's the right one. Heres the log right after the game crashed: https://pastebin.com/zYYfydKX

The first one looks like a log from running the Vanilla game without Forge. The second one indicates a possible driver issue. Have you tried updating your graphics drivers?

8 hours ago, Sandra van Buggenum said:

"To help diagnose your issue we need your debug.log in full, found in %AppData%\.minecraft\logs\ . Please put it on pastebin.com and provide a link"

 

If I could, I would. But there is no debug.log. Even reinstalled all again, but nothing :/

If you're using the CurseForge launcher, you need to turn it on in the settings.

To enable debug logging in the Curseforge app, open the app and click the cog/gear icon in the bottom-left of the app. This will open the app settings.

In the app settings, choose Minecraft under Game Specific settings and toggle on the Enable Forge debug log option, as shown below.

image.thumb.png.5ee4d68e202e485306985bb2369f2551.png

  • 9 months later...

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • It is 1.12.2 - I have no idea if there is a 1.12 pack
    • Okay, but does the modpack works with 1.12 or just with 1.12.2, because I need the Forge client specifically for Minecraft 1.12, not 1.12.2
    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
  • Topics

×
×
  • Create New...

Important Information

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