Jump to content

[1.12.2] Creating an Entity with OBJ model?


Thegametutor101

Recommended Posts

Hi,

I was wondering if anyone could help me with making my entity use an obj model instead of the model that I made with Tabula.

if you can please tell me in detail what I need to do of if you know someone that already showed how, please link it to me.

 

Thank you very much if anyone can help :)

Link to comment
Share on other sites

OBJ models for entities are not supported/implemented.

You would either need a custom wavefront parser/uploader or you would register the OBJ model for an item and render the resulting IBakedModel in the same way RenderEntityItem does that.

Link to comment
Share on other sites

3 minutes ago, V0idWa1k3r said:

OBJ models for entities are not supported/implemented.

You would either need a custom wavefront parser/uploader or you would register the OBJ model for an item and render the resulting IBakedModel in the same way RenderEntityItem does that.

Actually I'm trying to create 2 types of entities with obj models: a throwable and a mob.

 

Do you know how I should make the custom wavefront parser/uploader?

I have never used IBakedModel before.. what do I do?

 

thank you

Link to comment
Share on other sites

6 minutes ago, Thegametutor101 said:

Do you know how I should make the custom wavefront parser/uploader?

 

Look up the wavefront format on a wikipedia, write a parser. This is not so much of a minecraft issue as a general coding issue.

 

6 minutes ago, Thegametutor101 said:

 I have never used IBakedModel before.. what do I do?

 

 

12 minutes ago, V0idWa1k3r said:

egister the OBJ model for an item and render the resulting IBakedModel in the same way RenderEntityItem does that.

 

Link to comment
Share on other sites

23 minutes ago, V0idWa1k3r said:

Look up the wavefront format on a wikipedia, write a parser. This is not so much of a minecraft issue as a general coding issue.

I found this piece of code but I don't know if this would work or what I would even do with it:

https://github.com/syoyo/tinyobjloader/blob/master/tiny_obj_loader.h

I would really appreciate it if you could explain a little more, please.

 

24 minutes ago, V0idWa1k3r said:

egister the OBJ model for an item and render the resulting IBakedModel in the same way RenderEntityItem does that.

If I understand this correctly you mean that once my OBJ item model is registered I use the IBakedModel to render said OBJ item model through the RenderEntityItem? I don't know how to do that nor how to access or use an IBakedModel.

Can you please show me how or explain a littles more?

 

Thank you

Link to comment
Share on other sites

6 minutes ago, Thegametutor101 said:

I found this piece of code but I don't know if this would work or what I would even do with it:

 

This is a header file for C++. Why would you search for an obj parser for C++ I have no clue.

 

6 minutes ago, Thegametutor101 said:

If I understand this correctly you mean that once my OBJ item model is registered I use the IBakedModel to render said OBJ item model through the RenderEntityItem?

No. Register the OBJ model as a model for one of your items, then do the same RenderEntityItem does for rendering the resulting IBakedModel. I don't think a better explanation is possible.

 

7 minutes ago, Thegametutor101 said:

Can you please show me how

 

39 minutes ago, V0idWa1k3r said:

in the same way RenderEntityItem does that.

I gave you the class name that does the rendering. All you have to do is open said class's sources using the IDE of your choice and see how it is done there.

Link to comment
Share on other sites

33 minutes ago, V0idWa1k3r said:

This is a header file for C++. Why would you search for an obj parser for C++ I have no clue.

 

No. Register the OBJ model as a model for one of your items, then do the same RenderEntityItem does for rendering the resulting IBakedModel. I don't think a better explanation is possible.



I gave you the class name that does the rendering. All you have to do is open said class's sources using the IDE of your choice and see how it is done there.

I'm trying this but I don't know if this is correct.

BTW, I'm new so if you can help me I am happy, but please just don't be arrogant.

RenderThrowablePokeball.PNG

Link to comment
Share on other sites

6 minutes ago, Thegametutor101 said:

BTW, I'm new so if you can help me I am happy, but please just don't be arrogant.

 

I am not being arrogant, you are just making mistakes that make no sense. The purpose of you being here is to learn and first step to learning is understanding your wrongs.

Like here, in the screenshot attached you are using a wavefront object MODEL file as your TEXTURE location. This makes no sense and you should understand that just by looking at it and thinking "So I need to bind a texture, which is an image file in it's nature but here I am telling the game to bind an obj model file(which is just a text file) as a texture". I do understand that you are new to modding(in which case you should probably start with something simpler than implementing a feature that is not supported) but these are just mistakes that need a bit of logic to understand and you should always apply logic to programming, otherwise you are not really programming, are you? I am sorry if I sound arrogant, I just wish for people to learn, otherwise they will keep coming back here with every tiny thing.

You also keep doing only half of what I am telling you to do.

44 minutes ago, V0idWa1k3r said:

Register the OBJ model as a model for one of your items

 

 

Link to comment
Share on other sites

That's actually really well said.. thank you :) and I am honestly trying to do what you tell me to I really have a hard time understanding, sorry.

 

I am already rendering the OBJ model in game for my pm:pokeball. Are you telling me to do something else as well?

 

I know the texture should be a .png file but I don't know how I should do this because I have the blockstates json file calling my obj file in the models/item and that uses the mtl file but the textures were directly injected into the mtl file and I have no Idea how to do it otherwise..

 

You are right though I should try something less big to start..I just wanted to try and understand how to do it and then I will try putting my focus toward other parts of the mod.

Link to comment
Share on other sites

So basically what you want to do is a little workaround the issue of not being able to render the OBJ models for an entity by using forge.

 

Forge has a system for loading the OBJ models for item/block models. In actuality it converts the OBJ vertices into a format that the game understands but that's an implementation detail.

 

You also know that the game can render items in various forms, like when you toss an item on the ground it renders in the world as a 3D model. 

 

If said item were to have an OBJ model assigned as it's model then when you toss the item said OBJ model would render in world, which is kinda what you want in the end.

 

So, the logical place to look would be RenderEntityItem which is the class responsible for actually rendering the item in the world to see how it is doing it.

 

The problem however is the fact that it gets the model to render in world from the ItemStack, which contains the item. There are ways around that, sure, you can have independent IBakedModel instances but that is complicated, so the simple option is to have an item that is assigned the OBJ model you want to use and simply do the same RenderEntityItem does but instead of getting the ItemStack from the entity pass it a constant ItemStack that contains the item that has the model assigned.

 

As for which texture to use - minecraft stiches all item/block textures together into a singular image for performance reasons. So you would just use that image as your texture and I am pretty sure RenderEntityItem has a reference to that image.

Link to comment
Share on other sites

On 5/7/2019 at 3:54 PM, V0idWa1k3r said:

So, the logical place to look would be RenderEntityItem which is the class responsible for actually rendering the item in the world to see how it is doing it.

Thank you for the explanation!

On 5/7/2019 at 3:54 PM, V0idWa1k3r said:

The problem however is the fact that it gets the model to render in world from the ItemStack, which contains the item. There are ways around that, sure, you can have independent IBakedModel instances but that is complicated, so the simple option is to have an item that is assigned the OBJ model you want to use and simply do the same RenderEntityItem does but instead of getting the ItemStack from the entity pass it a constant ItemStack that contains the item that has the model assigned. 

I think I understand, is this what I am supposed to do?:

ItemStack itemstack = new ItemStack(Pokeballs.POKEBALL);

 

On 5/7/2019 at 3:54 PM, V0idWa1k3r said:

As for which texture to use - minecraft stiches all item/block textures together into a singular image for performance reasons. So you would just use that image as your texture and I am pretty sure RenderEntityItem has a reference to that image.

I tried looking in the RenderEntityItem class and I'm not sure if this is the "AllinOne" texture:

    protected ResourceLocation getEntityTexture(EntityItem entity)
    {
        return TextureMap.LOCATION_BLOCKS_TEXTURE;
    }

 

Edited by Thegametutor101
Link to comment
Share on other sites

6 minutes ago, Thegametutor101 said:

I think I understand, is this what I am supposed to do?:



 

Sure, just don't construct it every frame.

 

7 minutes ago, Thegametutor101 said:

I tried looking in the RenderEntityItem class and I'm not sure if this is the "AllinOne" texture:



 

Yes it is.

 

Quote

here is the full RenderEntityItem class:

Please don't post copyrighted code on the forums. We can all see this class in our IDE, there is 0 reason to post it here.

Link to comment
Share on other sites

7 hours ago, V0idWa1k3r said:

This indicates that you haven't registered your renderer.

Indeed I forgot to do it so now it is registered both the entity and the render in the Main's Init method.

	@EventHandler
	public static void init(FMLInitializationEvent event) {
		ThrowableRegistryHandler.registerThrowableEntities();
		ThrowableRenderHandler.registerThrowableEntityRenders();
		
		ApricornSmelting.init();
		AluminiumSmelting.init();
	}

I loaded the mod and it still doesnt work..same white cube

Link to comment
Share on other sites

24 minutes ago, V0idWa1k3r said:

This is too late to register the renderer. Register it earlier

I put it in the preInit now and it gave me this crash report:

 


[19:31:23] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
// Don't do that.

Time: 5/10/19 7:31 PM
Description: Initializing game

java.lang.NullPointerException: Initializing game
	at net.minecraftforge.client.ItemModelMesherForge.register(ItemModelMesherForge.java:80)
	at net.minecraft.client.renderer.RenderItem.registerItem(RenderItem.java:88)
	at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:93)
	at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:98)
	at net.minecraft.client.renderer.RenderItem.registerItems(RenderItem.java:470)
	at net.minecraft.client.renderer.RenderItem.<init>(RenderItem.java:77)
	at pixelmonMod.entities.throwableEntities.pokeballEntities.renders.RenderThrowablePokeball.<init>(RenderThrowablePokeball.java:24)
	at pixelmonMod.entities.throwableEntities.throwableHandlers.ThrowableRenderHandler$1.createRenderFor(ThrowableRenderHandler.java:20)
	at net.minecraftforge.fml.client.registry.RenderingRegistry.register(RenderingRegistry.java:77)
	at net.minecraftforge.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:70)
	at net.minecraft.client.renderer.entity.RenderManager.<init>(RenderManager.java:236)
	at net.minecraft.client.Minecraft.init(Minecraft.java:564)
	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
	at net.minecraft.client.main.Main.main(Main.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
	at GradleStart.main(GradleStart.java:25)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at net.minecraftforge.client.ItemModelMesherForge.register(ItemModelMesherForge.java:80)
	at net.minecraft.client.renderer.RenderItem.registerItem(RenderItem.java:88)
	at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:93)
	at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:98)
	at net.minecraft.client.renderer.RenderItem.registerItems(RenderItem.java:470)
	at net.minecraft.client.renderer.RenderItem.<init>(RenderItem.java:77)
	at pixelmonMod.entities.throwableEntities.pokeballEntities.renders.RenderThrowablePokeball.<init>(RenderThrowablePokeball.java:24)
	at pixelmonMod.entities.throwableEntities.throwableHandlers.ThrowableRenderHandler$1.createRenderFor(ThrowableRenderHandler.java:20)
	at net.minecraftforge.fml.client.registry.RenderingRegistry.register(RenderingRegistry.java:77)
	at net.minecraftforge.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:70)
	at net.minecraft.client.renderer.entity.RenderManager.<init>(RenderManager.java:236)
	at net.minecraft.client.Minecraft.init(Minecraft.java:564)

-- Initialization --
Details:
Stacktrace:
	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
	at net.minecraft.client.main.Main.main(Main.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
	at GradleStart.main(GradleStart.java:25)

-- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_211, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 782979512 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 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 |
	|:----- |:--------- |:------------ |:-------------------------------- |:--------- |
	| UCH   | minecraft | 1.12.2       | minecraft.jar                    | None      |
	| UCH   | mcp       | 9.42         | minecraft.jar                    | None      |
	| UCH   | FML       | 8.0.99.99    | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
	| UCH   | forge     | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
	| UCH   | pm        | 0.0.1        | bin                              | None      |

	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13397 Compatibility Profile Context 15.200.1055.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
	Launched Version: 1.12.2
	LWJGL: 2.9.4
	OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.5.13397 Compatibility Profile Context 15.200.1055.0, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fml,forge'
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x AMD A4-6210 APU with AMD Radeon R3 Graphics 
[19:31:24] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Dan\Desktop\Minecraft Modding\PixelmonMod\run\.\crash-reports\crash-2019-05-10_19.31.23-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

4 minutes ago, V0idWa1k3r said:

Well, you haven't provided your up-to-date code so I can't tell you what's wrong.

Although if I were to guess you are doing something strange yet again, like creating a new instance of RenderItem for whatever reason.

Main

ItemThrowablePokeball   (Creates The item pokeball)

BaseEntityThrowablePokeball  (Base for all throwablePokeballs)

EntityThrowablePokeball   (the Throwable Pokeball entity itself)

RenderThrowablePokeball    (Rendering the Pokeball being thrown)

ThrowableRenderHandler    (Registers the rendering for the throwables)

ThrowableRegistryHandler   (Registers the Throwable Entities)

Link to comment
Share on other sites

https://github.com/Thegametutor101/Pixelmon_Project_School/blob/Pixelmon_Main/java/pixelmonMod/entities/throwableEntities/pokeballEntities/renders/RenderThrowablePokeball.java#L24

As I've said you are creating a new instance of RenderItem. Don't ever do that. Take the one provided by Minecraft. Don't do it in the costructor or you will crash later with an NPE.

Link to comment
Share on other sites

On 5/10/2019 at 7:52 PM, V0idWa1k3r said:

Take the one provided by Minecraft. Don't do it in the costructor or you will crash later with an NPE.

so I don't create an object of the RenderItem class?? I tried this but it crashed..

public class RenderThrowablePokeball extends Render<EntityThrowablePokeball>{
	
	public ItemStack itemstack = new ItemStack(Pokeballs.POKEBALL);
	 /* private final RenderItem itemRenderer = new RenderItem(null, null, null); */

	public RenderThrowablePokeball(RenderManager renderManager) {
		super(renderManager);
	}

	@Override
	protected ResourceLocation getEntityTexture(EntityThrowablePokeball entity) {
		return TextureMap.LOCATION_BLOCKS_TEXTURE;
	}
	
	@Override
	public void doRender(EntityThrowablePokeball entity, double x, double y, double z, float entityYaw, float partialTicks) {
		GL11.glPushMatrix();
		bindEntityTexture(entity);
		bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
		GL11.glTranslated(x, y, z);
		//this.model.render(entity, 0.0F, 0.0F, -0.1F, entity.rotationYaw, entity.rotationPitch, 0.0625F);
		GL11.glPopMatrix();
		IBakedModel ibakedmodel = this.itemRenderer.getItemModelWithOverrides(itemstack, entity.world, (EntityLivingBase)null);
		super.doRender(entity, x, y, z, entityYaw, partialTicks);
	}

}

 

Link to comment
Share on other sites

Which point do you not understand?

"Take the one provided by Minecraft" - Minecraft.class has a ItemRenderer instance that you can obtain via a getter that is called getItemRenderer, you could've found this in less than a minute by yusing your IDE. Start doing that by the way, and IDE is more than just a fancy text editor. Understanding the functionalities of your IDE will save you a lot of time and trouble later on.

"Don't do it in the constructor" - exactly as it says, don't write the return value of this method onto a field to use later or you will crash. Do it in your render method.

An example of what do you need? How to invoke a method?

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

    • 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  
    • If you are using AMD/ATI, get the latest drivers from their website - do not update via system  
  • Topics

×
×
  • Create New...

Important Information

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