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
  • [1.7.2] Oddity after compile
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
delpi

[1.7.2] Oddity after compile

By delpi, July 6, 2014 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

delpi    71

delpi

delpi    71

  • Dragon Slayer
  • delpi
  • Forge Modder
  • 71
  • 840 posts
Posted July 6, 2014

I've been rocking and rolling with 1.7.2 for some time now, but I just ran into a weird issue.

 

Without changing anything that I know of, one of my child references compiles fine but when I try to run it on my server, the server crashes.

 

When i simply try to set the value in the constructor of the child class, it tells me the method does not exist.  Everything runs fine in the IDE. 

 

This is a portion of the parent class

 

 

 

protected int absorb = 0;

 

    public CDItem() {

        super();

       

    }

 

 

 

 

The one unusual thing on the setup is that the parent is in a 'repository' for my mod.  It is sucked in through gradle on compile.

 

 

 

dependencies {

        compile files (

                "../CD_Utilities/java"

        )

}

 

 

 

 

There is a couple lines about unsafe operation i don't remember seeing in the gradle output.

 

 

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

Powered By MCP:           

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

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

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

:extractUserDev UP-TO-DATE

:extractNatives UP-TO-DATE

:makeStart SKIPPED

:compileApiJava UP-TO-DATE

:processApiResources UP-TO-DATE

:apiClasses UP-TO-DATE

:sourceMainJava UP-TO-DATE

:compileJavaNote: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

 

:processResources UP-TO-DATE

:classes

:jar

:compileTestJava UP-TO-DATE

:processTestResources UP-TO-DATE

:testClasses UP-TO-DATE

:test UP-TO-DATE

:genSrgs SKIPPED

:reobf

:assemble

:check UP-TO-DATE

:build

 

BUILD SUCCESSFUL

 

Total time: 15.526 secs

 

  • Quote

Long time Bukkit & Forge Programmer

Happy to try and help

Share this post


Link to post
Share on other sites

delpi    71

delpi

delpi    71

  • Dragon Slayer
  • delpi
  • Forge Modder
  • 71
  • 840 posts
Posted July 7, 2014

I looked around some more and still couldn't find any other way. 

 

Anybody got a different way to do this?

  • Quote

Long time Bukkit & Forge Programmer

Happy to try and help

Share this post


Link to post
Share on other sites

AbrarSyed    9

AbrarSyed

AbrarSyed    9

  • Stone Miner
  • AbrarSyed
  • Forge Modder
  • 9
  • 51 posts
Posted July 9, 2014

paste your entire build.gradle file pelase.

  • Quote

width=600 height=100http://i56.tinypic.com/ruu0ao.png[/img]

^^ url to be changed.

Share this post


Link to post
Share on other sites

delpi    71

delpi

delpi    71

  • Dragon Slayer
  • delpi
  • Forge Modder
  • 71
  • 840 posts
Posted July 9, 2014

Here is the gradle build file

 

 

 

buildscript {

repositories

{

mavenCentral()

maven {

name = "forge"

url = "http://files.minecraftforge.net/maven"

}

maven {

name = "sonatype"

url = "https://oss.sonatype.org/content/repositories/snapshots/"

}

}

dependencies

{

classpath "net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT"

}

}

 

apply plugin: "forge"

 

sourceCompatibility = 1.7

targetCompatibility = 1.7

 

sourceSets

{

main

{

java { srcDirs = ["$projectDir/java"] }

resources { srcDirs = ["$projectDir/resources"] }

}

}

 

archivesBaseName = "Dimension Multiplyer"

version = "2.24"

minecraft.version = "1.7.2-10.12.1.1060"

 

dependencies {

        compile files (

                "../CD_Utilities/java"

        )

}

 

 

 

To give some more specifis, I had something in the CD_Utilities called CD_Items which extended Items. It also had some variables and methods.  If I was extending by only one of my other mods, things were fine.  As soon as I extended it into a 2nd mod, one or the other would claim the method/variable didn't exists.  It was dependent on load order.  If I chaned it around, everything was fine.

 

To solve it I moved that class out of the repository into each individual mod, but now I end up having to modify both which is agsints the whole point in having it in a central location in the first point.

  • Quote

Long time Bukkit & Forge Programmer

Happy to try and help

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 2
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
  • [1.7.2] Oddity after compile
  • Theme

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