Jump to content

Blockout22

Members
  • Posts

    33
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Blockout22's Achievements

Tree Puncher

Tree Puncher (2/8)

3

Reputation

  1. & which method would that be, & no one asked for the method in the first place
  2. does forge not add anything for gui's?
  3. is there any easy way to edit something like GuiMainMenu without having to copy & paste the full code into your custom Gui
  4. 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
  5. 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"
  6. 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?
  7. 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?
  8. okay thanks thats all I need, I will look into it but the gui code im using shouldnt be causing the ploblem
  9. so did you test it with the above code? using GuiMainMenu to
  10. Here is a download link but your just gona get the exact same results as Ive already given you !! https://dl.dropboxusercontent.com/s/zrmx258t7x9nc1k/CustomMainMenu.class?dl=1&token_hash=AAFVlIuuMkzct_Ti-9CNXbp9UZBd_eP6ArkvXYj10zlJQg & 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 !
  11. 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()); } } }
  12. 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()); } }
  13. 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)
  14. 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
×
×
  • Create New...

Important Information

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