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

    • diesieben07
      Right Way To Add Arbitrary Data To PlayerEntities

      By diesieben07 · Posted just now

      Capabilities
    • diesieben07
      Custom Slime Block not working with Pistons

      By diesieben07 · Posted 1 minute ago

      Wat... No. I need an URL I can clone.
    • Iron1601
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601 · Posted 36 minutes ago

      I want to have a field or some attribute to PlayerEntity that indicates whether the player is pressing a key. I've tried DataManagers but the id value overlap makes me think that is the wrong way to do it on top of causing exceptions. I've also tried Lists and such to store players that did but sidedness and thread safety make me think thats also the wrong way. My question is how do I add this boolean attribute in such a way that avoids sidedness and is the proper way?   Thanks.
    • NullDev
      Custom Slime Block not working with Pistons

      By NullDev · Posted 1 hour ago

      Does this git repo generated by IntelliJ work? That's the only way I know how to make a git repo of it. .git.zip
    • diesieben07
      Mods aren't loading on Forge 1.16.5 server

      By diesieben07 · Posted 1 hour ago

      it should work fine if the bat file is in the same folder as the jar.
  • Topics

    • Iron1601
      1
      Right Way To Add Arbitrary Data To PlayerEntities

      By Iron1601
      Started 36 minutes ago

    • NullDev
      5
      Custom Slime Block not working with Pistons

      By NullDev
      Started 17 hours ago

    • KBomb
      23
      Mods aren't loading on Forge 1.16.5 server

      By KBomb
      Started Yesterday at 07:32 PM

    • Jeldrik
      8
      Starting GUI on key Input

      By Jeldrik
      Started 18 hours ago

    • yousuf
      30
      My modpack is about to be complete just need a few help

      By yousuf
      Started February 14

  • Who's Online (See full list)

    • vemerion
    • NullDev
    • Iron1601
    • tabr
    • Leronus
    • MoeBoy76
    • captainrex99
    • Jeldrik
  • 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