Hi Darkhax, I like your tutorials. I just started modding this week and Ive already created quite a lot for a my first mod. Creating new items isnt that difficult, but then again I do have some years of java experience, which helps greatly. Anyways do you know if when Ive read the item/block ids from the config file, if there is an object that is maintained during the loading of mods, with which ids are already in use, so that instead of crashing minecraft I can log it to my own errorhandling file and discontinue loading my mod.
Another thing I'd like to see is how to create my own 3D object. Im not sure how those are set up in minecraft. something as easy as a stair block, but as some kind of corner block, so with a different shape. Do you know if 3D objects are created in 3DS max or in an easier way?
Regards Setonix (Bwythix on this forum)
hey, i haven't really had much experience with config files. my friends are trying to get me to code in object oriented programing or whatever they call it however i'm not much of a fan. inevitably i will end up making this the main way i code mods and will probably update all of my tutorials to follow this. according to my friend jake who is actually going to help me with a few tutorials and such, you can use object oriented programing to make configuration files easier. as for making the mod not load instead of crashing the game.. i think this is something forge may have to implement themselves. not sure on this one. i do know that xie's mod loads content from json configuration files rather than java files. if there happens to be an id conflict then this mod simply won't load the content. not sure how he has it set up but perhaps you could ask him about it. he is pretty friendly and has helped me out of a lot of tough situations.
as for the 3D things, i assume you mean a block that does not follow the standard 16x16x16 blocks but are more complex than block bounds (half slabs) i do know that blocks like the fence, glass panes, iron bars and several other blocks use models and tile entities. i don't have a tutorial on this nor can i make a tutorial for this because i haven't quite worked tile entities myself. i'm sure you can find it on google somewhere. i do plan to make a tutorial on this soon however.
hope i could help or direct you in the right direction
so, i spent last night searching up a decent tree tutorial for my friend and could not find a single one. perhaps i shall make this next. also i will probably do some stuff with worldgen
But if it should work, I would like to thank Hugo888, for telling us
oh i see. they must have changed this in the latest updates lol. i should probably make sure it works works with updates before i give a quick explanation like i did earlier. my bad with this one.
oh i see. they must have changed this in the latest updates lol. i should probably make sure it works works with updates before i give a quick explanation like i did earlier. my bad with this one.
We all do errors, some bigger than others
But yeah, definitely try it out, I'm not 100% sure it works, as I can't check before friday :/
Hope to see more from you soon!
Were you still planning on doing a stair tutorial I really need this as well. By the way great job and thanks very very very much.
yes i am still planning on making the stair tutorial
i plan on releasing a bulk of block tutorials in a bit. im making a new mod and it includes slabs/stairs/fences and im going to see if i can make new types of book shelves that will power enchantment block.
I just recently started using Forge before I was using ModLoader with no issues. Well I just came across one when I tried to run though eclipse after adding in a block. The reason I am asking is because I've never had an issue in ModLoader where it says something wasn't downloaded correctly. I did redownload and replace the items but to no avail.
2012-11-07 12:49:39 [INFO] [ForgeModLoader] Forge Mod Loader version 4.2.6.422 for Minecraft 1.4.2 loading
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Discovering coremods
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir
2012-11-07 12:49:39 [INFO] [STDOUT] Downloading file: files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:39 [INFO] [STDOUT] The libFile's path is C:\Users\Carlito\MineCraft Everything\1.4.2 Moddings folder\jars\lib\guava-12.0.1.jar
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:39 [INFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] There was a problem downloading the file guava-12.0.1.jar automatically. Perhaps you have an environment without internet access. You will need to download the file manually or restart and let it try again
2012-11-07 12:49:45 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] There were errors during initial FML setup. Some files failed to download or were otherwise corrupted. You will need to manually obtain the following files from these download links and ensure your lib directory is clean.
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/argo-2.25.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/asm-all-4.0.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] <===========>
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] The following is the errors that caused the setup to fail. They may help you diagnose and resolve the issue
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] A download error occured
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] <<< ==== >>>
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] The following is diagnostic information for developers to review.
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] Error details
java.lang.RuntimeException: A download error occured
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:486)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:131)
at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:92)
at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
at net.minecraft.client.Minecraft.main(Minecraft.java:2152)
at Start.main(Start.java:29)
Caused by: java.net.SocketTimeoutException: Read timed out
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:470)
... 6 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldLong(Unknown Source)
at java.net.URLConnection.getContentLengthLong(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:469)
... 6 more
2012-11-07 12:50:02 [INFO] [STDERR] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: A fatal error occured and FML cannot continue
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:175)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:92)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
2012-11-07 12:50:02 [INFO] [STDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2152)
2012-11-07 12:50:02 [INFO] [STDERR] at Start.main(Start.java:29)
2012-11-07 12:50:02 [INFO] [STDERR] Caused by: java.lang.RuntimeException: A fatal error occured and FML cannot continue
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:227)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
2012-11-07 12:50:02 [INFO] [STDERR] ... 4 more
I just recently started using Forge before I was using ModLoader with no issues. Well I just came across one when I tried to run though eclipse after adding in a block. The reason I am asking is because I've never had an issue in ModLoader where it says something wasn't downloaded correctly. I did redownload and replace the items but to no avail.
2012-11-07 12:49:39 [INFO] [ForgeModLoader] Forge Mod Loader version 4.2.6.422 for Minecraft 1.4.2 loading
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Discovering coremods
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir
2012-11-07 12:49:39 [INFO] [STDOUT] Downloading file: files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:39 [INFO] [STDOUT] The libFile's path is C:\Users\Carlito\MineCraft Everything\1.4.2 Moddings folder\jars\lib\guava-12.0.1.jar
2012-11-07 12:49:39 [FINEST] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:39 [INFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] There was a problem downloading the file guava-12.0.1.jar automatically. Perhaps you have an environment without internet access. You will need to download the file manually or restart and let it try again
2012-11-07 12:49:45 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] There were errors during initial FML setup. Some files failed to download or were otherwise corrupted. You will need to manually obtain the following files from these download links and ensure your lib directory is clean.
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/argo-2.25.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] *** Download http://files.minecraftforge.net/fmllibs/asm-all-4.0.jar
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] <===========>
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] The following is the errors that caused the setup to fail. They may help you diagnose and resolve the issue
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] A download error occured
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] <<< ==== >>>
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] The following is diagnostic information for developers to review.
2012-11-07 12:49:45 [SEVERE] [ForgeModLoader] Error details
java.lang.RuntimeException: A download error occured
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:486)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:131)
at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:92)
at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
at net.minecraft.client.Minecraft.main(Minecraft.java:2152)
at Start.main(Start.java:29)
Caused by: java.net.SocketTimeoutException: Read timed out
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:470)
... 6 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldLong(Unknown Source)
at java.net.URLConnection.getContentLengthLong(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at cpw.mods.fml.relauncher.RelaunchLibraryManager.downloadFile(RelaunchLibraryManager.java:469)
... 6 more
2012-11-07 12:50:02 [INFO] [STDERR] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: A fatal error occured and FML cannot continue
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:175)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchClient(FMLRelauncher.java:92)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleClientRelaunch(FMLRelauncher.java:26)
2012-11-07 12:50:02 [INFO] [STDERR] at net.minecraft.client.Minecraft.main(Minecraft.java:2152)
2012-11-07 12:50:02 [INFO] [STDERR] at Start.main(Start.java:29)
2012-11-07 12:50:02 [INFO] [STDERR] Caused by: java.lang.RuntimeException: A fatal error occured and FML cannot continue
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:227)
2012-11-07 12:50:02 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
2012-11-07 12:50:02 [INFO] [STDERR] ... 4 more
i too am unfamiliar with such an error. it states that the jars are not downloading or corrupted could be with the version of forge you are using or perhaps the downloads of such resources are unavailable/corrupted.
i would recommend putting it on minecraft forge forums. i think they may not know what this is. perhaps lex may want to look at this aswell.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/18/2012
Posts:
44
Member Details
forgive me if i missed it lol, but are u planning to add a tutorial for custom textures to blocks and items. the reason i ask is i didn't see one and most other( 3 or 4 others i have checked) tell u how to set it up to support custom textures, but never actually tell you how to do so. i have already restarted this same mod like 4 times with different tutorials and on top of that i actually like your layout of mod coding and the way its explained. very detailed and nice. so if you haven't made one could u please make one. Oh! also for another tut, it would be cool to add custom redstone ideas that allow us to make and alter the mechanics of our custom redstone wires. like blue redstone that can be powered for 32 blocks without a repeater or climb straight up and down no need for the stair case idea or numbers of redstone torches. and any other ideas that revolved around redstone. if that's too much its okay just thought I'd toss it out there and see what you thought.
forgive me if i missed it lol, but are u planning to add a tutorial for custom textures to blocks and items. the reason i ask is i didn't see one and most other( 3 or 4 others i have checked) tell u how to set it up to support custom textures, but never actually tell you how to do so. i have already restarted this same mod like 4 times with different tutorials and on top of that i actually like your layout of mod coding and the way its explained. very detailed and nice. so if you haven't made one could u please make one. Oh! also for another tut, it would be cool to add custom redstone ideas that allow us to make and alter the mechanics of our custom redstone wires. like blue redstone that can be powered for 32 blocks without a repeater or climb straight up and down no need for the stair case idea or numbers of redstone torches. and any other ideas that revolved around redstone. if that's too much its okay just thought I'd toss it out there and see what you thought.
hey, sorry for not responding quicker. i actually reviewed several of my tutorials yesterday and noticed i did not include block textures. today after i'm done the new tutorials i will begin remake the item and block tutorials.
here is a quick tutorial however i won't be putting much detail into it.
put this code in the BlockYourblock.class
public String getTextureFile()
{
return "/darkhax/darkmod/terrain.png";//change this to your texture path
}
@SideOnly(Side.CLIENT) //Renders it client side
public int getBlockTextureFromSide(int i){
return 4;// the position of the square on your sheet. keep in mind the first is reffered to as 0
}
i added some comments to help out. keep in mind the above tut is for a sprite sheeted texture. i do plan to make an advanced sprite sheet and texturing tut soon enough.
whats the diffrence between modloader and forge ????????
there are many differences. first of all, minecraft forge has several nice features like the way its built that allows for optimum compatibility. there is also the forge ore dictionary, the forge dimension handler. core mods. sprite sheets and many many other features that mod loader does not provide.
coding wise it is not much of a change however it is best to relearn what you know.
also as to the armor tut. i ran into some issues :/ i will have it up soon though :/ sorry again
hey, i haven't really had much experience with config files. my friends are trying to get me to code in object oriented programing or whatever they call it however i'm not much of a fan. inevitably i will end up making this the main way i code mods and will probably update all of my tutorials to follow this. according to my friend jake who is actually going to help me with a few tutorials and such, you can use object oriented programing to make configuration files easier. as for making the mod not load instead of crashing the game.. i think this is something forge may have to implement themselves. not sure on this one. i do know that xie's mod loads content from json configuration files rather than java files. if there happens to be an id conflict then this mod simply won't load the content. not sure how he has it set up but perhaps you could ask him about it. he is pretty friendly and has helped me out of a lot of tough situations.
as for the 3D things, i assume you mean a block that does not follow the standard 16x16x16 blocks but are more complex than block bounds (half slabs) i do know that blocks like the fence, glass panes, iron bars and several other blocks use models and tile entities. i don't have a tutorial on this nor can i make a tutorial for this because i haven't quite worked tile entities myself. i'm sure you can find it on google somewhere. i do plan to make a tutorial on this soon however.
hope i could help or direct you in the right direction
~Darkhax
Farewell everyone o/
Farewell everyone o/
Find out how I generate....coolAlias...world structure generation and rotation tool...
I got a message from Hugo888,
about fixing the problem with changing EntitySmallFireball to EntityFireball
And he/she told me that he/she had found a fix:
Do not put EntityFireall, instead put in EntityLargeFireball.
This should fix the problem he/she said.
Should look like this:
I haven't got to test it yet, but I soon will...
But if it should work, I would like to thank Hugo888, for telling us
oh i see. they must have changed this in the latest updates lol. i should probably make sure it works works with updates before i give a quick explanation like i did earlier. my bad with this one.
Farewell everyone o/
We all do errors, some bigger than others
But yeah, definitely try it out, I'm not 100% sure it works, as I can't check before friday :/
Hope to see more from you soon!
yes i am still planning on making the stair tutorial
i plan on releasing a bulk of block tutorials in a bit. im making a new mod and it includes slabs/stairs/fences and im going to see if i can make new types of book shelves that will power enchantment block.
Farewell everyone o/
You could check out wuppy29, he has one for 1.3.2, should prety much be the same :?
http://wuppy29.blogspot.no/2012/10/forge-modding.html
i do have plans to make a dimension tutorials later down the road but not yet.
this is true however wuppy has a dimension tut that requires a new api. i plan to make one using the built in forge dimension manager.
i too am unfamiliar with such an error. it states that the jars are not downloading or corrupted could be with the version of forge you are using or perhaps the downloads of such resources are unavailable/corrupted.
i would recommend putting it on minecraft forge forums. i think they may not know what this is. perhaps lex may want to look at this aswell.
Farewell everyone o/
yes. sadly forge is heavily reliant on these libraries and it can cause some issues for the users. also are you on java 6 or java 7
Farewell everyone o/
Okay, sounds cool
yep
Farewell everyone o/
hey, sorry for not responding quicker. i actually reviewed several of my tutorials yesterday and noticed i did not include block textures. today after i'm done the new tutorials i will begin remake the item and block tutorials.
here is a quick tutorial however i won't be putting much detail into it.
put this code in the BlockYourblock.class
i added some comments to help out. keep in mind the above tut is for a sprite sheeted texture. i do plan to make an advanced sprite sheet and texturing tut soon enough.
Farewell everyone o/
Farewell everyone o/
Play Kag
https://kag2d.com
there are many differences. first of all, minecraft forge has several nice features like the way its built that allows for optimum compatibility. there is also the forge ore dictionary, the forge dimension handler. core mods. sprite sheets and many many other features that mod loader does not provide.
coding wise it is not much of a change however it is best to relearn what you know.
also as to the armor tut. i ran into some issues :/ i will have it up soon though :/ sorry again
Farewell everyone o/