View Issue Details

IDProjectCategoryView StatusLast Update
0003080FSSCPtablespublic2014-07-30 18:32
ReporterMjnMixael Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS VersionWin7
Product Version3.7.1 
Target Version3.7.2 
Summary0003080: Commit 10961 Broke some Mainhall table options
DescriptionSomehow commit 10961 moved the code for +Door mas value, +Door action, and +Door description above +Num Door Animations.. which if you are familiar with the mainhall table, will not work.

Dunno how they got moved, but I ran into the same issues when patching Mantis 3073 with Mantis 3071.. the patches work together, but the ACT of patching them caused weird things that I had to manually fix.
Additional InformationThis patch, if I've created the patch correctly, resolves the issue by moving lines 2340-2406 below line 2440.
TagsNo tags attached.

Activities

MjnMixael

2014-07-30 13:23

manager  

mainhallmenufix.patch (2,846 bytes)   
Index: code/menuui/mainhallmenu.cpp
===================================================================
--- code/menuui/mainhallmenu.cpp	(revision 10961)
+++ code/menuui/mainhallmenu.cpp	(working copy)
@@ -2337,6 +2337,40 @@
 
 			region_info_init(*m);
 			
+			// door animations
+			required_string("+Num Door Animations:");
+			stuff_int(&m->num_door_animations);
+
+			// initialise the door anim vectors
+			door_anim_init(*m);
+
+			for (idx = 0; idx < m->num_door_animations; idx++) {
+				// door name
+				required_string("+Door anim:");
+				stuff_string(temp_string, F_NAME, MAX_FILENAME_LEN);
+				m->door_anim_name.at(idx) = (SCP_string)temp_string;
+			}
+
+			for (idx = 0; idx < m->num_door_animations; idx++) {
+				// door coords
+				required_string("+Door coords:");
+				stuff_int(&m->door_anim_coords.at(idx).at(0));
+				stuff_int(&m->door_anim_coords.at(idx).at(1));
+				stuff_int(&m->door_anim_coords.at(idx).at(2));
+				stuff_int(&m->door_anim_coords.at(idx).at(3));
+			}
+
+			for (idx = 0; idx < m->num_door_animations; idx++) {
+				// door open and close sounds
+				parse_sound_list("+Door sounds:", m->door_sounds.at(idx), "+Door sounds:", (parse_sound_flags)(PARSE_SOUND_INTERFACE_SOUND | PARSE_SOUND_SCP_SOUND_LIST));
+			}
+
+			for (idx = 0; idx < m->num_door_animations; idx++) {
+				// door pan value
+				required_string("+Door pan:");
+				stuff_float(&m->door_sound_pan[idx]);
+			}
+
 			int mask;
 			for (idx = 0; optional_string("+Door mask value:"); idx++) {
 				// door mask
@@ -2405,40 +2439,6 @@
 				}
 			}
 
-			// door animations
-			required_string("+Num Door Animations:");
-			stuff_int(&m->num_door_animations);
-
-			// initialise the door anim vectors
-			door_anim_init(*m);
-
-			for (idx = 0; idx < m->num_door_animations; idx++) {
-				// door name
-				required_string("+Door anim:");
-				stuff_string(temp_string, F_NAME, MAX_FILENAME_LEN);
-				m->door_anim_name.at(idx) = (SCP_string)temp_string;
-			}
-
-			for (idx = 0; idx < m->num_door_animations; idx++) {
-				// door coords
-				required_string("+Door coords:");
-				stuff_int(&m->door_anim_coords.at(idx).at(0));
-				stuff_int(&m->door_anim_coords.at(idx).at(1));
-				stuff_int(&m->door_anim_coords.at(idx).at(2));
-				stuff_int(&m->door_anim_coords.at(idx).at(3));
-			}
-
-			for (idx = 0; idx < m->num_door_animations; idx++) {
-				// door open and close sounds
-				parse_sound_list("+Door sounds:", m->door_sounds.at(idx), "+Door sounds:", (parse_sound_flags)(PARSE_SOUND_INTERFACE_SOUND | PARSE_SOUND_SCP_SOUND_LIST));
-			}
-
-			for (idx = 0; idx < m->num_door_animations; idx++) {
-				// door pan value
-				required_string("+Door pan:");
-				stuff_float(&m->door_sound_pan[idx]);
-			}
-
 			// font for tooltips and other text
 			if (optional_string("+Font:")) {
 				stuff_int(&m->font);
mainhallmenufix.patch (2,846 bytes)   

MageKing17

2014-07-30 16:44

developer   ~0016157

r10961 did not do this; r10941 did (the commit of Mantis 3071), and that matches the patch file attached to that issue.

"which if you are familiar with the mainhall table, will not work." I am not familiar with the mainhall table, but I don't see why you can't just put +Door mask value, +Door action, and +Door description above +Num Door Animations, since the former group does not depend on information provided by the latter, as far as I can tell.

MjnMixael

2014-07-30 18:08

manager   ~0016158

Last edited: 2014-07-30 18:09

If you don't believe me, then test it.

Before this patch, the table would not parse correctly.

The_E

2014-07-30 18:32

administrator   ~0016159

Fix committed to trunk@10962.

Related Changesets

fs2open: trunk r10962

2014-07-30 14:59

The_E


Ported: N/A

Details Diff
Fix for Mantis 3080 from MjnMixael: Fix for inadvertently changed parsing order for mainhall tables.
Affected Issues
0003080
mod - /trunk/fs2_open/code/menuui/mainhallmenu.cpp Diff File

Issue History

Date Modified Username Field Change
2014-07-30 13:23 MjnMixael New Issue
2014-07-30 13:23 MjnMixael File Added: mainhallmenufix.patch
2014-07-30 16:44 MageKing17 Note Added: 0016157
2014-07-30 18:08 MjnMixael Note Added: 0016158
2014-07-30 18:09 MjnMixael Note Edited: 0016158
2014-07-30 18:32 The_E Changeset attached => fs2open trunk r10962
2014-07-30 18:32 The_E Note Added: 0016159
2014-07-30 18:32 The_E Status new => resolved
2014-07-30 18:32 The_E Resolution open => fixed