Jump to content

Recommended Posts

Posted

Hello, I'm Taigore.

I'm trying to make my mod turned coremod work again. The coremod part worked fine almost since when I added it. However, the rest of the mod refuses to get back working. I managed to, after a long time, get back working the blocks, items, textures and all mod class events, but I can't get the GUI on again. I spent a lot of time reading FML code and, from what I have seen, I can't find anything else not involving reflection to register the GUI. The usual NetworkRegistry method won't work, and it seems that the InjectedModContainer wrapping my mod (that gets automatically created) isn't registered at all in LoadController.modObjectList.

I attach both my IFMLLoadingPlugin implementation and my DummyModContainer extension, if anyone could help me pointing out what FML expects from me to be able to process my mod without resorting to crazy hacks I'd be grateful. Mind that the plugin is correctly identified and called, and the container has its events called, even though it took some effort and much exploration. I likely haven't used the "correct" method to make it work. I followed this guide for the most part, although the change I made is slightly more extensive.

 

InventorySaver (ModContainer)

 

  Reveal hidden contents

 

 

FMLLoadingPlugin (Plugin class)

 

  Reveal hidden contents

 

 

Thanks in advance for the help.

Posted

Thanks for the reply, but I'm actually using the coremod to modify the rendering of EntityFallingSand.

My block is not a standard cube, it's a detailed shape with a non square texture that I plan to make fall, so I'm modifying the renderer to use the actual block rendering for everything that uses a non standard one (even other mod blocks).

I could get the same result for my block by duplicating EntityFallingSand and adding a new renderer for it, that uses the block rendering, but it's redundant.

Even if you still think is better, I could still use to know what the problem with my mod is, in case I need it for future works.

Posted

IF you have to write a coremod for something you can do without it...

You're doing it wrong.

Just because it's 'redundant' doesn't mean you're right.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.

×
×
  • Create New...

Important Information

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