View Issue Details

IDProjectCategoryView StatusLast Update
0003056FSSCPgameplaypublic2014-06-26 08:03
Reporterniffiwan Assigned Toniffiwan  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.7.2 RC3 
Target Version3.7.2 
Summary0003056: Redalert changes cause ships to have unintended loadout in Derelict mission 5
DescriptionPer the conversation in the Derelict 3.7.0 release thread:
http://www.hard-light.net/forums/index.php?topic=85745

When playing the mission from the campaign, the player ship starts with a loadout of:

1x Subach (primary bank 1, 2 firepoints)
40x tempest (secondary bank 1, normal capacity 80)
40x tempest (secondary bank 2, normal capacity 80)
160x tempest (secondary bank 3, normal capacity 160)

The expected loadout (e.g. in 3.7.0) is:
1x Subach (primary bank 1, 2 firepoints)
40x tempest (secondary bank 1, normal capacity 80)
40x tempest (secondary bank 2, normal capacity 80)
EMPTY (secondary bank 3, normal capacity 160)


In addition, if you call in a support ship to reload, it'll add a Subach to the 2nd primary bank, as well as refilling the secondary banks. This behaviour needs to be confirmed in 3.7.0.
Steps To ReproducePlaying Derelict mission 5 from the campaign (not sure if the same issue occurs when playing from the techroom)
Additional Information(need to check the svn logs to see what may have caused the change)
TagsNo tags attached.

Relationships

related to 0002907 resolvedniffiwan Unexpected behaviour in Red Alert missions when secondary bank is empty 

Activities

niffiwan

2014-06-11 09:38

developer   ~0015840

I need to see what happens when I revert r9764 as these two issues look extremely similar.

niffiwan

2014-06-15 03:24

developer   ~0015873

Last edited: 2014-06-15 05:08

My testing so far suggests this issue was introduced prior to 3.7.0

edit: it may actually predate 3.6.10? Anyway, I have a fix that only stores the ships number of banks rather than all banks where the weapon idx is not -1. I just want to do a bit more checking of why the bank idx is not set to -1 when you have a ship with a deliberately empty bank, e.g. like in Derelict where the bank is emptied and "Scramble" is used to prevent the player from changing it, of if a player deliberately leaves a bank empty (not sure why you'd want to do this...).

AND, I suspect that the current fix won't prevent support ships from re-adding banks.

niffiwan

2014-06-19 10:22

developer   ~0015896

Well look at that; a support ship re-adding primaries is a *feature* :)

// AL 10-31-97: Add missing primary weapons to the ship. This is required since designers
// want to have ships that start with no primaries, but can get them through
// rearm/repair

So I'm going to leave that one alone - if you really don't want primaries re-added, don't add a support ship to the mission :)


Patch is here: https://github.com/niffiwan/fs2open.github.com/commit/8fccd77725834144016c7ce64429928301f77685

Goober5000

2014-06-26 01:53

administrator   ~0015915

So in other words, this ticket describes two issues, and the patch is for the first of those two?

niffiwan

2014-06-26 02:06

developer   ~0015916

Yes, that's correct. The 2nd issue (support ship adding missing primaries) seems to be a deliberate retail feature. Maybe it could be tweaked to give more control to a FREDer but I think that's outside the scope of this bugfix.

Goober5000

2014-06-26 04:45

administrator   ~0015918

Right. Okay, the first fix looks straightforward enough, so go ahead and commit+resolve. :)

niffiwan

2014-06-26 08:03

developer   ~0015919

Fix committed to trunk@10840.

Related Changesets

fs2open: trunk r10840

2014-06-26 04:23

niffiwan


Ported: N/A

Details Diff
Fix mantis 3056

In redalert loadout, only store the current number of banks in use by
ships, not all banks where the weapon idx is -1
Affected Issues
0003056
mod - /trunk/fs2_open/code/missionui/redalert.cpp Diff File

Issue History

Date Modified Username Field Change
2014-06-11 03:42 niffiwan New Issue
2014-06-11 09:36 niffiwan Relationship added related to 0002907
2014-06-11 09:38 niffiwan Note Added: 0015840
2014-06-12 08:37 niffiwan Assigned To => niffiwan
2014-06-12 08:37 niffiwan Status new => assigned
2014-06-15 03:24 niffiwan Note Added: 0015873
2014-06-15 05:07 niffiwan Note Edited: 0015873
2014-06-15 05:08 niffiwan Note Edited: 0015873
2014-06-19 10:22 niffiwan Note Added: 0015896
2014-06-19 10:22 niffiwan Status assigned => code review
2014-06-26 01:53 Goober5000 Note Added: 0015915
2014-06-26 02:06 niffiwan Note Added: 0015916
2014-06-26 04:45 Goober5000 Note Added: 0015918
2014-06-26 08:03 niffiwan Changeset attached => fs2open trunk r10840
2014-06-26 08:03 niffiwan Note Added: 0015919
2014-06-26 08:03 niffiwan Status code review => resolved
2014-06-26 08:03 niffiwan Resolution open => fixed