Missing animations: without 'test_'.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Missing animations: without 'test_'.

Post by Angex »

I was working through the Single player maps without 'test_' tutorial, trying to add a grenadier. I thought I had it working, he was listed in MoHradiant and in-game he strafed around trying to shoot me (with an accuracy of 1, hehe). But when I went to kill him for a third or so time, I got this error:

^~^~^Srcipt Error : unknown animation 'unarmed_pain_kneestodeath' in 'models\human\prague_german_panzer_grenadier.tik'

It keeps happening every time he's crouching and dies, or fallen onto his hands and knees then dies, I though this might be becuase of the "kneestodeath" part. Anyway when I looked through the tik's I found a comment which said "Death", but I couldn't find any aliases for "kneestodeath".

I'm assuming I need to make an entry like below, but don't know how, any ideas ?

unarmed_pain_kneestodeath ? ? ? ? deaths/animationName
? {
? ? ? client
? ? ? ?{
? ? ? ? ? ? InformationI don't understand.
? ? ? ?}
? }


[EDIT]
I just realised this should really go in the scripting section.
[/EDIT]
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Well I waded through the masses of sound errors in the console, I think I found some information that might help figure out whats up.

TIKI_load TIKI file : def file models/human/prague_generic_human.tik has wrong header (setup should be TIKI)

RE_RegisteredModel : Registration failed for 'models/human/prague_generic_human.tik'

self motionanim(self.weapongroup + "_pain_kneestodeath") (anim/pain.scr, 405)
self^
^~^~^Script Error : Uknown animation 'unarmed_pain_kneestodeath' in 'models/human/prague_generic_human.tik'
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm interesting to say the least. Don't have the files here but sounds like I have to look through them deeply.

I suppose you have a line 'TIKI' on top of your TIKI file?
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I didn't have 'TIKI' in the header for the models/human/prague_generic_human.tik, but when I added it in, I got another error, saying there was an error on line 1, skipping line, however it makes no difference.

Its wierd how only certain animations work, you would expect none to work if there was an error in the header.

Are there any sample files for the tutorial which I could compare ?
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

After looking through the pak0.pk3 I thought the problem was that 'unarmed_pain_kneestodeath.skc' didn't exsist.

So I found two directories containing 'pistol_pain_kneestodeath', extracted them both, re-naming pistol with unarmed, placing the base directory in my main folder. However this didn't work it just gave me the same error.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Add this line to your generic human file:

$include models/human/animation/human_unarmed.tik
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I just figured it out myself, and was about to post the solution but it seems you did it faster then me.

Anyway thanks for your help.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I've come accross another problem, the thing is I wanted to script some dialogue using '$friendly say dfr_M1L1_add05', I have setup the animation files correctly, but I can't find the *.tik file with the sound alias in, so I can't get the sound to work.

Anyonw know where the sound aliases are stored?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's in pak0.pk3 -> ubersound/uberdialog.scr.

See ubersound work-around tutorial.
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Thank you very much (Again :D ), I'll give it a go.

One last question I didn't think of earlier, will the "waittill sounddone" work with dialogue. I've only seen it used when sounds were produced by an "entsound" method.

It just looks more proffestional that "wait x", plus that requires a bit of trial an error to see how long the sound is.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use waittill saydone for say commands 8).
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

A big bold thanks to you.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You're welcome. I hope you enjoy .map :D.
Image
Post Reply