Jump to content

Recommended Posts

Posted

Hey there, unless I am mistaken when I try to run the server thing in eclipse it crashes due to a model of a mob (DireWolf)

Here is the server crashlog:

 

  Reveal hidden contents

 

 

Any ideas on why this may be crashing the server?

 

Here is the ModelDireWolf code:

 

  Reveal hidden contents

 

 

-Jordan

Why bother?

Posted

yeah, well the server shouldnt care about the model of the wolf (or any visual aspect of a mob) so basicly make sure that NO server file need to look/import the model

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

this is just speculation as i have never worked with models yet.

 

but if you have to add @SideOnly(Side.CLIENT) you would only need to put it the line above public class yourclassname{} as it would say to forge that the whole class is client only

 

but then again that might not help

 

make sure that the only place there you have

 

import Modelwtv;

is in files that are only used by the client

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Alright, it said that the import you suggested doesn't exist. So I deleted it, and changed extends from modelbase to modelwolf (because it is a wolf anyway, so it wouldn't matter) and the same error occured:

Exception in server tick loop

 

java.lang.NoClassDefFoundError: mods/EverythingAndMore/ModelDireWolf

 

Why bother?

Posted

no no, keep it as modelbase, im pretty sure this work since a lot of people are using it that way (mo's creature as example)

 

  Quote
it said that the import you suggested doesn't exist

it being eclipse ? (that b*tch)

 

can you put in

 

  Reveal hidden contents

 

 

your main mod class, model class, proxies class and wolf mob thigny class ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Main mod class:

 

  Reveal hidden contents

 

 

Common Proxy:

 

  Reveal hidden contents

 

 

Client Proxy:

 

  Reveal hidden contents

 

 

Wolf model:

 

  Reveal hidden contents

 

 

Wolf Entity:

 

  Reveal hidden contents

 

 

Wolf Render:

 

  Reveal hidden contents

 

Why bother?

Posted

ah AH

 

RenderingRegistry.registerEntityRenderingHandler(EntityDireWolf.class, new RenderDireWolf(new ModelDireWolf(), 1.0f));

 

this should be in a client proxy, as the constructor "new ModelDireWolf()" is called server side in this case.

 

so remove everythign "rendering" related from main mod and put it in the client proxy (most likely in the method "registerRenders", just remember to also call the method,  like  commonProxy.registerRenderers())

 

 

  Reveal hidden contents

 

 

also, nice code btw, clean and all, i like it ;)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

Thanks :)

 

Anyway... I don't know what I am doing wrong this is what I have:

 

  Reveal hidden contents

 

And then the mob spawns as a biped, not a wolf.

And when I tried to copy over all the stuff from the main class to do with the mob, it said the registerEntityEgg was invalid, so I put that back... but then I couldn't spawn the mob as the egg just said "Spawn" with no mob name -_-

Why bother?

Posted

i can say for sure that the egg thignies and entity registering should be server side as both the client and the server must know that a new mob is in the game

 

as to why its only "Spawn" and it renders as a biped... this is beyond my knowledge. i guess you'll have to debug it or wait 'til someone else give you an answer :(

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted
  On 6/28/2013 at 5:18 PM, jordsta95 said:

Thanks :)

 

Anyway... I don't know what I am doing wrong this is what I have:

 

  Reveal hidden contents

 

And then the mob spawns as a biped, not a wolf.

And when I tried to copy over all the stuff from the main class to do with the mob, it said the registerEntityEgg was invalid, so I put that back... but then I couldn't spawn the mob as the egg just said "Spawn" with no mob name -_-

Um, are you actually overriding doRender() in your render class?

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

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.