
TesterTesting135
Members-
Posts
105 -
Joined
-
Last visited
Everything posted by TesterTesting135
-
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Here is my build.gradle: buildscript { repositories { jcenter() maven { url = "https://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "1.0" group = "com.moremachines.moremachines" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "moremachines" sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.5.2836" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "stable_39" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else except the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } sourceSets { main { output.resourcesDir = output.classesDir } } -
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, so i did it in the CMD line and heres what i got: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':reobfJar'. > java.util.zip.ZipException: duplicate entry: assets/moremachines/lang/en_us.lang * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':reobfJar'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$ExecuteTaskAction.execute(DefaultTaskExecutionGraph.java:262) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$ExecuteTaskAction.execute(DefaultTaskExecutionGraph.java:246) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:136) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.execute(DefaultTaskPlanExecutor.java:201) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.executeWithTask(DefaultTaskPlanExecutor.java:192) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:130) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) Caused by: org.gradle.api.UncheckedIOException: java.util.zip.ZipException: duplicate entry: assets/moremachines/lang/en_us.lang at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:57) at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:794) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:761) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99) ... 30 more Caused by: java.util.zip.ZipException: duplicate entry: assets/moremachines/lang/en_us.lang at net.minecraftforge.gradle.user.TaskSingleReobf.applyExtraTransformers(TaskSingleReobf.java:261) at net.minecraftforge.gradle.user.TaskSingleReobf.doTask(TaskSingleReobf.java:181) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) ... 43 more * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.8.1/userguide/command_line_interface.html#sec:command_line_warnings -
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
I don't see it in the build output, and also I'm using intellij to build it, not cmd. -
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
I got it working by putting it in the arguments section (Not JVM), but where is the log directory? -
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, so i put it in the arguments section and the command works, but where is the log? -
[UNSOLVED] reobf jar: dublicate entry
TesterTesting135 replied to TesterTesting135's topic in Modder Support
When i put --stacktrace, it give me this: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.8.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: --stacktrace ----------------------- Check the JVM arguments defined for the gradle process in: - gradle.properties in project root directory -
Alright, so I'm trying to compile my mod and I'm getting the titles error. The mod works fine, it just can't build. I tried deleting the build directory, but it didn't work. This link also provides an error from another person, except they fixed it buy reinstalling forge. https://stackoverflow.com/questions/55997879/issue-with-compiling-mod-at-reobfjar-java-util-zip-zipexception-duplicate-entr Unfortunately, I'm not sure how to do this. Any help would be appreciated, thanks.
-
Hello, so I'm trying to add additional tooltips to items. I have it so that when you press a character, it will do something to a item. I want to be able to see that the item has been modified. I am using RenderTooltipEvent.PostBackRound, but it just keeps crashing. Here is my code: @SubscribeEvent public static void onTooltipPreEvent(RenderTooltipEvent.PostBackground event) { ItemStack stack = event.getStack(); NBTTagCompound nbt; if (stack.hasTagCompound()) { nbt = stack.getTagCompound(); } else { nbt = new NBTTagCompound(); } if (nbt.hasKey(ModifactionTable.NBT_LOCK)) { if (nbt.getBoolean(ModifactionTable.NBT_LOCK)) { event.getLines().add("Item Modified"); } } }
-
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Bump. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
I tried some things, but it keeps crashing. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, I didn't realize there were parameters. What am i supposed to put for windowIn and how do i get the current slot? -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, i did this: NetworkManager manager = new NetworkManager(PacketDirection.CLIENTBOUND); WorkingPacketHandler.channel.sendTo(new SSetSlotPacket(), manager, NetworkDirection.PLAY_TO_CLIENT); but it still doesn't work. Am i doing it wrong? -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, so i made a packet handler. What should i send to the client? Thanks. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, I will try that. I’m still not sure why it worked on 1.12.2. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, so I did player.container.detectandsendchanges but it still isn’t working. Also, if the item is not in slot 1 and the slot before is not occupied, it will push the item to the slot before and work. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, I’m not currently at my environment but I think I have a solution: however, I don’t know player.inventoryContainer in 1.14. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
I’m not sure if it’s on the server or client. I just created a class and annotated it event bus subscriber, and put that method in. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Do you know how I could fix it? It worked in 1.12.2. Thanks. -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Sorry to bother you, but I'm trying to cancel the item drop event, and it works, but only if i have the inventory open, and then drag and drop out or press q inside the inventory menu. However, it doesn't work when i "q" inside the hotbar, without the inventory open. It just "deletes" the item, but when I click on the slot with the inventory open it reappears. Do you know why? Thanks. Code: @SubscribeEvent public static void onToss(ItemTossEvent event) { PlayerEntity player = event.getPlayer(); //player.sendMessage(new StringTextComponent("1nd Stage.")); if (ItemItemLock.hasLock(player)) { //player.sendMessage(new StringTextComponent("2nd Stage.")); ItemStack droppedItem = event.getEntityItem().getItem(); CompoundNBT nbt; if (droppedItem.hasTag()) { nbt = droppedItem.getTag(); } else { nbt = new CompoundNBT(); } // player.sendMessage(new StringTextComponent("3nd Stage.")); if (nbt.contains(ItemItemLock.NBT_LOCK)) { // player.sendMessage(new StringTextComponent("4nd Stage.")); if (nbt.getBoolean(ItemItemLock.NBT_LOCK)) { // player.sendMessage(new StringTextComponent("5nd Stage.")); event.setCanceled(true); ItemStack copy = droppedItem.copy(); player.inventory.add(1, copy); } } } } -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, thanks! -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, thank you! Also, by any chance do you know how to add a tooltip to another item that you didn't create? (I'm trying to when you press a key, it will do stuff and also add a tooltip to that item that you're holding) -
[1.14.4] Help with creating keybindings.
TesterTesting135 replied to TesterTesting135's topic in Modder Support
Ok, so I've figured out the keybinds but now i'm having trouble with packets. I don't understand the parameters of registerMessage. -
Hello, so I'm attempting to create a keybinding. I've done it in 1.12.2, but have no idea how to do it in 1.14.4. Any assistance would be appreciated. Thanks.
-
[1.14.4] Cannot find ForgeConfigSpec.FloatValue
TesterTesting135 replied to TesterTesting135's topic in Modder Support
-
[1.14.4] Cannot find ForgeConfigSpec.FloatValue
TesterTesting135 replied to TesterTesting135's topic in Modder Support
It doesn't seem you can cast double to float.