Jump to content

Can't find Source in Eclipse?


SureenInk

Recommended Posts

So, I've followed about 4 different tutorials, one of which got me to be able to load eclipse up finally without a problem. However, when I go to read the source code for Minecraft Forge, I get an error that says "The JAR file C:\Users\Sureen\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.2-10.1.0.1024\forgeBin-1.7.2-10.12.0.1024.jar has no source attachment." Then it tells me to attach a source. I don't understand what's wrong?

 

Here's my last forge log (I think this is the forge log? It was the only log I could find)

 

 

[15:24:36] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[15:24:36] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[15:24:36] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[15:24:36] [main/INFO]: Forge Mod Loader version 7.2.116.1024 for Minecraft 1.7.2 loading

[15:24:36] [main/INFO]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

[15:24:36] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[15:24:36] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:24:36] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[15:24:36] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:24:36] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[15:24:36] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:24:36] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[15:24:37] [main/ERROR]: The minecraft jar file:/C:/Users/Sureen%20Ink/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeBin-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[15:24:37] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[15:24:37] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Sureen%20Ink/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeBin-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[15:24:37] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing

[15:24:37] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[15:24:37] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[15:24:37] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[15:24:38] [main/INFO]: Setting user: Player972

[15:24:38] [Client thread/INFO]: LWJGL Version: 2.9.0

[15:24:39] [Client thread/INFO]: Attempting early MinecraftForge initialization

[15:24:39] [Client thread/INFO]: MinecraftForge v10.12.0.1024 Initialized

[15:24:39] [Client thread/INFO]: Replaced 128 ore recipies

[15:24:39] [Client thread/INFO]: Completed early MinecraftForge initialization

[15:24:39] [Client thread/INFO]: Searching C:\Users\Sureen Ink\Desktop\Minecraft Mods\forge 172\eclipse\mods for mods

[15:24:39] [Client thread/INFO]: Mod Radial is missing the required element 'name'. Substituting Radial

[15:24:39] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[15:24:39] [Client thread/ERROR]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.Start. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[15:24:40] [Client thread/INFO]: Forge Mod Loader has identified 5 mods to load

[15:24:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:Radial

[15:24:40] [Client thread/INFO]: Configured a dormant chunk cache size of 0

[15:24:41] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[15:24:41] [sound Library Loader/INFO]: Sound engine started

[15:24:41] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[15:24:41] [Client thread/INFO]: Forge Mod Loader has successfully loaded 5 mods

[15:24:41] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[15:24:49] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[15:24:49] [server thread/INFO]: Generating keypair

[15:24:49] [server thread/INFO]: Injecting new block and item data into this server instance

[15:24:49] [server thread/INFO]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@75491ada)

[15:24:49] [server thread/INFO]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@75491ada)

[15:24:49] [server thread/INFO]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@75491ada)

[15:24:49] [server thread/INFO]: Preparing start region for level 0

[15:24:50] [Netty Client IO #0/INFO]: Server protocol version 1

[15:24:50] [Netty IO #1/INFO]: Client protocol version 1

[15:24:50] [Netty IO #1/INFO]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],Radial@Alpha v1

[15:24:50] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT

[15:24:50] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER

[15:24:50] [server thread/INFO]: [server thread] Server side modded connection established

[15:24:50] [server thread/INFO]: Player972[local:E:0d1bac19] logged in with entity id 268 at (-713.0967568092921, 72.0, -332.9515234645175)

[15:24:50] [server thread/INFO]: Player972 joined the game

[15:24:50] [Client thread/INFO]: [Client thread] Client side modded connection established

[15:24:56] [server thread/INFO]: Saving and pausing game...

[15:24:56] [server thread/INFO]: Saving chunks for level 'Test'/Overworld

[15:24:56] [server thread/INFO]: Saving chunks for level 'Test'/Nether

[15:24:56] [server thread/INFO]: Saving chunks for level 'Test'/The End

[15:25:03] [server thread/INFO]: Stopping server

[15:25:03] [server thread/INFO]: Saving players

[15:25:03] [server thread/INFO]: Saving worlds

[15:25:03] [server thread/INFO]: Saving chunks for level 'Test'/Overworld

[15:25:03] [server thread/INFO]: Saving chunks for level 'Test'/Nether

[15:25:03] [server thread/INFO]: Saving chunks for level 'Test'/The End

[15:25:03] [server thread/INFO]: Unloading dimension 0

[15:25:03] [server thread/INFO]: Unloading dimension -1

[15:25:03] [server thread/INFO]: Unloading dimension 1

[15:25:04] [Client thread/INFO]: Stopping!

 

 

 

Here's what was in the "gradle.txt" file...I can't find any other logs, though... This is from when I ran setupDecompWorkspace just now

 

 

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:extractUserDev

:getAssetsIndex

:getAssets

:copyAssets

:extractNatives

:genSrgs UP-TO-DATE

:downloadMcpTools UP-TO-DATE

:downloadClient SKIPPED

:downloadServer SKIPPED

:mergeJars SKIPPED

:deobfuscateJar

Applying SpecialSource...

Applying Exceptor...

Injecting source info...

:decompile

:doFmlPatches

:addFmlSources

:remapJar

:doForgePatches

:addForgeJavadoc

:extractForgeSrc

:recompForgewarning: [options] bootstrap class path not set in conjunction with -source 1.6

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 warning

 

:repackForge

:setupDecompWorkspace

 

BUILD SUCCESSFUL

 

Total time: 2 mins 1.017 secs

 

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i keep getting these errors and im not sure how to fix them or if i can just leave them be :PS i know about the missing tags i just dont have the mods required to add those extra villages Here is the log  https://paste.ee/p/KpYoV
    • Minecraft: 1.18.2, Forge: 40.2.21 I created some code that renders a custom particle. The particle renders without depth test: `disableDepthTest()` and should be visible through other blocks. Locally, all works fine. When I install it on the server and client, it also works fine. But when the mod is removed from the server, it no longer works.   The particle is registered under the name "DEPTH_VISION", and if i check if it is present `ModParticles.DEPTH_VISION.isPresent()`, while the mod is not on the server, I get a `false` back.   So my question is: - Is it even possible to make a custom particle, while staying client side only? - What do I need to change to make it work?    ModParticles.java import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.core.particles.ParticleType; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModParticles { public static final DeferredRegister<ParticleType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, SomeNameMod.MODID); public static final RegistryObject<SimpleParticleType> DEPTH_VISION = REGISTRY.register("depth_vision", () -> new SimpleParticleType(true)); }    SomeNameMod.java import com.peet.somename.HighlightBlock; import com.peet.somename.DepthVisionParticle; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.TextureAtlas; import net.minecraft.core.particles.ParticleType; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; import net.minecraft.world.entity.player.Player; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.client.event.ParticleFactoryRegisterEvent; import net.minecraftforge.client.event.TextureStitchEvent; @Mod(com.peet.somename.SomeNameMod.MODID) public class SomeNameMod { public static final String MODID = "somename"; private static int tickCounter = 0; // Counter to track ticks public SomeNameMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); modEventBus.addListener(this::onTextureStitch); modEventBus.addListener(this::registerParticleFactories); ModParticles.REGISTRY.register(modEventBus); MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void registerParticleFactories(ParticleFactoryRegisterEvent event) { Minecraft.getInstance().particleEngine.register((ParticleType) ModParticles.DEPTH_VISION.get(), DepthVisionParticle.Factory::new); } @SubscribeEvent public void onWorldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END) { Level world = event.world; if (!world.isClientSide) return; if (tickCounter++ >= 20) { // 5 seconds = 100 ticks Player player = Minecraft.getInstance().player; if (player != null) { HighlightBlock.spawnParticles(world, player); } tickCounter = 0; // Reset the counter after spawning particles } } } @SubscribeEvent public void onClientTick(TickEvent.ClientTickEvent event) { } @SubscribeEvent public void onTextureStitch(TextureStitchEvent.Pre event) { if (event.getAtlas().location().equals(TextureAtlas.LOCATION_PARTICLES)) { event.addSprite(new ResourceLocation(MODID, "particles/depth_vision")); } } }    HighlightBlock.java import com.peet.somename.ModParticles; import net.minecraft.network.chat.TextComponent; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.Level; import net.minecraft.client.Minecraft; import net.minecraft.client.particle.ParticleEngine; public class HighlightBlock { public static <ExceptionType> void spawnParticles(Level world, Player player ) { ParticleEngine particleEngine = Minecraft.getInstance().particleEngine; if (!ModParticles.DEPTH_VISION.isPresent()) { Minecraft.getInstance().player.sendMessage(new TextComponent("DEPTH_VISION particle is not registered."), Minecraft.getInstance().player.getUUID()); return; } particleEngine.createParticle(ModParticles.DEPTH_VISION.get(), 0, 0, 0, 0.0, 0.0, 0.0); } }    DepthVisionParticle.java package com.peet.somename.particles; import net.minecraft.client.particle.Particle; import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.client.particle.ParticleProvider; import com.mojang.blaze3d.vertex.Tesselator; import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.renderer.texture.TextureManager; import com.mojang.blaze3d.vertex.BufferBuilder; import net.minecraft.world.entity.player.Player; import net.minecraft.client.Minecraft; import net.minecraft.client.Camera; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.particle.SpriteSet; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.particle.ParticleRenderType; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraft.client.particle.SimpleAnimatedParticle; @OnlyIn(Dist.CLIENT) public class DepthVisionParticle extends SimpleAnimatedParticle { private static final ParticleRenderType DEPTH_PARTICLE_SHEET_TRANSLUCENT; private DepthVisionParticle(final ClientLevel world, final double x, final double y, final double z, final double motionX, final double motionY, final double motionZ, final SpriteSet spriteWithAge) { super(world, x, y, z, spriteWithAge, 0.0f); this.xd = motionX; this.yd = motionY; this.zd = motionZ; this.lifetime = 20; this.setSpriteFromAge(spriteWithAge); } public void render(final VertexConsumer buffer, final Camera renderInfo, final float partialTicks) { final Player player = Minecraft.getInstance().player; super.render(buffer, renderInfo, partialTicks); } public void tick() { super.tick(); this.setSprite(this.sprite); if (this.age++ >= this.lifetime) { this.remove(); } } public ParticleRenderType getRenderType() { return com.peet.somename.particles.DepthVisionParticle.DEPTH_PARTICLE_SHEET_TRANSLUCENT; } static { DEPTH_PARTICLE_SHEET_TRANSLUCENT = new ParticleRenderType() { public void begin(BufferBuilder buffer, TextureManager textureManager) { RenderSystem.disableDepthTest(); ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.begin(buffer, textureManager); } public void end(Tesselator tessellator) { ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.end(tessellator); RenderSystem.enableDepthTest(); } }; } @OnlyIn(Dist.CLIENT) public static class Factory implements ParticleProvider<SimpleParticleType> { private final SpriteSet spriteSet; public Factory(final SpriteSet spriteSet) { this.spriteSet = spriteSet; } public Particle createParticle(final SimpleParticleType type, final ClientLevel world, final double x, final double y, final double z, final double xSpeed, final double ySpeed, final double zSpeed ) { final com.peet.somename.particles.DepthVisionParticle particle = new com.peet.somename.particles.DepthVisionParticle(world, x, y, z, 0.0, 0.0, 0.0, this.spriteSet); particle.setParticleSpeed((float) xSpeed, (float) ySpeed, (float) zSpeed); return particle; } } }  
    • no, but do you know  any alternatives that will give me access to shaders?
    • I used an alternative for this, this is a sheet template, which helped me simplify my task and I did not have to count, because every time I start counting again, I always get confused. In the same way, when I change something, in the template, I can edit everything and put it in the order I need.
  • Topics

×
×
  • Create New...

Important Information

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