× Help requests to be posted here

TronCycle3: Model not loading [Resolved]

More
7 years 1 week ago #42470 by Kevin
Well the wheel is just the position where there are positioned,, propably on the flan vehicles configs you can see how it works
The topic has been locked.
More
7 years 1 week ago #42471 by circuitfry
Yeah. I did it and now the game no longer crashes but the model still doesn't show.
The topic has been locked.
More
7 years 1 week ago #42473 by Kevin
Is there anything showing up on the console? A big read text part
The topic has been locked.
More
7 years 1 week ago #42472 by circuitfry
Ah, no wonder it wasn't showing up.

[Flan's Mod] Failed to load model : TronCycle3 (TronCycle3.TronCycle3)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.flansmod.client.ClientProxy.loadModel(ClientProxy.java:275)
at com.flansmod.common.driveables.DriveableType.read(DriveableType.java:170)
at com.flansmod.common.driveables.VehicleType.read(VehicleType.java:51)
at com.flansmod.common.types.InfoType.read(InfoType.java:56)
at com.flansmod.common.FlansMod.readContentPacks(FlansMod.java:434)
at com.flansmod.common.FlansMod.preInit(FlansMod.java:190)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
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:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NoSuchMethodError: com.flansmod.client.tmt.ModelRendererTurbo.addBox(FFFIIIF)V
at com.flansmod.client.model.TronCycle3.ModelTronCycle3.<init>(ModelTronCycle3.java:31)
... 47 more
[Flan's Mod] Loaded vehicle.
The topic has been locked.
More
7 years 1 week ago #42475 by circuitfry
So, what's happening is that I'm supposed to be calling in an object (ModelTronCycle3.class) and instead the game is using null.

The model and the texture are just for show, basically. Lacking the vehicles/TronCycle3.txt's wheels will crash the game. That's why I've been able to "ride" the cycle without having the model.

Just to find out what happens I tried TronCycle3.ModelTronCycle3 and got a Class Not Found exception, meaning that TronCycle3 finds the proper .class file, but the game uses null.

I think that means that the .class might have absolutely nothing inside of it. It's somehow a null object, even though there's all of that code inside. So when I'm cleaning that Eclipse project and it's spitting errors at me while producing a .class file, I think it's just making a placeholder file for the object...

My theory (I guess?) is that in order to continue, the errors associated with a totally unrelated part of Flan's source that currently has some errors would need to be fixed. Unless there's a way to *just* build for the vehicle.
The topic has been locked.
More
7 years 1 week ago #42476 by Kevin
For the name of the java file you need the Model on the start but on the config you put the folder where is it . The name of the model without the Model on the start, and did you specify a vehicle type on config? If yes, did you put everything needed on the config for it?
The topic has been locked.
 
Latest Forum Posts
 
Latest Blog Posts
 
User Online
 
User Menu