Source Code Project Mantis - FSSCP
View Issue Details
0002134FSSCPSEXPspublic2010-02-20 18:322011-09-23 15:08
Assigned ToThe_E 
PlatformOSOS Version
Product Version3.6.11 
Target VersionFixed in Version3.6.13 
Summary0002134: set-fov SEXP at beginning of mission has no effect
DescriptionIf a set-fov SEXP is used at the beginning of a mission, it will not change the mission's FOV.
Additional InformationIt consistently does this with ( true ), ( has-time-elapsed 0 ), ( has-arrived-delay 0 "Alpha 1" ), basically anything that puts it at the beginning of the mission.
TagsNo tags attached.
Attached Files

2010-04-12 00:15   
I suspect that this might have to do with the default FOV being set AFTER the first round of SEXP evaluations.
2010-04-12 05:07   
Not a solution but it might be a workaround and confirm if that is the problem. Try setting a player entry delay if it's single player and using the has-arrived-delay alpha 1.
2011-09-23 03:36   
Just tested it, and this is still present in r7768. FUBAR's suggestion has no effect, the FOV is still not set.
2011-09-23 10:40   
With true and has-time-elapsed 0, this now works. I tracked it to sexp_set_fov() getting a NULL camera pointer (because the game runs sexp evaluation code before it does rendering setup stuff, as explained by The_E, so there's no camera for it to use). A quick fix by The_E solved this issue. Still no luck with has-arrived-delay on the player, as in that case sexp_set_fov() never actually gets called.
2011-09-23 15:08   
Committed in revision 7777 (wooo)

Issue History
2010-02-20 18:32blowfishNew Issue
2010-04-12 00:15blowfishNote Added: 0011875
2010-04-12 05:07FUBAR-BDHRNote Added: 0011876
2011-09-23 03:36CommanderDJNote Added: 0012845
2011-09-23 10:40CommanderDJNote Added: 0012847
2011-09-23 15:08The_ENote Added: 0012848
2011-09-23 15:08The_EStatusnew => resolved
2011-09-23 15:08The_EFixed in Version => 3.6.13
2011-09-23 15:08The_EResolutionopen => fixed
2011-09-23 15:08The_EAssigned To => The_E