Source Code Project Mantis - FSSCP
View Issue Details
0003101FSSCPdockingpublic2014-08-24 16:212014-08-26 00:46
Assigned ToGoober5000 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.7.5 
Summary0003101: Support Ship Can't Dock Error
DescriptionFSO throws an error when the support ship is called but the player ship doesn't have a docking point. Causes a crash on Ubuntu according to praseodym:

Can be fixed mission side, but it doesn't make logical sense to be able to call a support ship if your ship can't receive one. Better way to handle this?

Test Mission Attached. (Should be run with BP)
Steps To ReproduceCall a support ship when in the Spacesuit.
TagsNo tags attached.
Attached Files? MantisSupportShipTestMission.fs2 (4,436) 2014-08-24 16:21
log fs2_open.log (73,752) 2014-08-24 22:57
png dockerror.png (60,663) 2014-08-24 23:03

2014-08-24 21:54   
Can you attach a screenshot of the error, as well as your fs2_open.log? I'm surprised this causes a problem because FSO should accommodate this already.
2014-08-24 23:07   
Additional info, debug throws a repeating warning when the comm menu is brought up. As you can see the standard build throws the error when the support ship has jumped in.
2014-08-25 01:14   
(Last edited: 2014-08-25 01:19)
You said it throws an error, but the log has only warnings. I don't see a problem with throwing a warning here...

EDIT: Apparently reading is hard (I blame tiredness). So the constant warnings prevent you from ever trying to call the support ship in the first place? What if you use shift+R?

2014-08-25 21:52   
Debug keeps the support ship from jumping in. This should probably the target behavior (minus the warning message). Standard build allows the support ship to jump in and trigger the error.
2014-08-26 00:27   

So yes, I remembered correctly and FSO does check for this. The problem is that for optimization purposes, and because mods should disallow this situation, it only performs the check on debug mode.

A simple fix would be to perform the check in all circumstances, but this would remove the optimization. More thought is needed.
2014-08-26 00:46   
I've committed an accommodation so that release builds won't crash and debug builds will only display the warning once. But this is really a mod error and mod authors should take care that all their player-flyable ships that fly in missions where support is allowed should have support ship dockpoints.

Issue History
2014-08-24 16:21Cyborg17New Issue
2014-08-24 16:21Cyborg17Statusnew => assigned
2014-08-24 16:21Cyborg17Assigned To => Goober5000
2014-08-24 16:21Cyborg17File Added: MantisSupportShipTestMission.fs2
2014-08-24 21:54Goober5000Note Added: 0016252
2014-08-24 22:57Cyborg17File Added: fs2_open.log
2014-08-24 23:03Cyborg17File Added: dockerror.png
2014-08-24 23:07Cyborg17Note Added: 0016253
2014-08-25 01:14MageKing17Note Added: 0016254
2014-08-25 01:19MageKing17Note Edited: 0016254bug_revision_view_page.php?bugnote_id=16254#r908
2014-08-25 21:52Cyborg17Note Added: 0016259
2014-08-26 00:27Goober5000Note Added: 0016260
2014-08-26 00:44Goober5000Changeset attached => fs2open trunk r11028
2014-08-26 00:46Goober5000Note Added: 0016261
2014-08-26 00:46Goober5000Statusassigned => resolved
2014-08-26 00:46Goober5000Resolutionopen => fixed
2014-08-26 00:46Goober5000Fixed in Version => 3.7.5