Has anyone else tried to make a custom bed? I'm creating a new Bed for colonist pets, and whenever a dog comes over to sleep in it, it's texture disappears, along with all the textures of nearby colonists. The names are still there, but no textures at all (not even the heads on the colonists).
While typing this out I went to test a few more things out and found that there was actually an exception being logged in the Console window but it didn't pop up, so I didn't notice.
Looking at the exception, I now see the problem, but I thought I'd post anyway in case anyone else runs into this problem.
Basically, I'm using the Building_Bed class for a non-humanoid pawn. In the Pawn_Renderer class, it checks to see if the pawn is using a bed currently, and if it's using a Building_Bed object, it tries to determine an offset of the pawn's Head. But in my case, the pawn doesn't have a separate Head. It's just a single texture like any of the other animals. So it was throwing a NPE and then not rendering several things.
To fix this, instead of using or extending the Building_Bed class, I'll have to actually copy all the Bed code and put it into a new class, so that the Pawn_Renderer doesn't think it's actually in a bed and just renders the pawn like it is normally sleeping.
I tossed up the screenshots I took as well. Hopefully this helps somebody some day.
[attachment deleted by admin: too old]
Could you possibly just set the dogs he's texture to be the entire dog/not have a visible texture for the body? Thus not need to remake the bed class. No idea what errors this might lead to, but it might work... Maybe.