Jump to content

Recommended Posts

Posted

Hi,

I have changed one of my block Ids.

Normally, when you open a world, where some Ids haven't got a block, opens a gui where you have to click Yes and No. These gui is there, but in the next second Minecraft crashs and says Shutting down internal server....

 

Console:

2013-03-25 16:30:34 [sCHWERWIEGEND] [fml.ItemTracker] Missing items : {901=Item 901, Type randomadditions.ItemBlockRandom, owned by RandomAdditions, ordinal 1, name null, claimedModId null}

2013-03-25 16:30:34 [sCHWERWIEGEND] [fml.ItemTracker] Mismatched items : {139=(Item 139, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 6, name null, claimedModId null, Item 139, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 7, name null, claimedModId null), 66=(Item 66, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 1, name null, claimedModId null, Item 66, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 0, name null, claimedModId null), 6=(Item 6, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 5, name null, claimedModId null, Item 6, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 6, name null, claimedModId null), 143=(Item 143, Type net.minecraft.block.BlockButton, owned by Minecraft, ordinal 1, name null, claimedModId null, Item 143, Type net.minecraft.block.BlockButtonWood, owned by Minecraft, ordinal 0, name null, claimedModId null), 77=(Item 77, Type net.minecraft.block.BlockButton, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 77, Type net.minecraft.block.BlockButtonStone, owned by Minecraft, ordinal 0, name null, claimedModId null), 78=(Item 78, Type net.minecraft.block.BlockSnow, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 78, Type net.minecraft.item.ItemSnow, owned by Minecraft, ordinal 0, name null, claimedModId null), 27=(Item 27, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 27, Type net.minecraft.block.BlockRailPowered, owned by Minecraft, ordinal 0, name null, claimedModId null)}

 

My Block is a Block, which uses Metadata, so i have also an ItemBlock.

Have no idea what went wrong, so i looked into the code.

Forge checks if an Id hasn't got a Block or an Item, if not it will check if the Mod irgnore it. But i find no way to say that my mod ignore it.

if (!isModIgnoredForIdValidation(diff.getModId()))
                {
                    foundNonIgnored = true;
                }

The function isModIgnoredForIdValidation is checking if this map:

private static Map<String,String> ignoredMods;

contains my Mods. But i can't add my Mod to this list.

Can anybody help me?

Thanks previously.

Posted

Well why did you change the blockID then if you didn't want to corrupt old worlds?

Anyways I guess one could apply some script to the world file and then swap the old BlockID out for the new one which would solve the issues.

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

Posted

That what i'm trying to do, but Minecraft crashs before i can do it.

I use the event onChunkLoading, then i check the version of the Chunk .If it needs an update, i check every block and set the new ID, also i Chest and all other kind of storage. On the onPlayerLogin event, i check the iventory of the players.

But the world crashs before all this.

Posted

for the script, I think it will be easier to do it out of Minecraft, just run it on the world folder and make it sort out the ID's

But then again, you have to be sure to know the basics of programming and you should be able to do it inn whatever language you are most familiar with :)

PS: Before you start testing your scripts etc. do a backup of the worlds or else you can end up losing your world over a simple logic mistake :P

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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