Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • Forge Workspace Setup Issue
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
YSPilot

Forge Workspace Setup Issue

By YSPilot, January 22, 2014 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

YSPilot    2

YSPilot

YSPilot    2

  • Tree Puncher
  • YSPilot
  • Members
  • 2
  • 22 posts
Posted January 22, 2014

I'm not entirely sure how to describe my problem, but I am going to try. Pretty much I was trying to update my 1.7.2 ForgeGradle files, and I deleted everything in the folder, and re did the setup. I did the setupDecompWorkspace and the eclipse Commands in gradle. However, when I get into eclipse, It sees the packages as being there, but its not seeing any classes. Im not sure what I am doing. Any suggestions?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7696

diesieben07

diesieben07    7696

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7696
  • 56376 posts
Posted January 22, 2014

You will get the forge/minecraft source as a jar dependency. Have you checked there?

  • Quote

Share this post


Link to post
Share on other sites

YSPilot    2

YSPilot

YSPilot    2

  • Tree Puncher
  • YSPilot
  • Members
  • 2
  • 22 posts
Posted January 22, 2014

forgeSrc-1.7.2-10.12.0.1011-sources.jar? Its there and loaded.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7696

diesieben07

diesieben07    7696

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7696
  • 56376 posts
Posted January 22, 2014

forgeSrc-1.7.2-10.12.0.1011-sources.jar? Its there and loaded.

So, what is your problem then? :D
  • Quote

Share this post


Link to post
Share on other sites

YSPilot    2

YSPilot

YSPilot    2

  • Tree Puncher
  • YSPilot
  • Members
  • 2
  • 22 posts
Posted January 22, 2014

Its registering any class files being in there.

 

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7696

diesieben07

diesieben07    7696

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7696
  • 56376 posts
Posted January 22, 2014

Its registering any class files being in there.

I don't get your problem. Maybe make a screenshot?
  • Quote

Share this post


Link to post
Share on other sites

Acaeris    0

Acaeris

Acaeris    0

  • Tree Puncher
  • Acaeris
  • Members
  • 0
  • 18 posts
Posted January 22, 2014

I'm having this issue as well.

 

Forge 1.7.2-10.12.0.1012

 

Both setupDecompWorkspace and eclipse commands completed successfully.

 

In Netbeans I get the following project errors with the example mod:

package net.minecraft.init does not exist
package cpw.mods.fml.common does not exist
package cpw.mods.fml.common.Mod does not exist
package cpw.mods.fml.common.event does not exist

 

In the projects list I can see those packages though:

 

forge1.7.2
+ Dependencies
  + Compile for main
    + forgeSrc-1.7.2-10.12.0.1012.jar
      + cpw.mods.fml.common
          Mod
      + cpw.mods.fml.common.event
          FMLInitializationEvent
      + net.minecraft.init
          Blocks

  • Quote

Share this post


Link to post
Share on other sites

YSPilot    2

YSPilot

YSPilot    2

  • Tree Puncher
  • YSPilot
  • Members
  • 2
  • 22 posts
Posted January 22, 2014

After Much playing around. I found that the following Works:

Clear the Forge folder(the one containing the gradlew.bat) and re-extract from the zip. Run the command:

gradlew setupDevWorkspace eclipse

 

Hope that helps anyone else!

  • Quote

Share this post


Link to post
Share on other sites

Acaeris    0

Acaeris

Acaeris    0

  • Tree Puncher
  • Acaeris
  • Members
  • 0
  • 18 posts
Posted January 22, 2014

After Much playing around. I found that the following Works:

Clear the Forge folder(the one containing the gradlew.bat) and re-extract from the zip. Run the command:

gradlew setupDevWorkspace eclipse

 

Hope that helps anyone else!

 

This didn't solve it in my case.

  • Quote

Share this post


Link to post
Share on other sites

GotoLink    381

GotoLink

GotoLink    381

  • World Shaper
  • GotoLink
  • Members
  • 381
  • 2012 posts
Posted January 22, 2014

gradlew --refresh-dependencies eclipse

That should set the libraries appropriately.

  • Quote

Share this post


Link to post
Share on other sites

Acaeris    0

Acaeris

Acaeris    0

  • Tree Puncher
  • Acaeris
  • Members
  • 0
  • 18 posts
Posted January 22, 2014

No success with that either.

 

td8j.png

  • Quote

Share this post


Link to post
Share on other sites

karyonix    3

karyonix

karyonix    3

  • Tree Puncher
  • karyonix
  • Members
  • 3
  • 5 posts
Posted January 23, 2014

Info

In #1012, the .classpath file entry forgeSrc is wrong it must be forgeBin.

In #1012, if you run only setupDecompWorkspace eclipse without setupDevWorkspace, it will not build forgeBin jar file.

 

Instruction

1. Delete ".classspath" file in your forge directory.

2. Run gradlew setupDevWorkspace setupDecompWorkspace eclipse

3. edit the file .classpath

change from

<classpathentry sourcepath="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012-sources.jar" kind="lib" path="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012.jar" exported="true"/>

to

<classpathentry sourcepath="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012-sources.jar" kind="lib" path="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeBin-1.7.2-10.12.0.1012.jar" exported="true"/>

4. Run eclipse -data forgedir\eclipse

  • Quote

Share this post


Link to post
Share on other sites

Acaeris    0

Acaeris

Acaeris    0

  • Tree Puncher
  • Acaeris
  • Members
  • 0
  • 18 posts
Posted January 23, 2014

Unfortunately, that hasn't seemed to work in my case either. After making that change Forge no longer appears in the dependency list at all. I checked the Gradle cache and both the forgeSrc and forgeBin files are there and the .classpath entry points to them correctly but they are not showing in Netbeans, all other entries in the .classpath file are showing fine.

  • Quote

Share this post


Link to post
Share on other sites

Noppes    10

Noppes

Noppes    10

  • Stone Miner
  • Noppes
  • Forge Modder
  • 10
  • 83 posts
Posted January 23, 2014

Info

In #1012, the .classpath file entry forgeSrc is wrong it must be forgeBin.

In #1012, if you run only setupDecompWorkspace eclipse without setupDevWorkspace, it will not build forgeBin jar file.

 

Instruction

1. Delete ".classspath" file in your forge directory.

2. Run gradlew setupDevWorkspace setupDecompWorkspace eclipse

3. edit the file .classpath

change from

<classpathentry sourcepath="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012-sources.jar" kind="lib" path="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012.jar" exported="true"/>

to

<classpathentry sourcepath="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeSrc-1.7.2-10.12.0.1012-sources.jar" kind="lib" path="C:/Users/user/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1012/forgeBin-1.7.2-10.12.0.1012.jar" exported="true"/>

4. Run eclipse -data forgedir\eclipse

That seems to fix my workspace. Whenever I run gradlew build it still gives the errors though

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8957 posts
Posted January 23, 2014

Abrar fucked another thing up yay -.-

For now though setupCIWorkspace and then build should work. This should only effect decomp workspace as it's trying to recompile the decompiled source so that line numbers match up.

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

GotoLink    381

GotoLink

GotoLink    381

  • World Shaper
  • GotoLink
  • Members
  • 381
  • 2012 posts
Posted January 23, 2014

This doesn't happen with IntellijIdea for some reason.

  • Quote

Share this post


Link to post
Share on other sites

Acaeris    0

Acaeris

Acaeris    0

  • Tree Puncher
  • Acaeris
  • Members
  • 0
  • 18 posts
Posted January 24, 2014

I eventually got it working. I basically ran setupDecompWorkspace, deleted the .classpath file, setupDevWorkspace and then manually added the sourcepath entries to the new .classpath file. Why it worked this way around and not the other I do not know.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8957 posts
Posted January 24, 2014

This seems to be fixed on the gradle end, anyone having issues should make sure to --refresh-dependencies

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
Share on other sites

Texenox    2

Texenox

Texenox    2

  • Stone Miner
  • Texenox
  • Forge Modder
  • 2
  • 79 posts
Posted January 24, 2014

This seems to be fixed on the gradle end, anyone having issues should make sure to --refresh-dependencies

 

Will this also work in 10.12.0.1013 with Eclipse?

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1620

LexManos

LexManos    1620

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1620
  • 8957 posts
Posted January 24, 2014

ForgeGradle is independent of Forge version. So yes.

We fix something in the Gradle plugin, it fixes it for ALL versions that use the gradle plugin.

That way when shit like Mojang changing server happenes, we can fix it once and not have to deal with the old crap.

  • Quote

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • NovaMachina
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina · Posted 1 hour ago

      Great point. Should have seen that. Would I just pass that into the IVertexBuilder#lightmap function?
    • Draco18s
      [1.16] Block texture resonds to sky light not block light

      By Draco18s · Posted 1 hour ago

      I wonder what combinedLight is. https://github.com/NovaMachina-Mods/ExNihiloSequentia/blob/1.16/src/main/java/novamachina/exnihilosequentia/client/render/SieveRender.java#L34
    • NovaMachina
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina · Posted 1 hour ago

      I received a bug report where the texture of a block is only responding to the sky light, but not any block lights (such as torches). Here is the link to the renderer that I believe to be the culprit. Any suggestions? https://github.com/NovaMachina-Mods/ExNihiloSequentia/blob/1.16/src/main/java/novamachina/exnihilosequentia/client/render/SieveRender.java Here is an image that shows the issue: https://repo.jacob-williams.me/repository/raw/exnihilosequentia/issues/images/Lighting%20Bug.png
    • brok4d
      OBJ MODELS

      By brok4d · Posted 3 hours ago

      Hello, this mod is the source, you have to get boredhttps://gitlab.com/Lycanite/LycanitesMobs
    • JayNeedsHelp
      Logger not working

      By JayNeedsHelp · Posted 4 hours ago

      So I'm currently creating a forge mod and I'm having an issue where the console stops logging after some errors. It seems to be connected to the access transformers that I'm using as before I added at's my console was working fine.   Here is my at file:  public-f net.minecraft.client.Minecraft session public net.minecraft.client.Minecraft timer public net.minecraft.client.gui.GuiScreen buttonList public net.minecraft.util.Timer tickLength public net.minecraft.network.play.client.CPacketPlayer onGround public net.minecraft.network.play.server.SPacketEntityVelocity motionX public net.minecraft.network.play.server.SPacketEntityVelocity motionY public net.minecraft.network.play.server.SPacketEntityVelocity motionZ public net.minecraft.network.play.server.SPacketExplosion motionX public net.minecraft.network.play.server.SPacketExplosion motionY public net.minecraft.network.play.server.SPacketExplosion motionZ public net.minecraft.client.renderer.entity.RenderManager renderPosX public net.minecraft.client.renderer.entity.RenderManager renderPosY public net.minecraft.client.renderer.entity.RenderManager renderPosZ   Any help is greatly appreciated thank you!
  • Topics

    • NovaMachina
      2
      [1.16] Block texture resonds to sky light not block light

      By NovaMachina
      Started 1 hour ago

    • Milk_Shak3s
      1
      OBJ MODELS

      By Milk_Shak3s
      Started 19 hours ago

    • JayNeedsHelp
      0
      Logger not working

      By JayNeedsHelp
      Started 4 hours ago

    • cadbane86140
      0
      Minecraft: Hunger Games Game #36- Shear FIGHT!

      By cadbane86140
      Started 5 hours ago

    • Sad Whale
      6
      Game crashes whenever I try to increase the RAM

      By Sad Whale
      Started 7 hours ago

  • Who's Online (See full list)

    • elite_mlgbro1
    • Sad Whale
    • MizonSky
    • HappyAndJust
    • NorthWestWind
    • mp1115
    • alpxca07
    • EclipseNation
    • Squrikle
    • sarkozi
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • Forge Workspace Setup Issue
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community