Everything posted by marcocorriero
-
Help with Compiling a mod
You are wrong Proof: Idk what i need to do, can someone fix the code and tell what is wrong with it?
-
Help with Compiling a mod
He is importing the mod not exporting. He needs to correctly deobfuscate it before it will work in a dev environment though. I got some progress after what he said , look ^
-
Help with Compiling a mod
He is importing the mod not exporting. He needs to correctly deobfuscate it before it will work in a dev environment though. Is a correct deobfuscated mod, i didnt decompiled it, if you extract this https://minecraft.curseforge.com/projects/betterinventory/files/2327551 Is a source .jar... oh, i did what he said, trying to compile with gradlew build, looks 1 error! C:\Users\marco\Desktop\forge-1.10.2-12.18.2.2099-mdk (1)>gradlew build This mapping 'snapshot_20160518' was designed for MC 1.9.4! Use at your own peri l. ################################################# ForgeGradle 2.2-SNAPSHOT-c438b06 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :sourceApiJava :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava :compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\marco\Desktop\forge-1.10.2-12.18.2.2099-mdk (1)\build\sources\main\java \mcmodding4k\betterinventory\Tabs\TabPotion.java:35: error: bad initializer for for-loop for (NBT : array) ^ 1 error 1 warning :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * 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: 8.195 secs C:\Users\marco\Desktop\forge-1.10.2-12.18.2.2099-mdk (1)> here the code for the error class, cannot find it (im a newbie with java code) im trying to learn package mcmodding4k.betterinventory.Tabs; import java.util.List; import mcmodding4k.betterinventory.util.ItemStacks; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.JsonToNBT; import net.minecraft.nbt.NBTException; import net.minecraft.potion.Potion; public class TabPotion extends CreativeTabs { public TabPotion(int id, String unlocalizedName) { super(id, unlocalizedName); func_78025_a("item_search.png"); } public Item func_78016_d() { return Items.field_151068_bn; } public boolean hasSearchBar() { return true; } public void func_78018_a(List<ItemStack> p_78018_1_) { String[] array = { "{AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:20,Operation:0,UUIDLeast:967858,UUIDMost:899140}]}", "{AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:-20,Operation:0,UUIDLeast:967858,UUIDMost:899140}]}", "{AttributeModifiers:[{AttributeName:\"generic.movementSpeed\",Name:\"generic.movementSpeed\",Amount:0.1,Operation:1,UUIDLeast:15939,UUIDMost:395317}]}", "{AttributeModifiers:[{AttributeName:\"generic.movementSpeed\",Name:\"generic.movementSpeed\",Amount:1,Operation:1,UUIDLeast:15939,UUIDMost:395317}]}", "{AttributeModifiers:[{AttributeName:\"generic.movementSpeed\",Name:\"generic.movementSpeed\",Amount:10,Operation:1,UUIDLeast:15939,UUIDMost:395317}]}" }; for (NBT : array) { stick = new ItemStack(Items.field_151055_y); try { stick.func_77982_d(JsonToNBT.func_180713_a(NBT)); } catch (NBTException localNBTException) {} p_78018_1_.add(stick); } p_78018_1_.add(new ItemStack(Items.field_151117_aB)); String[] types = { "potion", "splash_potion", "lingering_potion" }; String[] amplifiers = { "0", "1", "2", "12", "60", "144", "254", "255" }; int[] durations = { 1, 20, 60, 100000 }; String NBT = types;ItemStack stick = NBT.length; for (localNBTException = 0; localNBTException < stick; localNBTException++) { String type = NBT[localNBTException]; for (int effect = 1; effect <= 25; effect++) { for (String amplifier : amplifiers) { for (int duration : durations) { p_78018_1_.add(ItemStacks.stringtostack(type + " 1 0 {CustomPotionEffects:[{Id:" + effect + ",Amplifier:" + amplifier + ",Duration:" + duration * 20 + "}],display:{Name:\"" + type + " " + Potion.func_188412_a(effect).func_76393_a() + " " + amplifier + " for " + (duration == 100000 ? "ever" : new StringBuilder().append(duration).append("sec").toString()) + "\"}}")); } } } } } }
-
Help with Compiling a mod
He is importing the mod not exporting. He needs to correctly deobfuscate it before it will work in a dev environment though. Is a correct deobfuscated mod, i didnt decompiled it, if you extract this https://minecraft.curseforge.com/projects/betterinventory/files/2327551 Is a source .jar...
-
Help with Compiling a mod
That's the download link for the mod file and is a compiled .jar file. I don't think Eclipse can read that. And if someone posts their mod for download that doesn't mean you have the right to change it. Did you get the permission from the mod author to do changes to the mod? If you didn't then i suppose you can still change stuff, only if you keep the modified version private and not give it to anyone else. If you open with the winrar, you can notice the mod is not compiled, soo he released the source https://minecraft.curseforge.com/projects/betterinventory/files/2327551 try to open this .jar with winrar. the files are all .java field_146292_n.add(new GuiButton(100, 5, field_146295_m / 2 + 25, 20, 20, Chat.code(0) + "&0")); field_146292_n.add(new GuiButton(101, 30, field_146295_m / 2 + 25, 20, 20, Chat.code(1) + "&1")); field_146292_n.add(new GuiButton(102, 55, field_146295_m / 2 + 25, 20, 20, Chat.code(2) + "&2")); field_146292_n.add(new GuiButton(103, 80, field_146295_m / 2 + 25, 20, 20, Chat.code(3) + "&3")); field_146292_n.add(new GuiButton(104, 105, field_146295_m / 2 + 25, 20, 20, Chat.code(4) + "&4")); field_146292_n.add(new GuiButton(105, 130, field_146295_m / 2 + 25, 20, 20, Chat.code(5) + "&5")); field_146292_n.add(new GuiButton(106, 155, field_146295_m / 2 + 25, 20, 20, Chat.code(6) + "&6")); field_146292_n.add(new GuiButton(107, 180, field_146295_m / 2 + 25, 20, 20, Chat.code(7) + "&7")); field_146292_n.add(new GuiButton(108, 205, field_146295_m / 2 + 25, 20, 20, Chat.code( + "&8")); field_146292_n.add(new GuiButton(109, 230, field_146295_m / 2 + 25, 20, 20, Chat.code(9) + "&9")); field_146292_n.add(new GuiButton(110, 255, field_146295_m / 2 + 25, 20, 20, Chat.code("a") + "&a")); field_146292_n.add(new GuiButton(111, 280, field_146295_m / 2 + 25, 20, 20, Chat.code("b") + "&b")); field_146292_n.add(new GuiButton(112, 305, field_146295_m / 2 + 25, 20, 20, Chat.code("c") + "&c")); field_146292_n.add(new GuiButton(113, 330, field_146295_m / 2 + 25, 20, 20, Chat.code("d") + "&d")); field_146292_n.add(new GuiButton(114, 355, field_146295_m / 2 + 25, 20, 20, Chat.code("e") + "&e")); field_146292_n.add(new GuiButton(115, 380, field_146295_m / 2 + 25, 20, 20, Chat.code("f") + "&f")); field_146292_n.add(new GuiButton(116, 405, field_146295_m / 2 + 25, 20, 20, Chat.Obfuscated + "&k")); field_146292_n.add(new GuiButton(117, 430, field_146295_m / 2 + 25, 20, 20, Chat.Bold + "&l")); field_146292_n.add(new GuiButton(118, field_146294_l - 225, field_146295_m / 2, 20, 20, Chat.Strikethrough + "&m")); field_146292_n.add(new GuiButton(119, field_146294_l - 200, field_146295_m / 2, 20, 20, Chat.Underline + "&n")); field_146292_n.add(new GuiButton(120, field_146294_l - 175, field_146295_m / 2, 20, 20, Chat.Italic + "&o")); field_146292_n.add(new GuiButton(121, field_146294_l - 150, field_146295_m / 2, 20, 20, Chat.Reset + "&r")); all errors are about those fields in every .java.
-
Help with Compiling a mod
Do you have their permission? Why did you not specify this at first? From looking closer at the errors it appears as though you have an obfuscated version of the source code. Ask them to provide you with an unobfuscated version. He released it into a Jar, look at his latest download https://minecraft.curseforge.com/projects/betterinventory
-
Help with Compiling a mod
I am assuming you downloaded and unzipped the MDK? Also, you need to run the "setupDecompWorkspace" (or at least "setupDevWorkspace") task. Not the "setup" task. Please clarify. Please clarify. I imported a one Mod released by McModding , is named BetterCreativeInventory, he uploaded the non-compiled jar as his latest release, i want to do some edits MDKesample appears when i import eclipse folder generated by gradle.
-
Help with Compiling a mod
Okay, i did Gradlew setup after i did Gradlew eclipse, When i set the eclipse workspace to the Eclipse folder I get MDKesample I delete the testmod.java and i import the Mod source. There the errors
-
Help with Compiling a mod
Opening the Source of the mod, BOOM , alot of errors.
-
Help with Compiling a mod
After i did gradlew eclipse i opened it, same errors as compilation, maybe someone wanna help me with teamviewer? Did you run gradlew setupDecompWorkspace? yep, i did Hourly rates are $50 and up. I did, same errors, Why paid teamviewer? -.- is just a small forge mod editing...
-
Help with Compiling a mod
After i did gradlew eclipse i opened it, same errors as compilation, maybe someone wanna help me with teamviewer?
-
Help with Compiling a mod
This tutorial is highly outdated. I suggest you follow the official documentation. No thanks. Then don't. I did all things, same errors....
-
Help with Compiling a mod
On the bottom-right of the page you can click the Notify button to notify you by email when there's a message in this thread. Thank you!, now help meh to edit this mod, it makes error in every way! i used 1.10.2 gradle, and is making error in all things with Field
-
Help with Compiling a mod
http://www.minecraftforge.net/forum/index.php?topic=14048.0#post_troubleshoot We can talk in somewhere else? like skype or discord? , because i dont like refreshing every min the page lol
-
Help with Compiling a mod
Eclipse, and i followed the istruction to setup Gradlew
-
Help with Compiling a mod
Im recent to configuring IDE, and i tried using Netbeans & Eclipse, the error i got all from eclipse, and im using gradlew 1.10.2 The forge one, i followed all Tutorials. Sorry, im newbie
-
Help with Compiling a mod
Welp, is not compiling and giving me alot of error, im getting mad!
IPS spam blocked by CleanTalk.