Author Topic: [Solved] Hat Problems  (Read 54229 times)

Hey guys, I'm making a hat, just as a test. For some reason it's always too big, and mounted in the wrong place.

My mount code:
function servercmdCook(%client)
{
   %client.chatMessage("\c3It is time.... to cook!");
   %client.player.unmountImage(2);
   %client.player.mountImage(ChefHatImage, 2);
}
datablock shapeBaseImageData(ChefHatImage)
{
   shapeFile = "./models/chefHat.dts";
   mountPoint = $headSlot;
   emap = false;
   mountPoint = 1;
   rotation = eulerToMatrix("0 0 0");
    offset = "0 0 0";
    eyeOffset = 0;
    scale = "0 0 0";
     offset = "0 0 0";
     doColorShift = false;
     colorShiftColor = "50.000 50.000 50.000 255.000";
};


Pictures



When I try to mount it to 5, or $headSlot, it doesn't do anything. The other hat add-ons I found always end up mounting to slot 2. No matter how small I scale it, it doesn't change actual size. Edit: Wait, nevermind, that's just a syntax error blocking the code from updating. Now it's like this:



How do I make it smaller? Do I have to redo the .dts file? Edit: Now for some reason it doesn't pop up at all :(. Edit: Ok, I got it to go back somehow but now I'm mounting it to slot 2, but it's on the head for some reason. Weird. Still like the most recent picture.

Current Code:
function servercmdCook(%client)
{
   %client.chatMessage("\c3It is time.... to cook!");
   %client.player.unmountImage(5);
   %client.player.mountImage(ChefHatImage, 2);
}
datablock shapeBaseImageData(ChefHatImage)
{
   shapeFile = "./models/chefHat.dts";
   mountPoint = $headSlot;
   emap = false;
   rotation = eulerToMatrix("0 0 0");
    offset = "0 0 0";
    eyeOffset = 0;
    scale = "1 1 1";
     offset = "0 0 0";
     doColorShift = false;
     colorShiftColor = "50.000 50.000 50.000 255.000";
};


Edit: Physically making it smaller in blender didn't work either. Help :(
Edit: So it looks like you can't scale images. Why is the model not shrinking down when I change it in the software, though?
Solved!: I had to apply rotation and scale :/
« Last Edit: August 05, 2015, 01:22:48 PM by Johnny Blockhead »

i really wish someone would make a properly scaled player model for stuff like this

i really wish someone would make a properly scaled player model for stuff like this
Are THESE not properly scaled?


no they are not
Well it they work for me...
I guess they are scaled right then.

I was using that to model the stuff that I was making, not scaled correctly at all.


Would you like a headmount model?

yes that would be great

if you have an actual player reference that would be even better



wow i cant believe i missed this. thanks a ton
Only .3ds format? :c

You can get better then that by using ports blender .dts importer and exporter... Import the real thing, I have done this already and it works great.

You can get better then that by using ports blender .dts importer and exporter... Import the real thing, I have done this already and it works great.

Sure, but good luck guessing the head mount node as center.