View Issue Details

IDProjectCategoryView StatusLast Update
0002630FSSCPSEXPspublic2012-05-02 11:37
ReporterYarn Assigned ToGoober5000  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSWindows 7 
Product Version3.6.14 RC5 
Summary0002630: Distance operator broken in wing arrival cues
DescriptionWhenever the distance operator is part of a wing arrival cue, contains a waypoint, and is executed at the beginning of a mission, its return value is capped at 500. This can cause wings to be present at the beginning of missions when they shouldn't. An example of this can be found in Sync's "To Run from Death...": the enemy bombers are supposed to arrive later on, not at the beginning.
Steps To ReproduceThe attached mission demonstrates this bug. The Leviathan in the mission will go to a waypoint that is 3,000 meters away. Nephilim 1, which is part of a wing, is supposed to arrive when the distance between the Leviathan and its waypoint is less than 501 meters. However, because of this bug, the Nephilim is present when the mission starts.
Additional InformationThis bug was introduced in the August 30, 2011 Nightly build.
TagsNo tags attached.

Activities

Yarn

2012-03-12 23:13

developer  

WaypointTest.zip (1,801 bytes)

Goober5000

2012-04-09 00:48

administrator   ~0013461

The most likely culprit would be my dynamicization of waypoints, which was committed that day.

Goober5000

2012-04-13 06:59

administrator   ~0013462

The true problem had nothing to do with capping anything at 500, or even the distance sexp itself. It was merely the sexp system attempting to refer to a waypoint before it was created in-game, and thereby getting (0, 0, 0).

Good narrowing of the date of addition though, as well as providing a test mission. Both of those really saved me time hunting down the cause.

Goober5000

2012-04-13 07:00

administrator   ~0013463

Fix committed to trunk@8670.

niffiwan

2012-05-02 11:37

developer   ~0013508

Fix committed to fs2_open_3_6_14@8736.

Related Changesets

fs2open: trunk r8670

2012-04-13 03:01

Goober5000


Ported: N/A

Details Diff
fix for Mantis 0002630
(LUA is not mentioned, but the problem might affect that too)
Affected Issues
0002630
mod - /trunk/fs2_open/code/parse/sexp.cpp Diff File
mod - /trunk/fs2_open/code/parse/lua.cpp Diff File

fs2open: fs2_open_3_6_14 r8736

2012-05-02 07:38

niffiwan


Ported: N/A

Details Diff
Backport: Trunk r8670; fix for Mantis 0002630
(LUA is not mentioned, but the problem might affect that too)
Affected Issues
0002630
mod - /branches/fs2_open_3_6_14/code/parse/sexp.cpp Diff File
mod - /branches/fs2_open_3_6_14/code/parse/lua.cpp Diff File

Issue History

Date Modified Username Field Change
2012-03-12 23:13 Yarn New Issue
2012-03-12 23:13 Yarn File Added: WaypointTest.zip
2012-04-09 00:48 Goober5000 Assigned To => Goober5000
2012-04-09 00:48 Goober5000 Status new => assigned
2012-04-09 00:48 Goober5000 Note Added: 0013461
2012-04-13 06:59 Goober5000 Note Added: 0013462
2012-04-13 07:00 Goober5000 Changeset attached => fs2open trunk r8670
2012-04-13 07:00 Goober5000 Note Added: 0013463
2012-04-13 07:00 Goober5000 Status assigned => resolved
2012-04-13 07:00 Goober5000 Resolution open => fixed
2012-05-02 11:37 niffiwan Changeset attached => fs2open fs2_open_3_6_14 r8736
2012-05-02 11:37 niffiwan Note Added: 0013508