View Issue Details

IDProjectCategoryView StatusLast Update
0003554The Dark ModObjectivespublic14.09.2013 16:17
Reportergrayman Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 2.00 
Target VersionTDM 2.00Fixed in VersionTDM 2.00 
Summary0003554: atdm:target_setobjective_component_state doesn't work
Descriptionatdm:target_setobjective_component_state uses the spawnarg

"obj_idN" "O,C"

where O = objective number
and C = component number

The code doesn't correctly parse the string "O,C", and ends up setting both the objective number and component number to the objective number.

In my test, the string "6,2", which is supposed to change the state of the second component of the sixth objective, instead tries to change the state of the sixth component of the sixth objective, which doesn't exist, so the attempt fails.

This entity has not yet been used in a mission, and though it's been broken forever, and this is not a 2.0-specific problem, I need it for Home Again, so it needs to be fixed in 2.00.
TagsNo tags attached.

Activities

grayman

grayman

14.09.2013 16:17

viewer   ~0006178

Split the objective/component spawnarg string at the comma, creating two substrings, one for objective number and one for component number.

Rev. 5886:

Target.cpp

Issue History

Date Modified Username Field Change
14.09.2013 02:55 grayman New Issue
14.09.2013 02:55 grayman Status new => assigned
14.09.2013 02:55 grayman Assigned To => grayman
14.09.2013 03:00 grayman Description Updated
14.09.2013 16:17 grayman Note Added: 0006178
14.09.2013 16:17 grayman Status assigned => resolved
14.09.2013 16:17 grayman Resolution open => fixed
14.09.2013 16:17 grayman Fixed in Version => TDM 2.00