Source Code Project Mantis - FSSCP
View Issue Details
0001867FSSCPFREDpublic2009-01-08 21:402009-01-24 17:41
Assigned Tokarajorma 
PlatformOSOS Version
Product Version3.6.9 
Target VersionFixed in Version3.6.10 
Summary0001867: String-equals doesn't work with <argument>
DescriptionBasically that's it. When-argument with a when string-equals comparing <argument> to a string doesn't work. If I store <argument> to a variable and use that in the comparison it works.
Additional Information3.6.10 r5032 and last nights (5034 I think)

Mission is a TBP mission. Yes it's that same mission again. Anyway events Explosions1 and Explosions2 are where it happens.
TagsNo tags attached.
Attached Files? FUBAR_M04f.fs2 (147,023) 2009-01-08 21:40
? 1867.fs2 (25,866) 2009-01-19 23:34

2009-01-19 19:53   
If TBP still has those debug warnings, I'm not about to click through all of them to test this out. However, I have a hunch. Try opening the mission in Notepad and removing the quotation marks from around <argument>.
2009-01-19 22:33   
Well removing the "" from those 2 <argument> statements didn't cause a crash they still didn't work.

I do see this in the log file both in the original and with the "" removed. Not something I usually see.

ASSERTION: "!(Sexp_replacement_arguments.empty())" at sexp.cpp:20082
2009-01-19 22:49   
Can you reproduce this on a non-TBP mission?
2009-01-19 23:37   
I stripped out all the TBP stuff. You'll have a lot of Ulysses now but it is now FS2 compatible. If the outpost or the platform Ulysses don't self destruct after the set of explosions the comparison didn't work.
2009-01-20 02:48   
(Last edited: 2009-01-20 02:56)
Hang on a sec. You see the assertions in the log file but it doesn't actually stop with one?

Anyway, I'll look at this tonight. Especially since that particular problem is one of my making.

2009-01-23 17:15   
Fixored (I think). Test build available from here.
2009-01-23 19:40   
Looks like it worked.

Issue History
2009-01-08 21:40FUBAR-BDHRNew Issue
2009-01-08 21:40FUBAR-BDHRFile Added: FUBAR_M04f.fs2
2009-01-09 03:26karajormaStatusnew => assigned
2009-01-09 03:26karajormaAssigned To => karajorma
2009-01-19 19:53Goober5000Note Added: 0010547
2009-01-19 22:33FUBAR-BDHRNote Added: 0010558
2009-01-19 22:49Goober5000Note Added: 0010561
2009-01-19 23:34FUBAR-BDHRFile Added: 1867.fs2
2009-01-19 23:37FUBAR-BDHRNote Added: 0010565
2009-01-20 02:48karajormaNote Added: 0010581
2009-01-20 02:56karajormaNote Edited: 0010581
2009-01-23 17:15karajormaNote Added: 0010594
2009-01-23 19:40FUBAR-BDHRNote Added: 0010596
2009-01-24 17:41karajormaStatusassigned => resolved
2009-01-24 17:41karajormaFixed in Version => 3.6.10
2009-01-24 17:41karajormaResolutionopen => fixed