Author Topic: Nightly (FreeBSD): 19 May 2014 - Revision 10705  (Read 1208 times)

0 Members and 1 Guest are viewing this topic.

Offline SirKnightly

  • George or Keira?
  • 211
Nightly (FreeBSD): 19 May 2014 - Revision 10705
Here is the nightly for FreeBSD on 19 May 2014 - Revision 10705

Group: Standard
fso_Standard_20140519_r10705.tar.bz2
MD5Sum

Code: [Select]
------------------------------------------------------------------------
r10689 | niffiwan | 2014-05-13 05:41:23 -0500 (Tue, 13 May 2014) | 3 lines
Changed paths:
   M /trunk/fs2_open/code/menuui/barracks.cpp

Fix assertion when entering barracks in debug

Assert that there's one more line free, not number-of-ships lines
------------------------------------------------------------------------
r10695 | chief1983 | 2014-05-15 12:26:07 -0500 (Thu, 15 May 2014) | 1 line
Changed paths:
   M /trunk/fs2_open/configure.ac

Add some lib locations for Solaris for software installed from OpenCSW.
------------------------------------------------------------------------
r10701 | The_E | 2014-05-17 09:48:04 -0500 (Sat, 17 May 2014) | 2 lines
Changed paths:
   M /trunk/fs2_open/code/ship/ship.cpp

Checking a ship_info flag against a ship flag isn't going to work

------------------------------------------------------------------------
r10702 | The_E | 2014-05-17 11:24:23 -0500 (Sat, 17 May 2014) | 2 lines
Changed paths:
   M /trunk/fs2_open/code/ship/ship.cpp

See 10701, same issue here

------------------------------------------------------------------------
r10704 | The_E | 2014-05-17 16:15:50 -0500 (Sat, 17 May 2014) | 2 lines
Changed paths:
   M /trunk/fs2_open/code/parse/sexp.cpp

More ship flag/ship info flag confusion cleared up

------------------------------------------------------------------------
r10705 | m_m | 2014-05-18 02:03:14 -0500 (Sun, 18 May 2014) | 1 line
Changed paths:
   M /trunk/fs2_open/code/weapon/weapon.h
   M /trunk/fs2_open/code/weapon/weapons.cpp

Add support for countermeasures that will pull aspect seekers away from their previous targets.
------------------------------------------------------------------------



 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
Quote
Add support for countermeasures that will pull aspect seekers away from their previous targets.

More info please!

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
It was a feature request to make capship-launched countermeasures more effective for BP.

According to Rian's analysis, countermeasures have the following effect in retail:
The countermeasure attempts to decoy the incoming munition. If the decoy attempt succeeds:
Heatseekers alter course to chase the countermeasure.
Aspect seekers go dumbfire, and proceed along their last course at full speed.

The latter behavior is problematic for capship-launched CMs because most bombs are aspect seekers. This means that a warship can successfully CM an incoming bomb, but it will proceed along its last course and still strike the warship.

The flag should cause aspect seekers to chase flagged CMs, just as heatseekers do.

You can see the desired behavior by opening the BP2 mission 'One Future', approaching the Morena MacDuff, waiting for it to launch a volley of missiles, and firing your countermeasures in response. Because the Morena's Ouster missiles use a heat seeker, they will chase the countermeasures instead of going dumbfire.

 

Offline m!m

  • 211
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
Now we just need to figure out how the seeker strength value interacts with countermeasures to determine the chance of being pulled off target...

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
I think I've found the relevant code (see below), which means that the chance of a homing missile chasing a countermeasure is:

+Heat Effectiveness: (default 1.0) / +Seeker Strength: (default 3.0)
or
+Aspect Effectiveness: (default 1.0) / +Seeker Strength: (default 2.0)

(The homer has to be inside the CM +Effective Radius: (default 300.0), and each CM has one chance to decoy any given missile)

Code: (void find_homing_object_cmeasures_1(object *weapon_objp)) [Select]
...
if (dist < cm_wip->cm_effective_rad)
{
float chance;
if (wip->wi_flags & WIF_HOMING_ASPECT) {
// aspect seeker this likely to chase a countermeasure
chance = cm_wip->cm_aspect_effectiveness/wip->seeker_strength;
} else {
// heat seeker and javelin HS this likely to chase a countermeasure
chance = cm_wip->cm_heat_effectiveness/wip->seeker_strength;
}
if ((objp->signature != wp->cmeasure_ignore_objnum) && (objp->signature != wp->cmeasure_chase_objnum))
{
if (frand() >= chance) {
wp->cmeasure_ignore_objnum = objp->signature; // Don't process this countermeasure again.
} else  {
wp->cmeasure_chase_objnum = objp->signature; // Don't process this countermeasure again.
}
}
...

Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
HAIL SATAN

  

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
I think I've found the relevant code (see below), which means that the chance of a homing missile chasing a countermeasure is:

+Heat Effectiveness: (default 1.0) / +Seeker Strength: (default 3.0)
or
+Aspect Effectiveness: (default 1.0) / +Seeker Strength: (default 2.0)
So by default, heat seekers are less likely to be decoyed than aspect seekers?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Nightly (FreeBSD): 19 May 2014 - Revision 10705
Yeah, that seems to be the case.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...