Everything posted by Yuri6037
-
[1.7.2] Unable to find any way to install forge on IntelliJ IDEA 13.0
Oh ! Its scala... Well, this plugin has never work on IntelliJ IDEA 13.0 Comunity Edition (for me) ! I think i will wait for MCP, Minecraft forge, MCPC + Server and at least all the mods i love (Smart Mouving, Render Player API, PlayerAPI, Archimedes Ships, Portal Gun, Grivity Gun, I chun util's mod, SG Craft, Optifine, Rei Minimap) to update for Minecraft 1.7.4 (not 1.7.2 because it crashing on Multiplayer screen, it gives Java has stopped working...) !
-
Change player height !
Hi all ! I've done (enough) the player sitting system. But like StoneLine there is a bug : The player is sitting in air ! In effect, actually the render of legs are ok, but for the update void the player's position is always standing up ! So how i can make for letting the update void of the player that he is sitting not standing up ?
-
Use RenderPlayerEvent = NotWorking + Error thrown !
That's finished ! Now stevy is able to sit down in Multiplayer and Singleplayer !
-
Use RenderPlayerEvent = NotWorking + Error thrown !
Thank you so much ! You solution does work on MCPC + 1.6.4 + PlayerAPI + SmartMouving and many other mods ! Only problem : Does not work in Singleplayer ! Now when i press the key : you see nothing ! The rendering is ok : Destroying and Deleting ModelPlayer & RenderPlayer instances ! The mini problem now is to recreate these instances... Because the garbage collector is removing these instances from the RAM... In plus don't press the Sneak key otherwise game will crash due to no ModelPlayer !
-
Use RenderPlayerEvent = NotWorking + Error thrown !
Found them ! But this is useless... With many tests, i can assure you that making the player sitting down like Minefield in Minecraft Forge 1.6.4 (without base edit) is completely impossible ! The problem : - Server recieve correctly the sit command from client, - Server send correctly the packet to all tracking entities, - On client side there is no entity list, so the other player are not on the client ; and by that i can't get the instance of the sitting player in other's tracking player client. In other words : The client in multiplayer does not store any connected player of the server. So it's impossible to make other's seeing a different render on one player ! But this is giving another question : Why people can see others on server ? If there is no player list on client, How clients can render server entities ?
-
Use RenderPlayerEvent = NotWorking + Error thrown !
Ok but there is only one event that handles player renderer. Are you telling that it's impossible to change the player render ?
-
Use RenderPlayerEvent = NotWorking + Error thrown !
When i try to add the RenderPlayerEvent to my event handler, i got this message when trying to launch Minecraft : 2014-01-10 11:09:09 [iNFO] [sTDERR] java.lang.InstantiationException 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraftforge.event.EventBus.register(EventBus.java:76) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraftforge.event.EventBus.register(EventBus.java:58) 2014-01-10 11:09:09 [iNFO] [sTDERR] at fr.stoneline.StoneLineMod.<init>(StoneLineMod.java:82) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.Class.newInstance0(Class.java:357) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.Class.newInstance(Class.java:310) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:519) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:509) 2014-01-10 11:09:09 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:808) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraft.client.main.Main.main(Main.java:93) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) 2014-01-10 11:09:09 [iNFO] [sTDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2014-01-10 11:09:09 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2014-01-10 11:09:09 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2014-01-10 11:09:09 [iNFO] [sTDERR] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Here is the event function : EntityExtendedPlayer represents the StoneLine Extended Player used to add abilities to the player and for the StoneLine Extended Inventory. isSitting is setted to true by server. I explain : Client press sit down key, Server retrieve packet, set the player as sitting. In a server tick handler, i'm parsing the player entries and for each sitting player, i send a packet to all tracking other entities and at the sitting player itself. Finally a packet is coming to all tracking players and to the sitting players ; for each client, it set the player's sitting variable to true. After in a render event (under), i destroy the current RenderPlayer, to prepare creation of a new RenderPlayer ! Like that, normally (and actually) other players will see the sitting players as not here (invisible because i cancell the render event). @ForgeSubscribe public void onRenderPlayer(RenderPlayerEvent event){ if (event.entity instanceof EntityPlayer){ EntityExtendedPlayer player = EntityExtendedPlayer.get((EntityPlayer)event.entity); if (player.isSitting){ event.setCanceled(true); } } }
-
[1.7.2] Unable to find any way to install forge on IntelliJ IDEA 13.0
Your link is not valable for Microsoft Windows 7 Ultimate Edition 64 bits !
-
[1.7.2] Unable to find any way to install forge on IntelliJ IDEA 13.0
I would like to see how much work i have to make StoneLineMod and StoneLineRoleplayEngine to work with Minecraft 1.7.2. The problem is : No MCP 1.7.2, so how i can decompile Minecraft with forge 1.7.2 without MCP (I don't know the obfuscation algoryth Minecraft uses...) ! So is there a way to install forge 1.7.2 on IntelliJ IDEA 13.0 ?
-
How to make a item/itemStack have multiple damage bars
Using LWJGL OpenGL is very complicated when it's your first time. I will help you a little bit : To render you have the option : use Minecraft Tesselator or use directly OpenGL. With Minecraft Tesselator : Tesselator t = Tesselator.instance after to draw use : t.startDrawingQuads(); // Starts drawing an OpenGL quad t.addVertex(x, y, z); // Adds a vertex to your quad. Your quad need 4 verticies to be rendered, otherwise you will throm some OpenGL Rendering errors. t.draw(); // Send your verticies to OpenGL and let your GPU renders it at your screen ! Example : Renders the StoneLine Rolplay decorative bar : glDisable(GL_TEXTURE_2D); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glColor4f(0, 0, 0, 26); Tessellator t = Tessellator.instance; t.startDrawingQuads(); t.addVertex(0, 0, 0); t.addVertex(0, 20, 0); t.addVertex(Minecraft.getMinecraft().displayWidth, 20, 0); t.addVertex(Minecraft.getMinecraft().displayWidth, 0, 0); t.draw(); With OpenGL directly : Replace uses of Tesselator by glVertex3f (not glVertex2f : that will crash OpenGL due to 3D game not 2D game) glBegin(GL_QUADS); // Starts drawing an OpenGL quad glVertex3f(x, y, z); // Like tesselator.addVertex, you need to call that 4 times because you have 4 angles in your quad otherwise it's not a quad ! glEnd(); // Send your verticies to your Graphic card and let your screen display that ! If you don't know what is vertex, i'm sorry but vertex is the BASE of all games ! Don't hope you will arrive to make good mods without knowing what is vertices ! A vertex represents the coords of angles of an object to render (it not mean colision ; colision are math algoryth to check if an object vertex is touching another object vertex).
-
[SOLVED] [1.6.4] Spawning mobs in other mods biomes
Changing a mod's biome is impossible otherwise you have the mod sources and the ability to change the source ! If you only want to create a new Biome, no problem it's simple (very, i think a big noob or troll can do it) ! My Biome code : package fr.stoneline.biome; import cpw.mods.fml.common.registry.GameRegistry; public class Biomes { // The stoneline biome is not generated by Minecraft World Generator (it's the StoneLine Dimension Biome Template) public static BiomeGenStoneLine stoneLineBiome; // The automn biome is a normal biome auto generated by Minecraft World Generator public static BiomeGenAutomn automnBiome; public void registerBiomes(){ GameRegistry.addBiome(automnBiome); // Registering biome to authorize Minecraft to generate it } static { stoneLineBiome = new BiomeGenStoneLine(); automnBiome = new BiomeGenAutomn(); } } The automn biome : package fr.stoneline.biome; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.entity.passive.*; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.SpawnListEntry; public class BiomeGenAutomn extends BiomeGenBase { public BiomeGenAutomn() { super(24); setBiomeName("autumn"); topBlock = (byte) Block.grass.blockID; fillerBlock = (byte) Block.dirt.blockID; theBiomeDecorator.generateLakes = true; theBiomeDecorator.treesPerChunk = 10; theBiomeDecorator.flowersPerChunk = 10; theBiomeDecorator.grassPerChunk = 10; theBiomeDecorator.deadBushPerChunk = 10; theBiomeDecorator.mushroomsPerChunk = 10; theBiomeDecorator.reedsPerChunk = 10; theBiomeDecorator.cactiPerChunk = 10; theBiomeDecorator.sandPerChunk = 10; rainfall = 0.7F; minHeight = 0.1F; maxHeight = 0.3F; waterColorMultiplier = 0xd9aa0d; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCaveCreatureList.clear(); this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 1, 5)); this.spawnableCreatureList.add(new SpawnListEntry(EntityCow.class, 5, 1, 5)); this.spawnableCreatureList.add(new SpawnListEntry(EntityChicken.class, 5, 1, 5)); this.spawnableCreatureList.add(new SpawnListEntry(EntityPig.class, 5, 1, 5)); this.spawnableCreatureList.add(new SpawnListEntry(EntitySheep.class, 5, 1, 5)); this.spawnableWaterCreatureList.add(new SpawnListEntry( EntitySquid.class, 5, 1, 5)); this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 1, 5)); } @SideOnly(Side.CLIENT) public int getBiomeGrassColor() { return 0xd4c941; } @SideOnly(Side.CLIENT) public int getBiomeFoliageColor() { return 0xd4c941; } @SideOnly(Side.CLIENT) public int getSkyColorByTemp(float par1) { return 0xffffff; } } This code is completely working. Note : this code is part of the StoneLine Developpement Team. Do not copy/paste into your own project. It's only an example. Note 2 : All StoneLine Developpement Team compilations are under Copyright. You may not destroy it. If you are destroying the copyright, I will no longer help you finding solutions to your problems. So if you want some help from me, don't destroy my copyright. Yuri6037
-
Make player sit down !
I don't know how you'd detect when a player starts tracking someone else though. That's the problem ! Me too i don't know how to do that !
-
Make player sit down !
Thanks ! The code you gived me to send packet to all players is super ! One last question, i know what is IExtendedEntityProperties, because i already a class called EntityExtendedPlayer (because of StoneLine Extended Inventory), for the packet system, i think the StoneLine Packet Injector is ready for that (it can inject data into Minecraft protocol and pass data to server ; server can also inject data into the protocol and passes them to clients, but where i send the packet (from client to server or from server to clients ?) Another question : how can i do to make the packet send at the correct moment ? Example how can i do if a player is spawning next to a sitting one ?
-
Make player sit down !
I don't want to edit base classes too, but how i can know when players next to the sitting player need to render the sitting player as sitting ! I completely don't know how i can make the server send to others that the player is sitting ! The problem is not to make the render ! The real problem is to know when i the render need to be used and on what player it need to be called ! Not to create the rendering method (I already touched OpenGL in c++ so rendering is realy not a problem) ! Yuri6037
-
Make player sit down !
Nobody ? Seriously ? Common please !
-
Make player sit down !
In the past, at the time of Minecraft 1.2.5, i made a player animation of sitting like Minefield server had done, but I can't find any way of doing that in forge 1.6.4 ! The class I had changed to the 1.2.5 are : On client : EntityPlayer, EntityOtherPlayerMP, RenderPlayer, ModelPlayer, EntityClientPlayerMP, Minecraft, GameSettings On craft bukkit 1.2.5 server : EntityPlayer, NetServerHandler Now on 1.6.4, many classes have disappeared, like EntityOtherPlayerMP ; Minecraft, and rendering classes have all changed, same as Tesselator. In plus when I was adding StoneLine Roleplay Engine 2.0 rendering, I did not understand anything on Tesselator and I simply used GL11.glVertex3f and GL11.glColor4f. So if you have any way to start making the player siting again like in StoneLine, it would be nice ! Prove : when it was StoneLine first multiplayer test of sit system all says WTF ?! Is my player sitting on the ground ?! I really need that to work again !
-
Creating packet different of Packet250CustomPayload
I got it ! Finally it's all working ! My whole mod network api is working ! For people who are interested in the solution.. Well, i'm sorry but the code is very hard and very long ! The code is using a little math, java interfaces, java hashmap, Mojang Protocol, Forge SideOnly system, java Class, java DataInputStream, java DataOutputStream, java ByteArrayInputStream, java ByteArrayOutputStream. If i got rid of that, it's because i had already touched the network in java and c++ ; without my experimentation in those languages, i would not be able to make that ! I will maybe post the code here if i have the time...
-
Creating packet different of Packet250CustomPayload
I have finished to make my Mod Network API ! Now i will test it ! This api is working as the same as the Minecraft one ! It was very long to make ! Ok so time to see up to what you can do API !
-
Creating packet different of Packet250CustomPayload
I have found a new solution ! I think i will be able to make the mod working without ASM or Library. The solution : - Creating a packet handler - Creating a packet byte size calculator class - Creating a new packet interface So need to make 4 classes only for doing that. @Forge You wanted to make a simple library to mod Minecraft, but at the contrary it need a large amount of knowings in Math, Informatic, Java to make a packet handler ! So congratulations Forge, many newbies will not be able to use your packet handling system.
-
Creating packet different of Packet250CustomPayload
About the wiki i already go in it and like i said i can't use the packet250custompayload. For the packet 103 (set slot), it's same as the 5 (player inventory) : Can only be sent by server not client ! EDIT : You asked me for what type of data, i need to send an ItemStack and the slot number of the player inventory.
-
Creating packet different of Packet250CustomPayload
Hi all, I'm trying to get back the StoneLine JetPack into Minecraft 1.6.4 (with Forge). To do that, i already destroying the jump code of mojang by using a tick handler. But i can't find any way to tell the server that the player has used his jetpack. In effect the server need to know the new player position (already done), and the amount of damage the jetpack gets (that's the problem). I've tried some things : - Use Packet5PlayerInventory, But it seams that stupid Mojang has made a security to block client from sending this packet (only the server can send this packet) - Seeing the Forge packet handling doc, but the forge packet handling will not help me at all : It use Packet250CustomPayLoad instead of a new Packet. There is some others solutions : Making a new Java Library that will destroy a part of the Minecraft Protocol and inject new data in it, or Using ASM bytecode changer to destroy Mojang sources ! I'm asking you if you have another way, because the solutions i have found are very very heavy, and players will need to download a new Launcher for the first and for the second, i will lost compatibility with some mods. So please tell me if you have another solution. Yuri6037
IPS spam blocked by CleanTalk.