robobanana99 Posted January 27, 2014 Posted January 27, 2014 Hello, I am a modder. I've begun updating my mod to 1.7.2 using forge 10.12.0.1013 when I realised that when I left a world and then rejoined, all the mod blocks / items disappeared and left this error in the console: http://pastebin.com/8e5Nt7w7. As far as I can see, it's detecting the missing blocks / items and saying that they are missing but still connecting to the world with the mods: ([07:26:42] [Netty IO #3/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],AtomicAPI@v1) I was wondering whether it was: A bug in forge An issue that I needed to fix If it was a mistake on my part, how would I go about fixing it and what are the common causes of this error? Thanks Quote
LexManos Posted January 27, 2014 Posted January 27, 2014 You've somehow registered your items/blocks wrong so that they no longer match up. Also as a pro tip, your domains should always be lowercase: AtomicAPI:compoundItem should be atomicapi:compoundItem or atomic_api:compoundItem How are you registering your items? Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
robobanana99 Posted January 27, 2014 Author Posted January 27, 2014 Ok, thanks for the tip. I'm using GameRegistry.registerItem(compoundItem, "compoundItem"); Quote
robobanana99 Posted January 27, 2014 Author Posted January 27, 2014 Also, this only seems to occur on the client, the server seems to be fine Quote
LexManos Posted January 27, 2014 Posted January 27, 2014 ya you should specify your domain manually in there. One of the things is, you could of changed your mod id or something that causes it to not sync up anymore. Does this happen on FRESH worlds? Create a world, go to main menu, join same world. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
robobanana99 Posted January 27, 2014 Author Posted January 27, 2014 Yes it does happen on fresh worlds when leaving and rejoining Quote
robobanana99 Posted January 27, 2014 Author Posted January 27, 2014 Errm, derp on my behalf at no point was I giving any form of item or block Id. How do I give an id to a block or item? Quote
LexManos Posted January 27, 2014 Posted January 27, 2014 You don't as it's not existant in 1.7 How about you just start posting all of your codee and exact steps to reproduce. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
robobanana99 Posted January 28, 2014 Author Posted January 28, 2014 I'm confused, as I have now made my unlocalized names the same as the names I used in GameRegistry.registerItem. Another thing, I can spawn the items in using /give playerN Quote
LexManos Posted January 28, 2014 Posted January 28, 2014 How about you just start posting all of your codee and exact steps to reproduce. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
robobanana99 Posted January 28, 2014 Author Posted January 28, 2014 Oops, my keyboard derped there. /give playerName atomicraft:compoundItem gives me the item but as soon as I even try to right click it, I get an itemstack out of bounds -1. Also, if I create a world, quit the game, relaunch mc and join that world, everything is still there meaning that the things only disappear when leaving and rejoining in the same game session. Ok heres my init code where the items are first referenced http://pastebin.com/hYRmwLfT and then my item init code http://pastebin.com/3dgyQ5bm Quote
BartoszKonkol Posted January 28, 2014 Posted January 28, 2014 Welcome. I am the creator of a thriving Polish modification, and I'm one of the editors Minecraft Wiki Poland. But the thing ... Happened to me the exact same problem as robobanana99. I was able to fix it, so I think I can help betraying how. To fix this error simply swap lines public static void init(FMLInitializationEvent event) on public void preInit(FMLPreInitializationEvent event) which fixes this problem. Yours Bartosz Konkol ps. I apologize for any grammatical errors. On average, I know language English... Quote Bartosz Konkol
robobanana99 Posted January 29, 2014 Author Posted January 29, 2014 Thank you so much Probbably not the proper way round it but it works for now! Quote
Recommended Posts
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.