View Issue Details

IDProjectCategoryView StatusLast Update
0002458FSSCPscriptingpublic2012-02-14 00:45
Reporterm_m Assigned ToValathil  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.13 
Summary0002458: Scripting function gr.getVectorFromCoords returnes incorrect results when a ship is targeted
DescriptionWhen calling gr.getVectorFromCoords inside a lua script and a ship is targeted then this function returns an incorrect vector that is dependent on this ship as when the cursor is centered on the screen the vector will also point to the center of the object.
This may be a general problem with g3_point_to_vec as the same problem also happens when calling this function directly.
Additional InformationI attached a test script that should reproduce the described problem.
TagsNo tags attached.

Activities

2011-06-22 09:06

 

Valathil

2012-01-30 09:29

developer   ~0013194

Fix committed to trunk@8406.

Zacam

2012-02-14 00:45

administrator   ~0013307

Fix committed to fs2_open_3_6_14@8481.

Related Changesets

fs2open: trunk r8406

2012-01-30 04:29

Valathil


Ported: N/A

Details Diff
Fix for Mantis 2458: Initialize stuff before calling the point_to_vec function so it has the right matrices for calculation, also fixed scripted sphere drawing Affected Issues
0002458
mod - /trunk/fs2_open/code/parse/lua.cpp Diff File

fs2open: fs2_open_3_6_14 r8481

2012-02-13 19:46

Zacam


Ported: N/A

Details Diff
Backport: Trunk r8406; Fix for Mantis 2458: Initialize stuff before calling the point_to_vec function so it has the right matrices for calculation, also fixed scripted sphere drawing Affected Issues
0002458
mod - /branches/fs2_open_3_6_14/code/parse/lua.cpp Diff File

Issue History

Date Modified Username Field Change
2011-06-22 09:06 m_m New Issue
2011-06-22 09:06 m_m File Added: screenVectorTest-sct.tbm
2012-01-30 09:17 Valathil File Added: lua.cpp.patch
2012-01-30 09:26 Valathil File Deleted: lua.cpp.patch
2012-01-30 09:28 Valathil Assigned To => Valathil
2012-01-30 09:28 Valathil Status new => assigned
2012-01-30 09:29 Valathil Changeset attached => fs2open trunk r8406
2012-01-30 09:29 Valathil Note Added: 0013194
2012-01-30 09:29 Valathil Status assigned => resolved
2012-01-30 09:29 Valathil Resolution open => fixed
2012-02-14 00:45 Zacam Changeset attached => fs2open fs2_open_3_6_14 r8481
2012-02-14 00:45 Zacam Note Added: 0013307