Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MrNice

Members
  • Posts

    25
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MrNice's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. MrNice

    FDL

    and obtain sever mods and dfrences missing..
  2. MrNice

    FDL

    1. How to split 1 mod into server/ client only. 2. How to obtain FML list mods, missing mods- it always say when kick you in console when missing mods. Also get the comparing mods. (Start new ftp servce on some port random or not... store this settings in file in serverfolder/configs) How does forge negotitate server configs to be loaded/ override client settings. For now just.
  3. MrNice

    FDL

    Man i have idea.. I too don't know how to, and how forge does works. It one in 2. I wana to generate a file of mods or smt like this on serwer side only On client side also but that not the main functionality... Now in client we enter somewhere a ip adress or use check if Server has this mod on server side ALSO. Next we gona somehow comunicate.. or download the mods listed, generated list. If we don have we need to obtain them from a serwer( mby start an other demon process or and via minecraft by some keypasing files, and leting download them) that's the main functionality.. What need to be improved or what soo. We start client and server one time before. Server generate a file, update base of mods, and on client side first run will make our list of mods. Still if we try to connect without mods it will kick us as usualy does. After we second start minecraft the downloading phase must be place before loading minecraft finding mods so we don't have to restart still. IF THERE WAS AN OPTION we could hold on loading forge until we finishe download files. When download is ok it gona continue the process and inject all mods . This mod o could call like Mods Downloader, and could be turned out to became a managing mode... Still i would not know how to start minecraft process so it could have built in restart option. This would be awesome... Stilk How to transfer files, or by emulating a ftp or url or some other serwer on port by sending some via minecraft files.. of ftp, or sockets.
  4. Hey i was wandering how to achive if i wanted to modify player health class and exp. I was trying how to get for example 20 hp for lvl 1 and more for each lvl..... How to modify mobs to drop specifyied lvl of experience, or make them hostile or neutral... like a rpg "world of worldarft"
  5. hey i wanted to make some changes got same problem Using forge xxx.953 unpacking sources, adding eclipse folder as workplace adding in jars/mods/ CCC,CCL, but when mod projectred req FMP it download and always FMP crash Can you help me how steb by step set up eclipse for modding with fmp?? I wasted 5 day for searching anserws ;/
  6. Man thx fast help i found that my files were in path where was 1 letter Ł , so i made a folder in root c and then it worked, than recopied. Still i trying to get src files. SHow me liberies but no src minecraft.
  7. Hey i was trying to going back to forge moding, but: see i cannot get eclipse folder to get working it always empty and show error with any version of src i tried do install, always the same.
  8. MrNice

    Gui

    So how should i popup any interface, options or what so ever?? like timer or else in redpower BUT NOT a container.Just a screen that will modify metadata
  9. MrNice

    Gui

    I redone GuiSCreen but now it dosent shows me still dosent work no error nothing: Testmod package Testmod; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="Testmod", name="Test_mod", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false, channels = {"TestMod" }, packetHandler = PacketHandler.class) public class Testmod { // The instance of your mod that Forge uses. @Instance("Testmod") public static Testmod instance; // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="Testmod.ClientProxy", serverSide="Testmod.CommonProxy") public static CommonProxy proxy; //blocks public static Block TitaniumBlock; //items //tools public static Item hammer; EnumToolMaterial Mymaterial = EnumHelper.addToolMaterial("My material", 3, 3000, 8.0F, 10, 14); //GUI private static IGuiHandler guiHandler; @PreInit public void preInit(FMLPreInitializationEvent event) { // Stub Method } @Init public void load(FMLInitializationEvent event) { TitaniumBlock = (new TitaniumOre(538, 0)).setBlockName("TitaniumOre"); MinecraftForge.setBlockHarvestLevel(TitaniumBlock, "pickaxe", 3); GameRegistry.registerBlock(TitaniumBlock); hammer = new hammer(600, Mymaterial).setIconIndex(0).setItemName("Hammer"); LanguageRegistry.addName(TitaniumBlock, "Titanium Block Ore"); LanguageRegistry.addName(hammer, "Mlotek"); proxy.registerRenderThings(); //gui guiHandler = new GuiHandler(); NetworkRegistry.instance().registerGuiHandler(this, guiHandler); } @PostInit public void postInit(FMLPostInitializationEvent event) { // Stub Method } } Packet handler package Testmod; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import net.minecraft.network.INetworkManager; import net.minecraft.network.packet.Packet250CustomPayload; import cpw.mods.fml.common.network.IPacketHandler; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkModHandler; import cpw.mods.fml.common.network.Player; // Create a class and implement IPacketHandler // This just handles the data packets in the server public class PacketHandler implements IPacketHandler{ @Override public void onPacketData(INetworkManager manager, Packet250CustomPayload payload, Player player){ DataInputStream data = new DataInputStream(new ByteArrayInputStream(payload.data)); } } Common Proxy package Testmod; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.client.MinecraftForgeClient; public class CommonProxy { public static String BLOCK_PNG = "/Testmod/pngs/block.png"; public static String ITEMS_PNG = "/Testmod/pngs/items.png"; // Client stuff public void registerRenderThings() { MinecraftForgeClient.preloadTexture(BLOCK_PNG); MinecraftForgeClient.preloadTexture(ITEMS_PNG); } public Object openClientGui(EntityPlayer player, int ID) //getServerGuiElement { return null; } } Client Proxy package Testmod; import cpw.mods.fml.common.network.IGuiHandler; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.client.MinecraftForgeClient; import Testmod.CommonProxy; public class ClientProxy extends CommonProxy { @Override public void registerRenderThings() { } public Object openClientGui(int ID, EntityPlayer player) { switch (ID) { case 0: return new GuiHammer(player,ID); case 1: return new GuiHammer(player,ID); case 2: return new GuiHammer(player,ID); } return null; } hammer package Testmod; import cpw.mods.fml.common.network.FMLNetworkHandler; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class hammer extends ItemPickaxe{ public hammer(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); // TODO Auto-generated constructor stub } @Override public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2Player, World parworld, int x, int y, int z, int side, float hx, float hy, float hz) { if (parworld.isRemote) { return true; } else { int meta = parworld.getBlockMetadata(x, y, z); par2Player.addChatMessage("Side is: "+ side +"\nFacing is "+ meta); par2Player.openGui(Testmod.instance, 0, parworld, x, y, z); //par2EntityPlayer.openGui(); //FMLNetworkHandler.openGui(par2Player, Testmod.instance, 0, parworld, x, y, z); meta+=1; parworld.setBlockAndMetadataWithNotify(x, y, z, parworld.getBlockId(x, y, z), meta); return true; } } @Override public String getTextureFile(){ return "/Testmod/pngs/items.png"; } } GuiHandler package Testmod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return new ClientProxy().openClientGui(player,ID); } } GuiHammer package Testmod; import org.lwjgl.opengl.GL11; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.entity.player.EntityPlayer; public class GuiHammer extends GuiScreen{ public GuiHammer(EntityPlayer player,int ID) { } public final int xSizeOfTexture = 176; public final int ySizeOfTexture = 88; @Override public void drawScreen(int x, int y, float f) { drawDefaultBackground(); int var4 = this.mc.renderEngine.getTexture("/Block/changeColorGUI.png"); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.renderEngine.bindTexture(var4); int posX = (this.width - xSizeOfTexture) / 2; int posY = (this.height - ySizeOfTexture) / 2; drawTexturedModalRect(posX, posY, 0, 0, xSizeOfTexture, ySizeOfTexture); super.drawScreen(x, y, f); } public void initGui() { this.controlList.clear(); int posX = (this.width - xSizeOfTexture) / 2; int posY = (this.height - ySizeOfTexture) / 2; this.controlList.add(new GuiButton(0, posX+ 40, posY + 40, 100, 20, "no use")); } public boolean doesGuiPauseGame() { return true; } } Titaniumore package Testmod; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class TitaniumOre extends Block{ public TitaniumOre(int par1, int par2){ super(par1, par2, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); this.setHardness(89.3F); this.setResistance(89.5F); this.setStepSound(soundMetalFootstep); } @Override public String getTextureFile(){ return "/Testmod/pngs/block.png"; } } Was looking at this topic http://www.minecraftforge.net/forum/index.php?topic=5889.0 well this guy almost know everyting, but why mu GUI DOSENT SHOW PLZ HELP ME.
  10. MrNice

    Gui

    package Testmod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import cpw.mods.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return new GuiHammer(); } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return new GuiHammer(); } } GuiHandler GuiHammer import org.lwjgl.opengl.GL11; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; public class GuiHammer extends GuiScreen{ public final int xSizeOfTexture = 176; public final int ySizeOfTexture = 88; @Override public void drawScreen(int x, int y, float f) { drawDefaultBackground(); int var4 = this.mc.renderEngine.getTexture("/Block/changeColorGUI.png"); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.renderEngine.bindTexture(var4); int posX = (this.width - xSizeOfTexture) / 2; int posY = (this.height - ySizeOfTexture) / 2; drawTexturedModalRect(posX, posY, 0, 0, xSizeOfTexture, ySizeOfTexture); super.drawScreen(x, y, f); } public void initGui() { this.controlList.clear(); int posX = (this.width - xSizeOfTexture) / 2; int posY = (this.height - ySizeOfTexture) / 2; this.controlList.add(new GuiButton(0, posX+ 40, posY + 40, 100, 20, "no use")); } } Hammer Java package Testmod; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class hammer extends ItemPickaxe{ public hammer(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); // TODO Auto-generated constructor stub } @Override public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World parworld, int x, int y, int z, int side, float hx, float hy, float hz) { if (parworld.isRemote) { return true; } else { int meta = parworld.getBlockMetadata(x, y, z); par2EntityPlayer.addChatMessage("Side is: "+ side +"\nFacing is "+ meta); meta+=1; parworld.setBlockAndMetadataWithNotify(x, y, z, parworld.getBlockId(x, y, z), meta); par2EntityPlayer.openGui(Testmod.instance, 0, parworld, 0, 0, 0); return true; } } @Override public String getTextureFile(){ return "/Testmod/pngs/items.png"; } } Mod main File package Testmod; import net.minecraft.block.Block; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraftforge.common.EnumHelper; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="Testmod", name="Test_mod", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false, channels = {"TestMod" }, packetHandler = PacketHandler.class) public class Testmod { // The instance of your mod that Forge uses. @Instance("Testmod") public static Testmod instance; // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="Testmod.ClientProxy", serverSide="Testmod.CommonProxy") public static CommonProxy proxy; //blocks public static Block TitaniumBlock; //items //tools public static Item hammer; EnumToolMaterial Mymaterial = EnumHelper.addToolMaterial("My material", 3, 3000, 8.0F, 10, 14); //GUI private static IGuiHandler guiHandler; @PreInit public void preInit(FMLPreInitializationEvent event) { // Stub Method } @Init public void load(FMLInitializationEvent event) { TitaniumBlock = (new TitaniumOre(538, 0)).setBlockName("TitaniumOre"); MinecraftForge.setBlockHarvestLevel(TitaniumBlock, "pickaxe", 3); GameRegistry.registerBlock(TitaniumBlock); hammer = new hammer(600, Mymaterial).setIconIndex(0).setItemName("Hammer"); LanguageRegistry.addName(TitaniumBlock, "Titanium Block Ore"); LanguageRegistry.addName(hammer, "Mlotek"); proxy.registerRenderThings(); //gui guiHandler = new GuiHandler(); NetworkRegistry.instance().registerGuiHandler(this, guiHandler); } @PostInit public void postInit(FMLPostInitializationEvent event) { // Stub Method } }
  11. MrNice

    Gui

    Error 2013-03-22 23:34:54 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:64) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-03-22 23:34:54 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: Testmod.GuiHammer cannot be cast to net.minecraft.inventory.Container 2013-03-22 23:34:54 [iNFO] [sTDERR] at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:296) 2013-03-22 23:34:54 [iNFO] [sTDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:335) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2304) 2013-03-22 23:34:54 [iNFO] [sTDERR] at Testmod.hammer.onItemUse(hammer.java:28) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:135) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:424) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:579) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136) 2013-03-22 23:34:54 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57) 2013-03-22 23:34:54 [iNFO] [sTDERR] ... 6 more 2013-03-22 23:34:55 [iNFO] [ForgeModLoader] Unloading dimension 0 2013-03-22 23:34:55 [iNFO] [ForgeModLoader] Unloading dimension -1 2013-03-22 23:34:55 [iNFO] [ForgeModLoader] Unloading dimension 1 2013-03-22 23:34:55 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue 2013-03-22 23:34:55 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available Testmod [Test_mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available 2013-03-22 23:34:55 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available. 2013-03-22 23:34:55 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid 2013-03-22 23:34:55 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:122) 2013-03-22 23:34:55 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:780) 2013-03-22 23:34:55 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:469) 2013-03-22 23:34:55 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559) 2013-03-22 23:34:55 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-03-22 23:35:05 [iNFO] [sTDOUT] Stopping! My files http://www.sendspace.pl/file/27ae3893e7896dd4498dbfc It is probably in guihandler or smting, btw how would look dispatcher for other gui, in gui screen make case clause and dispatch difrent guis??
  12. MrNice

    Gui

    I already told it's not going to be entity i dont need such tingh even to deal with entitity. Only item that onuse popsgui and change metadatawithnotify. For second i was trying to make a gui by thoe tutorials but even eclise show me only error when trying to: @Mod(modid="Testmod", name="Test_mod", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"TestMod" }, packetHandler = ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"TestMod" }, packetHandler = ServerPacketHandler.class)) error And i had to set even to null becouse mcpc refouse to work or register a handler even NetworkRegistry.instance().registerGuiHandler(this, null); I DON'T NEED and DON'T wana a entity or CONTAINER. Just listen what i had wrote in post 1.
  13. MrNice

    Gui

    Hey i cannot find anywhere help how to make own gui, where to put all sources to what files. Now i dont see before some time ago there was some packet handler at tutorial but now it is not, and or some implement in proxy. What is all about. For 5 day's i was searching some tutorials but all are with container and entities SHIT. I don wana have an entity, i wana make item that will set metadata for blocks in gui menu. All tutorials about gui were in mod loader or outdated or shit entities none of them has reach my problem. I wana make own gui. ALso gui must work on serwer. BTW how to make such a tab gui like in creative mode player has? Also tutorial section in wiki should have a own tutorial about gui only, not containers. Plz help.
  14. On MCPC 1.4.7 534 244 and lower also was a bug when using rep it crash the client : crash report http://pastebin.com/2x8dNdvE and mod loader log http://pastebin.com/EWi4hKYx
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.