Blockout22
-
Posts
33 -
Joined
-
Last visited
Posts posted by Blockout22
-
-
ASM. Which is even more advanced.
does forge not add anything for gui's?
-
is there any easy way to edit something like GuiMainMenu without having to copy & paste the full code into your custom Gui
-
try changing the path to the correct location which i believe when I did that it fixed at least one of the errors ... then run the commands shown in the above link
or you could just run the commands without changing the path but that never really worked out for me
-
Run the following commands and be sure to give us a log file which is in the .gradle folder.
gradlew --refresh-dependancies
gradlew setupDecompWorkspace --debug
gradlew eclipse --debug
problem fixed but is there any reason what mite of caused it to look for "C:\Users\"USER"\Desktop\Eclipse\ unresolved - forgeSrc 1.7.2-10.12.0.1021" in that location & with extended name instead of the .gradle folder?
the only things I did to cause it was change the version number and run "gradlw.bat setupDecompWorkspace eclipse"
-
I keep getting the following errors when trying to setup forgegradle:
Illegal entry in Gradle Dependencies: "C:/Users/"USER"/Desktop/Eclipse/unresolved dependency - forgeSrc 1.7.2-10.12.0.1021 Project 'ForgeGradle' is missing required librarys: 'C:\Users\"USER"\Desktop\Eclipse\ unresolved - forgeSrc 1.7.2-10.12.0.1021 The project cannot be built until build path errors are resolved
it was all working fine until I wanted to update forge
Iv'e tried removing everything including the .gradle folder & forge src folder I also tried going back to the version I was already using but that seemed to have stopped working to
another thing I was thinking ... why is it looking in my main eclipse folder for fogeSrc?
-
package net.minecraft.client.renderer.texture does not exist
you should use an IDE to spot errors like this ... if you are then how didnt you see that error?
-
Yes, using my own custom GUI code, as you havent provided everyhting. As I said, there is nothing on our end that would cause this.
Your only option is to give me everything you have so I can get your EXACT workspace, or figure it out yourself.
okay thanks thats all I need, I will look into it but the gui code im using shouldnt be causing the ploblem
-
Ya, I tested out with my own code.
There is nothing that is in any of our systems that would cause this.
so did you test it with the above code? using GuiMainMenu to
-
-.-
When you compile java
It creates a file
Ending in .class
Give
me
that
file
How is this fucking hard to get?
Or explain to me exactly how you're getting this code.
SOMETHING you're doing is screwing things up.
There is nothing in our code that would do this.
It kinda looks like your code isnt actually updating or you're nto compiling it.
If you cant get more details then make a video of what you're doing.
Here is a download link but your just gona get the exact same results as Ive already given you !!
& ive compiled it using build command in gradle (same as in your video ... stop making it complicated (its not its simply)) I know it compiles correctly because ive tried changing "GuiMainMenu" to "GuiOption" & that worked fine ... there is nothing else I can tell you if its not me causes the bugs ... you can try it in your dev environment & tell me your results & if it works there is some BS wrong on my end !
-
I'm asking for the actual .class file.
that is still from the class file but here is full code then from class file
import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.eventhandler.EventBus; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; @Mod(modid="CustomMainMenu", version="1.7.2") public class CustomMainMenu { @SideOnly(Side.CLIENT) @Mod.EventHandler public void init(FMLInitializationEvent event) { FMLCommonHandler.instance().bus().register(this); } @SideOnly(Side.CLIENT) @SubscribeEvent public void tick(TickEvent.ClientTickEvent event) { GuiScreen screen = Minecraft.func_71410_x().field_71462_r; if ((screen instanceof ANewMainMenu)) { FMLClientHandler.instance().getClient().func_147108_a(new ANewMainMenu()); } } }
-
Where are you getting that code? There is nothing that should do that, Got the compiled class so i can take a look?
that is the compiled class
-
1) Don't use the tick handler, we have an event for this
2) What are you doing? And what is it doing exactly?
What is the compiled code?
if the current gui screen is GuiMainMenu then it will change to ANewMainMenu
and the code when I build it
public void tick(TickEvent.ClientTickEvent event) { GuiScreen screen = Minecraft.func_71410_x().field_71462_r; if ((screen instanceof ANewMainMenu)) { FMLClientHandler.instance().getClient().func_147108_a(new ANewMainMenu()); } }
-
public void tick(ClientTickEvent event) { GuiScreen screen = Minecraft.getMinecraft().currentScreen; if(screen instanceof GuiMainMenu) { FMLClientHandler.instance().getClient().func_147108_a(new ANewMainMenu()); }else { } }
Every time a build that code above it always changes "GuiMainMenu" to "ANewMainMenu" (or w/e the class name is called)
-
You didn't answer my question, and read the damn json file it has the links.
Our installer is also open source so you can see exactly what it does.
My question still stands, What problem are you trying to address with the project you're working on.
oh you mean between forge installer & my project? just an installer with all the forge downloads rather than downloading the installer again if you change minecraft version
if that doesnt answer your question idk wtf you mean
-
What problem are you trying to solve with your project?
everything is working once the library's are installed but there are 2 library's what the forge installer downloads with the installation & all I need are the links to the downloads then my project is pretty much complete
thanks for the above links but I just copy the .json file from the universal jar since its all format'ed for me
-
Feel free to look at the forge installer source on the Forge github and see what exactly it does.
was trying either im an idiot or it reads something from the .json file but the only thing i could think of that it was reading were the numbers
-
watbasically ive made a forge modlist rather than having to keep downloading another installer for every forge versionI wont release anything if you choose to not let me ... but your license says other, the only links I use are the ones you have on http://files.minecraftforge.net/ , its no hate on the official installer I just wanted to make my self my own one having multiply versions without having to re-download anything ... if you want I could just show you it first?
-
What do you need the libraries for?
I need them so I can download them, basically ive made a forge modlist rather than having to keep downloading another installer for every forge version
-
gradlew.bat SetupDevWorkspace isnt required
since gradlew.bat eclipse runs that commands with it
-
Stop making it complciated:
this was posted ages ago & its not complicated, its people them selfs who make it complicated, I did previously watch your video tho & noticed you dont need gradle but having gradle lets you do the commands in eclipse meaning you dont have to touch the forge src download
-
In various places. Some are on the forge maven repo, some are on the mojang maven. Why do you ask?
google didn't help me much I couldnt find the repo & I ask because its stopping me from finishing my project im working on
-
what are the links to the libraries that the forge installer downloads & installs ?
-
Where must I put this?
System.out.println(this.func_149732_F().substring(5).replace(".name", ""));
I tried to put it in CopperOre function, but couldn't find this
Also I tried this code in init function:
for (int x = 0; x<10;x++) { System.out.println("lol"); System.out.println(CopperOre.func_149732_F().substring(5).replace(".name", "")); }
and searched for "lol" in text editor, but it couldn't find it
clearly you don't want help anymore ... so Gl
-
here put this into your block class
public void func_149651_a(IIconRegister icon) { this.field_149761_L = icon.registerIcon(ModNAME.modid + ":" + this.func_149732_F().substring(5).replace(".name", "")); }
this.func_149732 = getUnlocalizedName()
do:
System.out.println(this.func_149732_F().substring(5).replace(".name", ""));
it should print out the unlocalized name & thats what your png image should be called
1.7.4 editing existing classes
in Modder Support
Posted
& which method would that be, & no one asked for the method in the first place