PDA

View Full Version : Help with removing animation files


reniusa
18th Nov 2006, 5:06 PM
Hi everyone!

I'm having difficulties on removing some animations from an item cloned from the espresso machine.

What I want it to do:
Sim walks over to tea set; Sim takes tea or serving tray; Sim drinks tea (single serving or from serving tray).

What I've been able to make it do:
Sim walks over to tea set; Sim takes tea or serving tray; the animation ends. :(

Would someone mind having a look and seeing what needs to be done? I'd appreciate it if you could simply explain what I'm doing wrong. I don't plan on doing much in the way of animation editing, but this object has me stumped. I'm including both files: the reference file has all the BHAV's intact from the espresso machine, and the teaservingset is my attempted modified file.

Thanks so much,
Reni

Echo
18th Nov 2006, 10:58 PM
Well the first thing to try would be to open up the "Interaction - Make/Serve Espresso" BHAV, then scan down to "Standard Exit" (node F) and set its True Target to "True". That way you don't have to mess with any animations at all, once the sim finishes serving the interaction should just finish.

reniusa
18th Nov 2006, 11:29 PM
Sorry if I'm misunderstanding you or if I didn't explain properly...

I want the Sim to serve espresso or have an espresso, but I don't want the animations from the espresso machine to play. Of course the menu's will be changed to say 'serve tea' or 'have tea'.

It doesn't look right having some tea and doing invisible miming of espresso animations. :lol: Or even worse, hearing the 'whooshing' of the foam maker...although I could probably live with the 'beep' when they start the machine.

I really, really tried to understand how to modify BHAVs, but the amount of programming know-how was a bit too much for me. :blink:

Thanks for taking the time to offer some advice though. :)

Reni

Echo
19th Nov 2006, 4:51 AM
Ah, okay, sorry I misunderstood. That's a bit more complicated, but it looks like you were on roughly the right track. I used your reference package and tried pulling all the "animate sim" and "animate object" calls from the make/serve code. The problem with this object though, is that a lot of its behavior is actually run in sync with particular sim animations through event BHAVs... If you just delete the animate calls, those things won't happen. That makes it a real mess to get working. I spent about half an hour playing around with it, but it still doesn't work right.

Unfortunately, the coffee maker is a very complicated object... And believe it or not, a lot of the time it is easier to code a functional object out of a statue than it is to navigate and change the code of an existing item to suit a similar but different purpose. I think this might one of those cases:
- Go to relative position
- Run whatever tea related animations you want
- Spawn coffee cup in hand
- Push/run drink interaction.

:)