Can someone send me here the hearthling models to animate?

Hi guys!
I was creating a new class, and I just finished it. Only one thing missing, its animation. (I was using the farming animation as a placeholder lol)

Can someone upload here the male and female models in a format that can be imported in blender?
I think there was some files in the game, but I didn’t find it this time.

1 Like

Here you go!
female.obj (266.9 KB)

male.obj (288.0 KB)

2 Likes

Thanks.
All I need is to animate it and then export? Or it does need to be rotated?
I’m asking because loading the hoe animation into it made the model rotate, like this:
image

Ok, that was because the pieces didn’t had a origin set.
So for a quick and dirty test, I selected all and set origin to center of mass. It looks better.
But the model is flipped? The foot is flipped in the y axis, and the head is tilted in the x axis.
I tried importing the male skeleton but it didn’t helped. Actually, it has a different shoulder name.

huh, i’m not sure what that is?
i’ve never seen anything like that

i just tested it out and it works for me

you need to use the Original SH skeleton to set all the origins and then parent all of them so they all end with the root at top

also i forgot to send you the color files

just to make it clear, if you want to animate for an existing model
you’ll have to import and prepare the skeleton, parent all the parts to the correct parents and then hit "prepare animation’ afterwards before animating

Uhm, I’m importing the skeleton but all the origins are still set to 0,0.

The skeleton I’m importing is at data\rigs\entities\humans\skeletons\male.json

Importing it, clicking on prepare skeleton, clicking on prepare animation and then loading the hoe animation makes it have the correct directions and orientations, but everything is far away apart because the origins were wrong.

Are you using the meta file too?

No, which meta file?

There were some in this post, but the German website disappeared:

=(

@Hyrule_Symbol do you have them or you don’t use them?

it’s included in the add-on by default
it’s not reliable it messes things up, but the model shouldn’t be THAT broken

@BrunoSupremo the Meta files make a male animation file altered to attempt to make it work for the female or vice-versa if you’re trying to animate from scratch it’s not that important, but it does come in handy when porting it to a model variant

1 Like

from what i read i suspect the skeleton file was altered? perhaps you over-wrote it with a 0 value ny accident? (i’ve done it before)

try opening it up and if the values are all 0 then you should try to extract it again from the game

Well, opening the file in text editors I can see all coordinates are correct, like a lot of “random” numbers.
But in blender all coordinates are at 0,0…

I’m a little confused since the screen-caps you posted have no skeleton loaded according to the UI

All i can think of is something wrond during import of the skeleton

Can you tell me the exact steps you followed?
Or perhaps watch my tutorial of this? Since it does show how to load the skeleton

Edit; also gotta sleep now, sorry. I’ll be sure to check in again once i’m back

1 Like

Well, the step by step (as detailed as I can) is as follow:

  • Open Blender.
  • Import the hearthling .obj model. (downloaded from this post)
  • Import the male skeleton from the game at stonehearth\data\rigs\entities\humans\skeletons\male.json
  • Click on the “Prepare skeleton” button. Red light turns on. The debug info says “Skeleton error: Object-names in scene not found in skeleton-file!”
  • Click on the “Prepare animation” button. Red light turns on. Debug info says “Animation error: No root bone found!”
  • Import the hoe animation from the game at stonehearth\data\rigs\entities\humans\animations\male\hoe.json

Now the model is correct in orientations, but as the origins are all at 0,0 the pieces move very far from each other.

I want to add that for previous animations I did in other models I did nothing else than import the model, export skeleton (with origins correctly positioned), animate and export the animation. Without clicking the “prepare skel/anim” buttons.

Make sure to delete any object in scene before importing (e.g. camera / light / cube that come with the default scene in Blender).

Not sure but maybe you have to add the helper bones manually in advance (before importing / preparing the skeleton/animation). But Hyrule_Symbol’s tutorial has the correct steps covered.

Oh, you have tk actually import the skeletons manually in the import tab (alongside the .obj import) before hitting prepare skeleton the program doesn’t know where or what the skeleton file is before you tell it manually

All the helper bones should pop up on their own, just mske sure to parent all of them after you prepare the skeleton

If rhe model pbreaks as soon as you hit the skeleton button then make sure to clear all parents (selec everthing and Alt + P and then clear parents) before praparing the skeleton

If you haven’t you should really watch my tutorial video on this
It’s much easier to understand than text i think

1 Like

I think you missed one line from my steps or I’m very confused.

I imported the skeleton and then I hit the prepare skeleton. Unless I did it wrong. It is in the same menu, import stonehearth json
Sem título

Oh, sorry about that i guess i missed that? (Somehow?) but then i’m even more confused since if that’s the case everything should be fine

Didn’t you say there was an extra object? The shoulder? Try removing that and importing the skeleton

That was before doing thing the right way
I will try to manually set the origins, copying from the json… :frowning: