Jump to content

Modding__With__Forge__Need__Imediate__Help (SOLVED)


CraftyPuffin

Recommended Posts

Im Learning to mod with forge which is going great, kinda anoying relearning what i learned from modloader but anyway to the point...

 

Im currently trying to make a big mod/learn on the way and im adding in 19 sets of Ores, Blocks and Ore Droped gems bars, Tools Sets, Armor Sets.. I know thats alot of items.

 

But for some reason after the 7th full set of everything i said above i get an error? the 7 tools armor lbocks work perfectly and flawlessy but the 8th which is perfectly typed in seems to give me this error:

 

2013-02-14 11:58:33 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 31541

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:324)

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:359)

2013-02-14 11:58:33 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_BlockCore.<init>(A_MTM_BlockCore.java:11)

2013-02-14 11:58:33 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_CORE.load(A_MTM_CORE.java:453)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-02-14 11:58:33 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-02-14 11:58:33 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-02-14 11:58:33 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)

2013-02-14 11:58:33 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)

2013-02-14 11:58:33 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744)

2013-02-14 11:58:33 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-02-14 11:59:21 [iNFO] [sTDERR] Someone is closing me!

 

As far as i understand im supposed to have Infinate block item space add in 100s of things as i want but this makes no sence? I even tryed maken a new CORE class file. Nope. even a new package. Nope. Is there something im missing to be capable of having such vast amount of tools armors blocks and stuff like that?

 

Immediate help would be fudging fantastic and down to the point of what im doing wrong :(

 

Thanks in advance, FluffyPuffin!

 

PS: SORRY IF IM IN THE WRONG SECTION IM NEW TO THE SITE, And i hope this hasint been posted before i cant find solutions anywere.

Link to comment
Share on other sites

Nothing i have ID'ed is over 4000 all block ID's are under 256 in there own spriteSheet.

 

EDIT: To be more specific it singles out this line.

 

AmethystOre = new A_MTM_BlockCore_Two(this.AmethystOreID, 23).setBlockName("AmethystOre");

That's not really too helpful. What's the value of 'AmethystOreID'?

Link to comment
Share on other sites

2013-02-14 11:58:33 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 31541

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:324)

2013-02-14 11:58:33 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:359)

2013-02-14 11:58:33 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_BlockCore.<init>(A_MTM_BlockCore.java:11)

2013-02-14 11:58:33 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_CORE.load(A_MTM_CORE.java:453)

 

Nothing i have ID'ed is over 4000 all block ID's are under 256 in there own spriteSheet

 

I don't know what you're trying to accomplish, but your code is ending up calling index 31541 of net.minecraft.block.Block.blocksList[] for initializing one of your Block variables. As mentioned, the Minecraft base code by default doesn't allow blocksList[] indexes other than 0-4095.

 

If you're getting confused with "Infinite terrain/sprite indexes", that has to do with the appearance of blocks/items and nothing to do with allocations in ID arrays. If however you're making use of a mod that tweaks the blocksList[] array bounds in the base code, it's not cooperating.

 

This is where things are hanging up, in order:

 

#1, line 324 of net.minecraft.block.Block:

 

public Block(int par1, Material par2Material)

    {

        this.blockConstructorCalled = true;

        this.enableStats = true;

        this.stepSound = soundPowderFootstep;

        this.blockParticleGravity = 1.0F;

        this.slipperiness = 0.6F;

 

      if (blocksList[par1] != null)

        {

            throw new IllegalArgumentException("Slot " + par1 + " is already occupied by " + blocksList[par1] + " when adding " + this);

        }

        else

        {

            this.blockMaterial = par2Material;

            blocksList[par1] = this;

            this.blockID = par1;

            this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);

            opaqueCubeLookup[par1] = this.isOpaqueCube();

            lightOpacity[par1] = this.isOpaqueCube() ? 255 : 0;

            canBlockGrass[par1] = !par2Material.getCanBlockGrass();

        }

        isDefaultTexture = (getTextureFile() != null && getTextureFile().equalsIgnoreCase("/terrain.png"));

    }

 

#2: Line 359 of net.minecraft.block.Block:

 

public Block(int par1, int par2, Material par3Material)

    {

        this(par1, par3Material);

        this.blockIndexInTexture = par2;

    }

 

#3 and #4 have to do with the code you're using for your mod. Mind showing us what line 11 of A_MTM_BlockCore.java and line 453 of A_MTM_CORE.java are, and the related methods where said lines are contained?

Link to comment
Share on other sites

Seigyoku gave the perfect answer, I just wanted to add: paste.minecraftforge.net <-- post your mainMod java file here, the one where you have the @mod annotation and stuff, sett highlighting to Java and give us the link, that will make solving your issues a lot easier!

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Im only partly following what you said but im useing ID codes that minecraft isint useing and im useing idex codes in my own sprite sheets and sure anything to help why it wont allow any further addons.

 

Line 11:    super(par1, par2, Material.rock);

 

But every other Ore block has no problem with this.

 

Line 453: AmethystBlock = new A_MTM_BlockCore(this.AmethystBlockID, 39).setBlockName("AmethystBlock");

 

I think you have had a typo or somethign this is line 453. but iwth new error log its 447 FYI

 

and im not sure what you mean by the methods  (My brains is mush atm figureing this out)

 

2013-02-14 15:49:39 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 31541

2013-02-14 15:49:39 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:324)

2013-02-14 15:49:39 [iNFO] [sTDERR] at net.minecraft.block.Block.<init>(Block.java:359)

2013-02-14 15:49:39 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_BlockCore.<init>(A_MTM_BlockCore.java:11)

2013-02-14 15:49:39 [iNFO] [sTDERR] at MeetTheMod.common.A_MTM_CORE.load(A_MTM_CORE.java:447)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-02-14 15:49:39 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

2013-02-14 15:49:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

2013-02-14 15:49:39 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)

2013-02-14 15:49:39 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)

2013-02-14 15:49:39 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)

2013-02-14 15:49:39 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)

2013-02-14 15:49:39 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-02-14 15:49:39 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744)

2013-02-14 15:49:39 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-02-14 15:50:00 [iNFO] [sTDERR] Someone is closing me!

 

I think i needed to post a new log since iv been trying to configure to get a work around coulkd be the same i had to re-add Amethyst into my main core class file sorry.

 

 

I wasint sure what you ment or how much i was suppose to paste in but: http://paste.minecraftforge.net/view/e0ca0ad5

Link to comment
Share on other sites

I can explain this simply: When you initialize a block or item, the first parameter usually is the object's ID. The object gets shoved into net.minecraft.block.Block.blocksList[iD] and net.minecraft.item.Item.itemsList[iD] if it's a block, or into net.minecraft.item.Item.itemsList[iD+256] if it's just an item. This is a very important part of initialization, because:

 

public static final Block[] blocksList = new Block[4096];

 

public static Item[] itemsList = new Item[32000];

 

This can't be changed easily unless we alter the base code, or know how to tell Forge to change it for us.

 

The constructor I showed earlier lets us know how the ID part of the block's initialization is handled:

 

public Block(int par1, Material par2Material)

    {

        this.blockConstructorCalled = true;

        this.enableStats = true;

        this.stepSound = soundPowderFootstep;

        this.blockParticleGravity = 1.0F;

        this.slipperiness = 0.6F;

 

        if (blocksList[par1] != null)

        {

            throw new IllegalArgumentException("Slot " + par1 + " is already occupied by " + blocksList[par1] + " when adding " + this);

        }

        else

        {

            this.blockMaterial = par2Material;

            blocksList[par1] = this;

                this.blockID = par1;

            this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);

            opaqueCubeLookup[par1] = this.isOpaqueCube();

            lightOpacity[par1] = this.isOpaqueCube() ? 255 : 0;

            canBlockGrass[par1] = !par2Material.getCanBlockGrass();

        }

        isDefaultTexture = (getTextureFile() != null && getTextureFile().equalsIgnoreCase("/terrain.png"));

    }

 

Because of this, calling an index outside of these arrays tend to lead to this kind of compile error.

 

Some examples straight from Block's variables:

 

public static final Block stone = (new BlockStone(1, 1)).setHardness(1.5F).setResistance(10.0F).setStepSound(soundStoneFootstep).setBlockName("stone");

public static final Block dirt = (new BlockDirt(3, 2)).setHardness(0.5F).setStepSound(soundGravelFootstep).setBlockName("dirt");

 

So, we know that Stone Blocks are stored in blocksList[1], and Dirt Blocks are stored in blocksList[3].

 

Meanwhile, sprite sheet indexing is an entirely different matter, that's handled in a different part of initialization.

 

super(par1, par2, Material.rock);

 

That parameter in line 11 of A_MTM_BlockCore.java is your texture index parameter. See the difference?

 

 

 

End lesson! Moving on:

 

Your initialization of the block itself seems okay from the surface, but I'd like to see the constructor you're using with line 11 of A_MTM_BlockCore.java just in case. Is that alright?

 

Meanwhile, the trail ends at your code attempting to pull an ID from your config file. Since you have an in-case ID for AmethystBlock to be 3607, the issue could be within the config file itself. Is there anything that looks like the number 31541 or a similar 5-digit number in there?

Link to comment
Share on other sites

I kinda understand but then i dont im still a total amature so some things kinda has to be stupifyed if u get what i mean. Like im that amatureish i could take a shot at fixing it if i understand correctly or ask for your kindness and show me the code i need to use to totally knock out the problem pernamently, im still pritty new so forgive me if i dont understand the very basic descriptions your help is much apresiated <3 :) but heres the BlockCore code:

package MeetTheMod.common;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

 

public class A_MTM_BlockCore extends Block

{

  public A_MTM_BlockCore(int par1, int par2)

  {

    super(par1, par2, Material.rock);

    this.setCreativeTab(CreativeTabs.tabBlock);

  }

 

  public String getTextureFile()

  {

    return "/MeetTheMod/BlockSpriteSheet.png";

  }

}

 

This is what i use and have had no problem with any other block useing this its just why stop at the 8th add on ? I dont mind giving out some code cause my mod im maken is well its... Iv got alot planned besides new ores and tools ill be adding in stuff not related to that for example new biome anyway gone off topic :)

Link to comment
Share on other sites

Hows you config file crafty?

Since you have an in-case ID for AmethystBlock to be 3607' date=' the issue could be within the config file itself. Is there anything that looks like the number 31541 or a similar 5-digit number in there?[/quote']

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Hows you config file crafty?

Since you have an in-case ID for AmethystBlock to be 3607' date=' the issue could be within the config file itself. Is there anything that looks like the number 31541 or a similar 5-digit number in there?[/quote']

 

I compleatly forgot about that part, Were is this config file cause if theres a class file were you make a config then im that noobish i probally dont even know i have it lol but i searched every part of my code in every class there is no number that high anywere its when i add in that 8th ore just seems to crash

Link to comment
Share on other sites

That's okay! We all start off trying to figure out our hands from our feet in this sort of hobby. ;)

 

I'll use what you supplied for hopefully something easier in explaining what's going on:

 

public A_MTM_BlockCore(int par1, int par2)

  {

    super(par1, par2, Material.rock);

    this.setCreativeTab(CreativeTabs.tabBlock);

  }

 

more or less means:

 

public A_MTM_BlockCore(int ID, int texture)

  {

    super(ID, texture, Material.rock);

    this.setCreativeTab(CreativeTabs.tabBlock);

  }

 

Your textures come from the sprite sheet you supplied for your blocks. That you already figured out, I think, looking at your getTextureFile() method for that class.

 

So you're initializing AmethystBlock:

 

AmethystBlock = new A_MTM_BlockCore(this.AmethystBlockID, 39).setBlockName("AmethystBlock");

 

this.AmethystBlockID is the ID of your AmethystBlock

39 is the texture index you're using from your supplied sprite sheet

 

So, there isn't anything wrong with your code so far, actually! But for some reason, your compiler thinks that AmethystBlockID has the value 31541, which is no good to us. Due to that, we have to keep looking:

 

this.AmethystBlockID = config.getBlock("Amethyst block", "block", 3607).getInt();

 

This seems to be the real culprit. You supplied a default just-in-case value of 3607, well within the bounds of the block ID array, so the config file should be the cause of your problems. There's a very good chance that there's confusion between item IDs with block IDs in there, as 31541 is suspiciously looking like an item ID.

 

As for where the config file should be, look in \forge\mcp\jars\config\, is anything that looks like yours in there? Configuration files aren't really known to me yet, so I'm mainly going off of what I see in this link: http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file

 

 

 

EDIT: Okay, I checked out your error logs again, the older log marks line 453:

 

AquamarineBlock = new A_MTM_BlockCore(this.AquamarineBlockID, 36).setBlockName("AquamarineBlock");

 

while your newer error lists line 447:

 

AmethystOre = new A_MTM_BlockCore(this.AmethystOreID, 23).setBlockName("AmethystOre");

 

Both have the same marked issue though, 31541 as an arrayOutOfBoundsException. Why is your compiler spitting out the same problem at different lines of code each time you try to test it? :o

Link to comment
Share on other sites

That kinda made more sence to me about double initialising the block, i fiddled around abit and removed the get testurefile part same error i also noticed in the config were it says this.whatever it was set to getitem weirdly enough i changed it to getblock but same error i thought it was the problem my heart filled with joy to be emptyed like a poped balloon xD

 

as for the new line code of 447 , when i posted this i was still fiddleing around trying to fix it like putting Amethyst into a new core file and pasting it back in may have added a dew extra space lines hence the new number.

 

As for the config folder i see 4 CFG files named: "Forge" "ForgeChunjLoading" "MeetTheMod" (My Mods name @Copyright :3) and "MeetTheMod_Two" <-- thats only there cuase of my messing around trying to fix it i think thats unimportant i didint make that package untill after the error for 2 days driving me mad thinjking of ways around it.

 

And i shall have a wonder on that link you posted, do you know how to fix it or are you still figureing it out btw? cause ill feel very stupid if u literally  told me the fix xD

Link to comment
Share on other sites

Any kind of text editor, like the default notepad that comes with windows works :)

if you want a more fancy program, then Notepad++ is a free notepad with nifty features like syntax highlighting.

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

as for the new line code of 447 , when i posted this i was still fiddleing around trying to fix it like putting Amethyst into a new core file and pasting it back in may have added a dew extra space lines hence the new number.

 

Alright, I'm just trying to make sure for myself which of your block variables is giving you a headache. :D One more time to confirm, which one is being a pain, AmethystBlock or AmethystOre?

 

And i shall have a wonder on that link you posted, do you know how to fix it or are you still figureing it out btw? cause ill feel very stupid if u literally  told me the fix xD

 

I'm pretty clueless as to how Forge formats config files, but if the error is inside the file, it should be easy enough to spot. Just remember the number, 31541!

Link to comment
Share on other sites

Its the ore thats seems to be B****ing out lol even when i removed Amethyst from my FULLY coded 19 set i have it backed up and saved th full code and i used that to paste in one by one untill it went wrong lol and well to my supprise item id codes in that file ate in the 30,000s which makes no sence to me if that can be somewhat explained lol heres the paste file i could probally take a stab at it but yeno what you guys think: http://paste.minecraftforge.net/view/e39f5618

Link to comment
Share on other sites

####################

# amethyst ore

####################

 

"amethyst ore" {

    I:block=31541

}

 

Ding ding, here's our problem, it looks like. 8) I'll be editing this post as I try to traceback the process.

 

As for you wondering why your Item IDs are so high, can we see your custom item class? This might actually solve why the config file is doing what it's doing.

 

 

 

EDIT: Okay, we know now how the config file is messing things up, just not why.

 

public static Block AmethystOre;

 

this.AmethystOreID = config.getItem("Amethyst Ore", "block", 3307).getInt();

this.AmethystOreID = config.getBlock("Amethyst Ore", "block", 3307).getInt();

 

####################

# amethyst ore

####################

 

"amethyst ore" {

    I:block=31541

}

 

AmethystOre = new A_MTM_BlockCore(this.AmethystOreID, 23).setBlockName("AmethystOre");

 

Following that, and looking at what you wrote before:

 

even when i removed Amethyst from my FULLY coded 19 set

 

Since the value is already written into the config file and saved, disabling the code doesn't entirely help, you'll have to manually edit the value yourself in there too. See if it behaves changing the value from 31541 to 3307.

Link to comment
Share on other sites

for some weird reason when i posted my last reply i was booted offt he site for ages >.> but yea  i edited the number and saw that i had a item term in the block code i was like *FACEPALM* Probally would have noticed if i could get on this site faster xD but i thank you guys for your massive help tho :D i now understand some of the code more and i now know were to go if i get some weird id code error :3 I love yous ^_^ now i gota fix textures >.> my client loads perfectly now with all 19 ores tools and armors and blocks :D SUCCESS! now texture fixing and i can finally after 3 days progress with my big ibg mod! But im sure ill be back here with another problem ;)

 

Much love to you guys :D any suggestions on what to add into my mod wud be awesome :o IV already got big plans from certain mobs and other stuff ^_^

 

Hopefully people who get stuck like me find this :P Omg i feel like a car has been lifted off my back now so much relief :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello. I've been having a problem when launching minecraft forge. It just doesn't open the game, and leaves me with this "(exit code 1)" error. Both regular and optifine versions of minecraft launch just fine, tried both with 1.18.2 and 1.20.1. I can assure that my drivers are updated so that can't be it, and i've tried using Java 17, 18 and 21 to no avail. Even with no mods installed, the thing won't launch. I'll leave the log here, although it's in spanish: https://jmp.sh/s/FPqGBSi30fzKJDt2M1gc My specs are this: Ryzen 3 4100 || Radeon R9 280x || 16gb ram || Windows 10 I'd appreciate any help, thank you in advance.
    • Hey, Me and my friends decided to start up a Server with "a few" mods, the last few days everything went well we used all the items we wanted. Now our Game crashes the moment we touch a Lava Bucket inside our Inventory. It just instantly closes and gives me an "Alc Cleanup"  Crash screen (Using GDLauncher). I honestly dont have a clue how to resolve this error. If anyone could help id really appreciate it, I speak German and Englisch so you can choose whatever you speak more fluently. Thanks in Advance. Plus I dont know how to link my Crash Report help for that would be nice too whoops
    • I hosted a minecraft server and I modded it, and there is always an error on the console which closes the server. If someone knows how to repair it, it would be amazing. Thank you. I paste the crash report down here: ---- Minecraft Crash Report ---- WARNING: coremods are present:   llibrary (llibrary-core-1.0.11-1.12.2.jar)   WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)   AstralCore (astralsorcery-1.12.2-1.10.27.jar)   CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)   SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)   ForgelinPlugin (Forgelin-1.8.4.jar)   midnight (themidnight-0.3.5.jar)   FutureMC (Future-MC-0.2.19.jar)   SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)   Backpacked (backpacked-1.4.3-1.12.2.jar)   LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar) Contact their authors BEFORE contacting forge // There are four lights! Time: 3/28/24 12:17 PM Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:89)     at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:612)     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)     at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98)     at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)     at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)     at java.lang.Class.privateGetPublicMethods(Class.java:2902)     at java.lang.Class.getMethods(Class.java:1615)     at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:82)     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:82)     ... 31 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.multiplayer.WorldClient     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)     ... 37 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@4e558728 from coremod FMLCorePlugin     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:260)     at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)     ... 39 more Caused by: java.lang.RuntimeException: Attempted to load class bsb for invalid side SERVER     at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62)     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:256)     ... 41 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Linux (amd64) version 5.10.0-28-cloud-amd64     Java Version: 1.8.0_382, Temurin     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Temurin     Memory: 948745536 bytes (904 MB) / 1564999680 bytes (1492 MB) up to 7635730432 bytes (7282 MB)     JVM Flags: 2 total; -Xmx8192M -Xms256M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2860 63 mods loaded, 63 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                 | Version                 | Source                                                | Signature                                |     |:----- |:------------------ |:----------------------- |:----------------------------------------------------- |:---------------------------------------- |     | LC    | minecraft          | 1.12.2                  | minecraft.jar                                         | None                                     |     | LC    | mcp                | 9.42                    | minecraft.jar                                         | None                                     |     | LC    | FML                | 8.0.99.99               | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | forge              | 14.23.5.2860            | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | creativecoredummy  | 1.0.0                   | minecraft.jar                                         | None                                     |     | LC    | backpacked         | 1.4.2                   | backpacked-1.4.3-1.12.2.jar                           | None                                     |     | LC    | itemblacklist      | 1.4.3                   | ItemBlacklist-1.4.3.jar                               | None                                     |     | LC    | securitycraft      | v1.9.8                  | [1.12.2] SecurityCraft v1.9.8.jar                     | None                                     |     | LC    | aiimprovements     | 0.0.1.3                 | AIImprovements-1.12-0.0.1b3.jar                       | None                                     |     | LC    | jei                | 4.16.1.301              | jei_1.12.2-4.16.1.301.jar                             | None                                     |     | LC    | appleskin          | 1.0.14                  | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |     | LC    | baubles            | 1.5.2                   | Baubles-1.12-1.5.2.jar                                | None                                     |     | LC    | astralsorcery      | 1.10.27                 | astralsorcery-1.12.2-1.10.27.jar                      | a0f0b759d895c15ceb3e3bcb5f3c2db7c582edf0 |     | LC    | attributefix       | 1.0.12                  | AttributeFix-Forge-1.12.2-1.0.12.jar                  | None                                     |     | LC    | atum               | 2.0.20                  | Atum-1.12.2-2.0.20.jar                                | None                                     |     | LC    | bloodmoon          | 1.5.3                   | Bloodmoon-MC1.12.2-1.5.3.jar                          | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LC    | forgelin           | 1.8.4                   | Forgelin-1.8.4.jar                                    | None                                     |     | LC    | bountiful          | 2.2.2                   | Bountiful-2.2.2.jar                                   | None                                     |     | LC    | camera             | 1.0.10                  | camera-1.0.10.jar                                     | None                                     |     | LC    | chisel             | MC1.12.2-1.0.2.45       | Chisel-MC1.12.2-1.0.2.45.jar                          | None                                     |     | LC    | collective         | 3.0                     | collective-1.12.2-3.0.jar                             | None                                     |     | LC    | reskillable        | 1.12.2-1.13.0           | Reskillable-1.12.2-1.13.0.jar                         | None                                     |     | LC    | compatskills       | 1.12.2-1.17.0           | CompatSkills-1.12.2-1.17.0.jar                        | None                                     |     | LC    | creativecore       | 1.10.0                  | CreativeCore_v1.10.71_mc1.12.2.jar                    | None                                     |     | LC    | customnpcs         | 1.12                    | CustomNPCs_1.12.2-(05Jul20).jar                       | None                                     |     | LC    | darknesslib        | 1.1.2                   | DarknessLib-1.12.2-1.1.2.jar                          | 220f10d3a93b3ff5fbaa7434cc629d863d6751b9 |     | LC    | dungeonsmod        | @VERSION@               | DungeonsMod-1.12.2-1.0.8.jar                          | None                                     |     | LC    | enhancedvisuals    | 1.3.0                   | EnhancedVisuals_v1.4.4_mc1.12.2.jar                   | None                                     |     | LC    | extrautils2        | 1.0                     | extrautils2-1.12-1.9.9.jar                            | None                                     |     | LC    | futuremc           | 0.2.6                   | Future-MC-0.2.19.jar                                  | None                                     |     | LC    | geckolib3          | 3.0.30                  | geckolib-forge-1.12.2-3.0.31.jar                      | None                                     |     | LC    | gottschcore        | 1.15.1                  | GottschCore-mc1.12.2-f14.23.5.2859-v1.15.1.jar        | None                                     |     | LC    | hardcorerevival    | 1.2.0                   | HardcoreRevival_1.12.2-1.2.0.jar                      | None                                     |     | LC    | waila              | 1.8.26                  | Hwyla-1.8.26-B41_1.12.2.jar                           | None                                     |     | LE    | imsm               | 1.12                    | Instant Massive Structures Mod 1.12.2.jar             | None                                     |     | L     | journeymap         | 1.12.2-5.7.1p2          | journeymap-1.12.2-5.7.1p2.jar                         | None                                     |     | L     | mobsunscreen       | @version@               | mobsunscreen-1.12.2-3.1.5.jar                         | None                                     |     | L     | morpheus           | 1.12.2-3.5.106          | Morpheus-1.12.2-3.5.106.jar                           | None                                     |     | L     | llibrary           | 1.7.20                  | llibrary-1.7.20-1.12.2.jar                            | None                                     |     | L     | mowziesmobs        | 1.5.8                   | mowziesmobs-1.5.8.jar                                 | None                                     |     | L     | nocubessrparmory   | 3.0.0                   | NoCubes_SRP_Combat_Addon_3.0.0.jar                    | None                                     |     | L     | nocubessrpnests    | 3.0.0                   | NoCubes_SRP_Nests_Addon_3.0.0.jar                     | None                                     |     | L     | nocubessrpsurvival | 3.0.0                   | NoCubes_SRP_Survival_Addon_3.0.0.jar                  | None                                     |     | L     | nocubesrptweaks    | V4.1                    | nocubesrptweaks-V4.1.jar                              | None                                     |     | L     | patchouli          | 1.0-23.6                | Patchouli-1.0-23.6.jar                                | None                                     |     | L     | artifacts          | 1.1.2                   | RLArtifacts-1.1.2.jar                                 | None                                     |     | L     | rsgauges           | 1.2.8                   | rsgauges-1.12.2-1.2.8.jar                             | None                                     |     | L     | rustic             | 1.1.7                   | rustic-1.1.7.jar                                      | None                                     |     | L     | silentlib          | 3.0.13                  | SilentLib-1.12.2-3.0.14+168.jar                       | None                                     |     | L     | scalinghealth      | 1.3.37                  | ScalingHealth-1.12.2-1.3.42+147.jar                   | None                                     |     | L     | lteleporters       | 1.12.2-3.0.2            | simpleteleporters-1.12.2-3.0.2.jar                    | None                                     |     | L     | spartanshields     | 1.5.5                   | SpartanShields-1.12.2-1.5.5.jar                       | None                                     |     | L     | spartanweaponry    | 1.5.3                   | SpartanWeaponry-1.12.2-1.5.3.jar                      | None                                     |     | L     | srparasites        | 1.9.18                  | SRParasites-1.12.2v1.9.18.jar                         | None                                     |     | L     | treasure2          | 2.2.0                   | Treasure2-mc1.12.2-f14.23.5.2859-v2.2.1.jar           | None                                     |     | L     | treeharvester      | 4.0                     | treeharvester_1.12.2-4.0.jar                          | None                                     |     | L     | twilightforest     | 3.11.1021               | twilightforest-1.12.2-3.11.1021-universal.jar         | None                                     |     | L     | variedcommodities  | 1.12.2                  | VariedCommodities_1.12.2-(31Mar23).jar                | None                                     |     | L     | voicechat          | 1.12.2-2.4.32           | voicechat-forge-1.12.2-2.4.32.jar                     | None                                     |     | L     | wolfarmor          | 3.8.0                   | WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar | None                                     |     | L     | worldborder        | 2.3                     | worldborder_1.12.2-2.3.jar                            | None                                     |     | L     | midnight           | 0.3.5                   | themidnight-0.3.5.jar                                 | None                                     |     | L     | structurize        | 1.12.2-0.10.277-RELEASE | structurize-1.12.2-0.10.277-RELEASE.jar               | None                                     |     Loaded coremods (and transformers):  llibrary (llibrary-core-1.0.11-1.12.2.jar)   net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer   net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)    AstralCore (astralsorcery-1.12.2-1.10.27.jar)    CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)    SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)    ForgelinPlugin (Forgelin-1.8.4.jar)    midnight (themidnight-0.3.5.jar)   com.mushroom.midnight.core.transformer.MidnightClassTransformer FutureMC (Future-MC-0.2.19.jar)   thedarkcolour.futuremc.asm.CoreTransformer SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)    Backpacked (backpacked-1.4.3-1.12.2.jar)   com.mrcrayfish.backpacked.asm.BackpackedTransformer LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   codersafterdark.reskillable.base.asm.ClassTransformer LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar)   lumien.bloodmoon.asm.ClassTransformer     Profiler Position: N/A (disabled)     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)
    • When i add mods like falling leaves, visuality and kappas shaders, even if i restart Minecraft they dont show up in the mods menu and they dont work
    • Delete the forge-client.toml file in your config folder  
  • Topics

×
×
  • Create New...

Important Information

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