Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.5] [WIP (again)] Deverion's Forge Modding Tutorials [Updated 16-03-2013] [1.5 Tutorials: 1!]

modding minecraftforge tutorial smp

  • Please log in to reply
845 replies to this topic

#461

myoblastic

Posted 04 February 2013 - 08:17 PM

View PostDeverionX, on 04 February 2013 - 04:09 AM, said:

Don't put the block in init, that has to be outside of a method. You need to call proxy.register blocks somewhere Posted Image


You mean
 proxy.registerBlocks():
?

It still crashes, with an NPE, at language registry for the ore.

Source: http://github.com/my...stic/GypsyCraft

Crash Report:
Spoiler:

"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.

Register or log in to remove.

#462

Mariux446
  • Location: In mah awesome base
  • Minecraft: Mariux446

Posted 04 February 2013 - 08:38 PM

View PostDeverionX, on 04 February 2013 - 07:26 PM, said:

For those interested, I'm also looking into liquids and liquid storage Posted Image



Hmm, is it forge?
Yup.
http://www.minecraft...23#entry5500523
If Facebook, Myspace, and Twitter were all destroyed, 99% of teens would go insane. If you're one of the 1% that would be laughing at them, copy this into your signature and hope it happens.

#463

zourath
    zourath

    Iron Miner

  • Members
  • 260 posts

Posted 04 February 2013 - 10:35 PM

So, I followed your tutorial on setting up Forge and MCP, and ran Install, but I'm getting a Client Recompile Failed error. I am using Java SE Development Kit 7u13 x64, MCP 726a, and minecraftforge-src-1.4.7-6.6.0.497.

I suspect it's due to my SDK, but I'm not 100% sure. Even if I was sure, I wouldn't have any idea which version to downgrade to. Anyone have any advice?

#464

DeverionX
  • Minecraft: DeverionZ

Posted 05 February 2013 - 04:09 AM

View Postmyoblastic, on 04 February 2013 - 08:17 PM, said:

You mean
 proxy.registerBlocks():
?

It still crashes, with an NPE, at language registry for the ore.

Source: http://github.com/my...stic/GypsyCraft

Crash Report:
Spoiler:

Call registerBlocks() before addNames() :)

View Postzourath, on 04 February 2013 - 10:35 PM, said:

So, I followed your tutorial on setting up Forge and MCP, and ran Install, but I'm getting a Client Recompile Failed error. I am using Java SE Development Kit 7u13 x64, MCP 726a, and minecraftforge-src-1.4.7-6.6.0.497.

I suspect it's due to my SDK, but I'm not 100% sure. Even if I was sure, I wouldn't have any idea which version to downgrade to. Anyone have any advice?

Try upgrading your forge to build 516 :)

#465

zourath
    zourath

    Iron Miner

  • Members
  • 260 posts

Posted 05 February 2013 - 06:19 PM

View PostDeverionX, on 05 February 2013 - 04:09 AM, said:

Try upgrading your forge to build 516 Posted Image
I tried it, still getting the same error.

#466

DeverionX
  • Minecraft: DeverionZ

Posted 05 February 2013 - 06:29 PM

View Postzourath, on 05 February 2013 - 06:19 PM, said:

I tried it, still getting the same error.

K, what exactly does it say in the console?

#467

zourath
    zourath

    Iron Miner

  • Members
  • 260 posts

Posted 05 February 2013 - 06:37 PM

View PostDeverionX, on 05 February 2013 - 06:29 PM, said:

K, what exactly does it say in the console?

Starting from the error:
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files (x86)\Java\jdk1.6.0_23\bin\javac" -encoding UTF-8 -Xlint:-opt
ions -deprecation -g ...' failed : 1
== ERRORS FOUND ==
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:8: warn
ing: [deprecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common h
as been deprecated
import cpw.mods.fml.common.IDispenseHandler;
						  ^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:9: warn
ing: [deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common
has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
						  ^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:11: war
ning: [deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common
has been deprecated
public class ModLoaderDispenseHelper implements IDispenserHandler
												^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:39: warning: [d
eprecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been
deprecated
import cpw.mods.fml.common.IDispenseHandler;
						  ^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:40: warning: [d
eprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has bee
n deprecated
import cpw.mods.fml.common.IDispenserHandler;
						  ^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:194: warning: [
deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has be
en deprecated
	public static IDispenserHandler buildDispenseHelper(BaseModProxy mod)
				  ^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:39: warning: [depre
cation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been dep
recated
import cpw.mods.fml.common.IDispenseHandler;
						  ^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:40: warning: [depre
cation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has been de
precated
import cpw.mods.fml.common.IDispenserHandler;
						  ^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:101: warning: [depr
ecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has been d
eprecated
	public static void registerDispenserHandler(IDispenserHandler handler)
												^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:110: warning: [depr
ecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been de
precated
	public static void registerDispenserHandler(final IDispenseHandler handler)
													  ^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderModContainer.java:528: warn
ing: [deprecation] registerDispenserHandler(cpw.mods.fml.common.IDispenserHandle
r) in cpw.mods.fml.common.registry.GameRegistry has been deprecated
			GameRegistry.registerDispenserHandler(ModLoaderHelper.buildDispenseH
elper(mod));
						^
src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:37: type para
meters of <T>T cannot be determined; no unique maximal instance exists for type
variable T with upper bounds T,java.lang.Object
			return ReflectionHelper.getPrivateValue(classToAccess, instance, fie
ldIndex);
												   ^
src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:51: type para
meters of <T>T cannot be determined; no unique maximal instance exists for type
variable T with upper bounds T,java.lang.Object
			return ReflectionHelper.getPrivateValue(classToAccess, instance, fie
ldNames);
												   ^
src\minecraft\net\minecraft\src\ModLoader.java:490: type parameters of <T>T cann
ot be determined; no unique maximal instance exists for type variable T with upp
er bounds T,java.lang.Object
		return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instan
ce, fieldindex);
														  ^
src\minecraft\net\minecraft\src\ModLoader.java:504: type parameters of <T>T cann
ot be determined; no unique maximal instance exists for type variable T with upp
er bounds T,java.lang.Object
		return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instan
ce, field);
														  ^
src\minecraft\net\minecraft\src\ModLoader.java:638: warning: [deprecation] regis
terBlock(net.minecraft.block.Block) in cpw.mods.fml.common.registry.GameRegistry
has been deprecated
		GameRegistry.registerBlock(block);
					^
src\minecraft\net\minecraft\src\ModLoader.java:649: warning: [deprecation] regis
terBlock(net.minecraft.block.Block,java.lang.Class<? extends net.minecraft.item.
ItemBlock>) in cpw.mods.fml.common.registry.GameRegistry has been deprecated
		GameRegistry.registerBlock(block, itemclass);
					^
4 errors
13 warnings
==================
Client recompile failed, correct source then rerun updatemd5
=============================== Minecraft Forge Setup Finished =================
================


#468

DeverionX
  • Minecraft: DeverionZ

Posted 05 February 2013 - 07:01 PM

View Postzourath, on 05 February 2013 - 06:37 PM, said:

Starting from the error:
-snip-

What MCP version are you running...

#469

zourath
    zourath

    Iron Miner

  • Members
  • 260 posts

Posted 05 February 2013 - 07:07 PM

View PostDeverionX, on 05 February 2013 - 07:01 PM, said:

What MCP version are you running...
The latest version, mcp726a.

#470

DeverionX
  • Minecraft: DeverionZ

Posted 05 February 2013 - 07:35 PM

View Postzourath, on 05 February 2013 - 07:07 PM, said:

The latest version, mcp726a.

Hmm, in that case I'm not sure what's going wrong... You might have to go to http://esper.net/ and visit the #MinecraftForge channel...

#471

myoblastic

Posted 05 February 2013 - 09:19 PM

View Postzourath, on 05 February 2013 - 06:37 PM, said:

-snip-

Please use spoilers. Posted Image

View PostDeverionX, on 05 February 2013 - 04:09 AM, said:

Call registerBlocks() before addNames() Posted Image



Try upgrading your forge to build 516 Posted Image

Nevermind, I got it working! Instead of directly following the tutorial, I followed the basic block tutorial and got the block working, then added the world gen stuff from ores. It works! My ore spawns.

Source: Github
"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.

#472

harrio34
    harrio34

    Tree Puncher

  • Members
  • 20 posts

Posted 05 February 2013 - 10:43 PM

When you say call it in your mod class, how would I do that?

#473

myoblastic

Posted 06 February 2013 - 01:18 AM

View Postharrio34, on 05 February 2013 - 10:43 PM, said:

When you say call it in your mod class, how would I do that?

For example, for the basic item tutorial, when it says call in your mod class
 proxy.addNames(); 
go to your main mod class (Your mod name).class and put the code just before the two closing french brackets.

Essentially, this calls addNames from class CommonProxy. Same applies for registerBlocks and others.


Also Deverion, a tutorial for a config file would be nice :)
"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.

#474

DeverionX
  • Minecraft: DeverionZ

Posted 06 February 2013 - 04:19 AM

View Postmyoblastic, on 06 February 2013 - 01:18 AM, said:

For example, for the basic item tutorial, when it says call in your mod class
 proxy.addNames(); 
go to your main mod class (Your mod name).class and put the code just before the two closing french brackets.

Essentially, this calls addNames from class CommonProxy. Same applies for registerBlocks and others.


Also Deverion, a tutorial for a config file would be nice Posted Image

Indeed, one of the next ones ;)

#475

im2awsm
    im2awsm

    Gold Miner

  • Members
  • 364 posts
  • Minecraft: XxImtooxX

Posted 06 February 2013 - 08:17 AM

So I did the metaBlocks tutorial, and i get this error:
Spoiler:
And this is my ItemColouredBlockMeta file:
Spoiler:

Posted Image

#476

harrio34
    harrio34

    Tree Puncher

  • Members
  • 20 posts

Posted 06 February 2013 - 12:17 PM

do i have to put anything after the proxy.addNames();
and i still have this problem
LanguageRegistry.addName(chemcraft.hydrogen, "hydrogen");

#477

Mariux446
  • Location: In mah awesome base
  • Minecraft: Mariux446

Posted 06 February 2013 - 03:01 PM

Is everything supposed to crash when you make the base of your mod, but no items/blocks etc.? Eclipse shows no errors
http://www.minecraft...23#entry5500523
If Facebook, Myspace, and Twitter were all destroyed, 99% of teens would go insane. If you're one of the 1% that would be laughing at them, copy this into your signature and hope it happens.

#478

DeverionX
  • Minecraft: DeverionZ

Posted 06 February 2013 - 03:05 PM

View Postim2awsm, on 06 February 2013 - 08:17 AM, said:

So I did the metaBlocks tutorial, and i get this error:
Spoiler:
And this is my ItemColouredBlockMeta file:
Spoiler:

You're calling for a metadata of 15 somewhere, which you haven't supported in your code. I believe it's when you're naming them Posted Image


View Postharrio34, on 06 February 2013 - 12:17 PM, said:

do i have to put anything after the proxy.addNames();
and i still have this problem
LanguageRegistry.addName(chemcraft.hydrogen, "hydrogen");

Well, you need registerBlocks and all of those similar methods when you reach that...

The error, you might have to check for typos, if you're working in eclipse, it should offer solutions to problems...

View PostMariux446, on 06 February 2013 - 03:01 PM, said:

Is everything supposed to crash when you make the base of your mod, but no items/blocks etc.? Eclipse shows no errors

Crash report?

#479

Mariux446
  • Location: In mah awesome base
  • Minecraft: Mariux446

Posted 06 February 2013 - 04:06 PM

View PostDeverionX, on 06 February 2013 - 03:05 PM, said:



You're calling for a metadata of 15 somewhere, which you haven't supported in your code. I believe it's when you're naming them Posted Image




Well, you need registerBlocks and all of those similar methods when you reach that...

The error, you might have to check for typos, if you're working in eclipse, it should offer solutions to problems...



Crash report?
Yea, I'll give it to you when I'm on my PC. Right now, I can only talk on my tablet. Also I have a very good mod idea, something that hasn't been done before, and should be quite easy to code. Are you interested?
http://www.minecraft...23#entry5500523
If Facebook, Myspace, and Twitter were all destroyed, 99% of teens would go insane. If you're one of the 1% that would be laughing at them, copy this into your signature and hope it happens.

#480

DeverionX
  • Minecraft: DeverionZ

Posted 06 February 2013 - 04:18 PM

View PostMariux446, on 06 February 2013 - 04:06 PM, said:

Yea, I'll give it to you when I'm on my PC. Right now, I can only talk on my tablet. Also I have a very good mod idea, something that hasn't been done before, and should be quite easy to code. Are you interested?

Hmm, right now II'm kinda busy with my own mod, which, being a tech mod, is fairly complicated and obviously takes up a fair bit of time... Apart from that I also have school and soon enough the tutorials as well....