View Issue Details

IDProjectCategoryView StatusLast Update
0002337FSSCPSEXPspublic2010-12-09 23:30
ReporterTopAce Assigned ToFUBAR-BDHR  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.13 
Fixed in Version3.6.13 
Summary0002337: lock-rotating-subsystem affects more than it should
DescriptionThe lock-rotating-subsystem SEXP affects an entire class, not just the single ship that's set in the mission event. Tried it with Mjolnirs, Levs, and Anukets.

See the attached test mission. Note that there's an Anuket as well, but only the Mjolnirs' subsystem rotation stops.
Additional InformationTried 3.6.13 nightlies, see this thread http://www.hard-light.net/forums/index.php?topic=72610.0 for fs log.
TagsNo tags attached.

Activities

2010-11-13 15:11

 

lockrotsubsystem.fs2 (5,655 bytes)

Goober5000

2010-11-14 02:16

administrator   ~0012460

Last edited: 2010-11-14 02:16

Eugh. This has actually been around ever since the sexps were first added, except nobody noticed it because it was only used for a Knossos or an installation or something where only one ship appeared in a mission.

There will need to be flags added to the ship-specific model instances in order to change the rotation as-needed. (This includes the sexps that change the rotation speed too.)

FUBAR-BDHR

2010-11-14 04:00

developer   ~0012464

I can probably take a look at that in a few days unless someone beats me to it. Sound's like the data is either not being copied to the ship or it is and the code is looking at the model or ship_info when it shouldn't.

I think I've seen this before as well but as I was experimenting with things you shouldn't do or already broke the code I never bothered to check why.

Echelon9

2010-11-14 09:35

developer   ~0012465

Also noted that if you disable the Mjolnirs' via lock-rotating-subsystem and then restart the mission using the "Esc" menu, they will be disabled when the mission restarts.

FUBAR-BDHR

2010-11-16 04:29

developer   ~0012466

Patch: http://fubar5.fubar.org/fs2netd/mantis2337-rotationfix.patch
Test mission: http://fubar5.fubar.org/fs2netd/0rotate.fs2
SSE2 builds: http://fubar5.fubar.org/fs2netd/FS2_Open_2337fix.rar

Echelon9

2010-11-16 08:23

developer   ~0012467

Looks good.

FUBAR-BDHR

2010-11-16 08:26

developer   ~0012468

But how's it sound?

Goob brought up that question and I had the music on too loud to notice.

Echelon9

2010-11-16 08:33

developer   ~0012469

As Goob thought, rotation sounds are still active after locking....

FUBAR-BDHR

2010-11-16 09:07

developer   ~0012470

Yea figured it was a bit too easy. I'll take another look tomorrow. I just hope it's not tied into the ship_subsys->submodel_info_1 area. If so I have a feeling things are going to get really messy trying to figure out what should come from the model, ship_info and from the ship.

FUBAR-BDHR

2010-11-17 10:09

developer   ~0012471

I can not reproduce the sound issue. Works just fine. I updated the test mission with the ships farther apart and you now have to hit L to trigger the events. You will also need to modify the Faustus table entry with

$RotationSnd: 185

on the science01a-solar1 subsystem.

FUBAR-BDHR

2010-12-09 23:30

developer   ~0012530

Fixed in revision 6820

Issue History

Date Modified Username Field Change
2010-11-13 15:11 TopAce New Issue
2010-11-13 15:11 TopAce File Added: lockrotsubsystem.fs2
2010-11-14 02:16 Goober5000 Note Added: 0012460
2010-11-14 02:16 Goober5000 Note Edited: 0012460
2010-11-14 04:00 FUBAR-BDHR Note Added: 0012464
2010-11-14 09:35 Echelon9 Note Added: 0012465
2010-11-16 02:23 FUBAR-BDHR Status new => assigned
2010-11-16 02:23 FUBAR-BDHR Assigned To => FUBAR-BDHR
2010-11-16 04:29 FUBAR-BDHR Note Added: 0012466
2010-11-16 08:23 Echelon9 Note Added: 0012467
2010-11-16 08:26 FUBAR-BDHR Note Added: 0012468
2010-11-16 08:33 Echelon9 Note Added: 0012469
2010-11-16 09:07 FUBAR-BDHR Note Added: 0012470
2010-11-17 10:09 FUBAR-BDHR Note Added: 0012471
2010-12-09 23:30 FUBAR-BDHR Note Added: 0012530
2010-12-09 23:30 FUBAR-BDHR Status assigned => resolved
2010-12-09 23:30 FUBAR-BDHR Fixed in Version => 3.6.13
2010-12-09 23:30 FUBAR-BDHR Resolution open => fixed