View Issue Details

IDProjectCategoryView StatusLast Update
0002385The Dark ModAIpublic03.06.2011 03:56
Reportersotha_sil Assigned Toangua  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
PlatformWin32OSWindowsOS VersionXP
Product VersionTDM 1.02 
Target VersionTDM 1.03Fixed in VersionTDM 1.03 
Summary0002385: AI playing cards: some sit_down_angles unusable
DescriptionSitting AI reaches for the cards and picks them up
After the AI has stopped playing the card-pickup anim, the AI seems to play the beginning part of the stand-up -anim, but remains seated in the end.
The AI moves few units from his original position during this weirdness.
This occurs every time the the card-pickup anim is played, so after multiple repetitions the AI's is several meters away from his original position. After a while the AI is out of the map.

The above behavior occurs only when the AI has a certain sit_down_angles.
Verified angles that cause this: 200, 270, 300 (each cause this every time!)
Verified angles that work properly: 0, 90, 180 (all of these always work.)

This is rather annoying, since I don't have full control of the card players' orientation.

Springheel has investigated this further. For more info, see further information:
http://modetwo.net/darkmod/index.php?/topic/11769-ai-playing-cards/
Steps To ReproduceHave an AI with the following spawnargs ingame. Sit_down_angle is the key problem.

"classname" "atdm:ai_citywatch_lesser"
"name" "atdm_ai_townsfolk_commoner_6"
"def_attach5" "atdm:prop_cards"
"def_vocal_set" "atdm:ai_vocal_set_simpleton_guard_01"
"idle_animations_interval" "18"
"origin" "303.311 -16.058 -231"
"pos_attach5" "hand_l"
"rotation" "-0.797891 0.602802 0 -0.602802 -0.797891 0 0 0 1"
"sit_down_angle" "300"
"sitting" "1"
"skin" "commoner/default_leathergreaves"
"team" "0"
TagsNo tags attached.
Attached Files
card_problem.map (10,487 bytes)

Activities

angua

angua

30.09.2010 17:19

manager   ~0003213

AI could not finish sitting down properly since the current yaw was normalized between -180 and 180° and the two angles were never equal. sit_down_angle is also normalized by the code now.

Issue History

Date Modified Username Field Change
29.09.2010 08:37 sotha_sil New Issue
29.09.2010 08:37 sotha_sil File Added: card_problem.map
30.09.2010 14:58 angua Assigned To => angua
30.09.2010 14:58 angua Status new => assigned
30.09.2010 17:19 angua Note Added: 0003213
30.09.2010 17:19 angua Status assigned => resolved
30.09.2010 17:19 angua Resolution open => fixed
30.09.2010 19:13 tels Fixed in Version => TDM 1.03
30.09.2010 19:13 tels Target Version => TDM 1.03
03.06.2011 03:56 greebo Status resolved => closed