Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Problem with head attachment  (Read 5867 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Problem with head attachment
« on: August 25, 2008, 09:05:53 AM »

Hi!

Please help me with this problem, because its driving me crazy  :-[

I´ve got this character and attached a head to it for separate facial animation.

This is part of the main character body script.
Code: [Select]

global Head_Attached;

actor.AddAttachment("actors\Barkeeper\Barkeeper.x","Head", "Bip01_Neck");
Head_Attached=actor.GetAttachment("Head");
Head_Attached.Scale = 100;

Head_Attached.DrawBackfaces = true;
Head_Attached.PlayAnimAsync("idle");

This all works well in some scenes, in others the head is out of place (see image).

http://img246.imageshack.us/my.php?image=problempi5.jpg

What´s going on there?

Bye,
Oli
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with head attachment
« Reply #1 on: August 25, 2008, 09:24:44 AM »

Looks like a bug to me. What's different about the other scene? Scrolling? Viewport? Anything you can think of?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Problem with head attachment
« Reply #2 on: August 25, 2008, 09:43:58 AM »

It´s really strange. I start in room "A", and everything is fine. I wonder about, got to other scenes "B","C", still everything okay. Then I enter scene "D" and my character "loses his head". When I go back to the other scenes that had worked before, the character still has the problem.

No scrolling, no other settings.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with head attachment
« Reply #3 on: August 25, 2008, 09:48:33 AM »

Could it be that the head starts playing some animation at one point, and the animation actually moves the attachment?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Problem with head attachment
« Reply #4 on: August 25, 2008, 10:56:33 AM »

No, the head animation stays in its place and doesn´t move the head. Anyway, if that would be the case, it would happen in every scene, but strangely enough it only happens in a few.
Logged

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Problem with head attachment
« Reply #5 on: August 25, 2008, 01:50:22 PM »

Can´t find out what´s wrong  ???

I´ve used the Head_Attached.PosX,PosY and PosZ in the actor script file to move the attachment to the right place, but this information gets lost/overridden by something else in some scenes. This happens straight away in these scenes, so it can´t be a moving animation.

EDIT: I also tried altering the position of the head in the X file. This works in the scenes that are okay, in the "bad" scenes it doesn´t change anything... ::slug
« Last Edit: August 25, 2008, 02:04:16 PM by FogGobbler »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with head attachment
« Reply #6 on: August 25, 2008, 02:39:44 PM »

Well, I'm out of ideas. I guess I'm gonna need some reproduction code to test it...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Problem with head attachment
« Reply #7 on: August 26, 2008, 05:54:41 AM »

Good morning, Mnemonic!

Could I send you some parts of the game to show you the problem, and would you be so kind to find out what´s wrong?

Bye,
Oli
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with head attachment
« Reply #8 on: August 26, 2008, 07:02:53 AM »

Yes, please. A download link is preferred, if possible, for a project that can be actually run and which reproduces the issue.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problem with head attachment
« Reply #9 on: August 26, 2008, 05:22:51 PM »

Ok, it's a bug indeed. But luckily it's easy to workaround. Just add:

  Head_Attached.DropToFloor = false;

where you're setting the head attachment position. Attachments really should NOT drop to floor :) It will be fixed in the next WME release. Thanks for pointing that out.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Problem with head attachment
« Reply #10 on: August 27, 2008, 06:14:05 AM »

Thank You for testing and finding the workaround  :)  ::thumbup
Logged
 

Page created in 0.038 seconds with 23 queries.