Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Ok, every forge version i used (i tried like 10 different ones) it fails to complete the task setupDecompWorkspace:applyBinPatches and it sais that the client and server jars are modified and if i put something into it. I didn't so i want to delete the client and server jars so it will redownload them, so they aren't corrupted/modified anymore and it can do a fresh install. So i want to know where they are installed, because if i delete the whole forge folder and download it again, it skippes the downloadClient,serverClient and the mergeJars task. If anyone knows that i would appreciate that i can finally start working on updating my mod to 1.7.2!
  2. Could you please update the main post so it fits the 1.7 upgrade because a lot of stuff changed in 1.7 so there's a new gradle version?
  3. Ok, i changed the dependencies to dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT' } but do i need to change the version too: version = "1.0" If i run this "gradlew setupDecompWorkspace" from the command terminal: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT' } } allprojects { apply plugin: 'forge' minecraft{version = "1.7.2-10.12.0.982"} version = "1.0" archivesBaseName = project.projectDir.name } processResources { from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' expand 'version':project.version, 'mcversion':project.minecraft.version } from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } i got this error:
  4. Hello, when i try to install forge fof 1.7.2, it first downloaded the latest 1.6.4 version () and when i changed this: minecraft{version = "1.7.2-10.12.0.981"} so it was gonna download that latest version, but then i got this error: **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** Download http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.7.2-10.12.0.981/forge-1.7.2-10.12.0.981-userdev.jar :downloadMcpTools UP-TO-DATE :extractUserDev :genSrgs UP-TO-DATE :downloadClient SKIPPED :downloadServer SKIPPED :mergeJars SKIPPED :deobfuscateJar Applying SpecialSource... Applying Exceptor... Injecting source info... :decompilePatching failed: minecraft\net\minecraft\crash\CallableSuspiciousClasses.java com.cloudbees.diff.PatchException: Cannot find hunk target at net.minecraftforge.gradle.patching.ContextualPatch.applyHunk(ContextualPatch.java:434) at net.minecraftforge.gradle.patching.ContextualPatch.applyPatch(ContextualPatch.java:255) at net.minecraftforge.gradle.patching.ContextualPatch.patch(ContextualPatch.java:161) at net.minecraftforge.gradle.tasks.DecompileTask.applyMcpPatches(DecompileTask.java:166) at net.minecraftforge.gradle.tasks.DecompileTask.doMCPStuff(DecompileTask.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.gradle.util.JavaMethod.invoke(JavaMethod.java:62) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:527) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:510) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:283) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultTaskPlanExecutor.java:33) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:214) at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:276) at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142) at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:78) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:31) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50) at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.Main.doAction(Main.java:46) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.Main.main(Main.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58) Hunk 1 failed! Hunk 2 failed! FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':decompile'. > Could not call DecompileTask.doMCPStuff() on task ':decompile' * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 4 mins 52.576 secs Is this is a bug or am i doing something wrong?
  5. Aboout this piece of code: sourceSets.main{ java{ srcDirs project.projectDir.getPath() exclude ("bin/", "build*") } resources{ srcDirs project.projectDir.getPath() exclude ("bin/", "build*") } } version = "1.1" is that code in the build.gradle in the forge folder, or is is it the build.gradle in the "Project1" folder?
  6. In your registerIcons method you can register 2 different icons at once. Just create a new icon like this: public Icon iconOn; public Icon iconOff; and your registerIcons method should look like this: public void registerIcons(IconRegister iconRegister) { this.iconOn = iconRegister.registerIcon("your_mod_id:your_on_texture"); this.iconOff = iconRegister.registerIcon("your_mod_id:your_off_texture"); } In your item class you can use this code: public void changeTexture(boolean your_boolean) { if(your_boolean) { this.itemIcon = this.iconOn; } else { this.itemIcon = this.iconOff; } }
  7. Use a tickhandler and check for the player that is wearing the goggles, and then change your block textures based on the player which is wearing the goggles.
  8. Maybe you can use metadata or both the on state and the off state?
  9. Or you can decompile IC2 using Bearded Octo Nemesis and view the source code with JD-Gui
  10. BTW, at this line: if (event.block.blockID == 1398 && meta == 2) { dont use direct id's, but use it like this: if (event.block.blockID == your_block.blockID && meta == 2) {
  11. He's telling you that the TileEntitySpecialRenderer is static, so all your TileEntitySpecialRenderers are the same.
  12. No API == No Other TE Machines
  13. In that "Giant pile of code" where exactly can i find the methode where the grass block is rendered? Is it a seperate method for the grass block or for all blocks the same? Maybe some keywords to find the method where the grass block is rendered?
  14. Ok i don't exactly know how to do this, so where is the grass block rendered?
  15. Hello, I have a question for you guys out there: Does anyone know where the grass texture overlays are rendered? I need this for my block that uses the textures from the block below it, and it works alright exept for the grass blocks, because that uses the colorMultiplier method.
  16. I think that isn't what he wanted, i think he wants something like the RailCraft tanks.
  17. ModLoader.getMinecraftInstance().getIntegratedServer().worldServers[0].getBlockTileEntity(x, y, z); ModLoader.getMinecraftInstance().getIntegratedServer().worldServers[0].markBlockForUpdate(x, y, z); I clearly see two time that you use ModLoader methods.
  18. I don't know if this solves the problem, but in this method your using to complicated/ModLoader systems: public Icon getBlockTexture(IBlockAccess access, int x, int y, int z, int side) { int front = 0; TileEntity tile = ModLoader.getMinecraftInstance().getIntegratedServer().worldServers[0].getBlockTileEntity(x, y, z); if (tile != null) { front = ((TileEntityQuartzFurnace) tile).getFrontDirection(); } else { ModLoader.getMinecraftInstance().getIntegratedServer().worldServers[0].markBlockForUpdate(x, y, z); } switch (side) { case 0: return QuartzIconBottom; case 1: return QuartzIconTop; default: if (side == front) { return ((TileEntityQuartzFurnace) tile).isActive() ? QuartzIconFrontActive : QuartzIconFront; } else { return QuartzIconSide; } } } Change this to this: public Icon getBlockTexture(IBlockAccess access, int x, int y, int z, int side) { int front = 0; TileEntity tile = access.getBlockTileEntity(x, y, z); if (tile != null) { front = ((TileEntityQuartzFurnace) tile).getFrontDirection(); } else { access.markBlockForUpdate(x, y, z); } switch (side) { case 0: return QuartzIconBottom; case 1: return QuartzIconTop; default: if (side == front) { return ((TileEntityQuartzFurnace) tile).isActive() ? QuartzIconFrontActive : QuartzIconFront; } else { return QuartzIconSide; } } } [code] It removes the ModLoader methods and makes it much better to understand.
  19. For your block to be 3D in your inventory you need an ItemRenderer. If you don't want that, delete the ItemRenderer and just make a texture for it just like you do with normal blocks.
  20. Next to the title in the first post is a button called "Edit post". Click on that and edit you title
  21. ok ok thanks that seems to solve it but how to I make it like more rare than diamonds, but more common then emeralds? Choose a value between the one for diamond and emerald
  22. Or you could use reflection to add a button to the main game gui
  23. Is your MCP Test Server IP Adress "localhost" or "127.0.0.1"?
×
×
  • Create New...

Important Information

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