Author Topic: Messages.tbl Query  (Read 1950 times)

0 Members and 1 Guest are viewing this topic.

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
Could someone explain for me what exactly triggers the FSO specific wingman persona messages "Praise Self" and "High Praise" to play?  Thanks!
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline m!m

  • 211
So, according to the code every kill by a non-player ship has the chance of triggering a self-praise message (by default that chance is 10%). Then the code checks if the ship sending the praise message is in one of the starting wings and if it isn't then the message isn't played. There are a few other checks in there but those are mostly to make sure that the code only triggers for actual kills and not e.g. for killing a nav buoy.

The "High Praise" message is the same as "Praise" but that message is used if the player has more than 10 kills.

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
Thank you!  That's very helpful.
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
I don't think I've ever heard a "self praise" message before.
The Trivial Psychic Strikes Again!

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
It is an FSO addition, so you could only hear it in a user made campaign in which someone has created voice acted personae and also recorded lines for "Self Praise."  Perhaps Diaspora may have it?
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline m!m

  • 211
The self praise feature was written specifically for Diaspora and is used there.

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
I think I'm still confused here.  I created a mission with 10 enemy fighters with primaries and secondaries locked, and 5% hull.  I then let my wingman, also in Alpha wing, massacre these.  I've not once heard the Praise Self message even if I set its occurrence chance to 100. Am I missing something?

Extract of the relevant parts from my messages.tbl:

#Message Frequencies

$Name: Praise Self
+Occurrence Chance: 100
+Maximum Count: 10
+Minimum Delay: 0

$Persona: Assassin    
$Type: wingman

$Name: Praise Self
$Message: XSTR("That's what happens when you try to keep up with me!", -1)
+Persona: Assassin
+Avi Name: Head-ASSASSIN
+Wave Name: assassin_27.wav
« Last Edit: August 16, 2017, 04:27:26 pm by Admiral Nelson »
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline m!m

  • 211
Ah, for the praise message to trigger the killer has to have dealt at least 10 percent of the damage. Since that is not possible the messages are never triggered.

 

Offline Admiral Nelson

  • Resurrecter of Campaigns
  • 211
  • The GTA expects that every man will do his duty.
OK, that makes sense.  I can get it to trigger as expected now.  Thank you!
If a man consults whether he is to fight, when he has the power in his own hands, it is certain that his opinion is against fighting.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
"High Praise" additionally requires that whatever wingman is randomly selected to praise the player have >50% hull.
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 karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
10% IIRC is what you need to be credited with a kill. So for that reason a wingman must also do that much damage to take credit.

You can hear the praise builtins in Diaspora. Listen for Turbo's "I just had to remind you who's the best pilot in the fleet!" for an example.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  
Simms' "Target down!" is also a self-praise message, and I think there are a few others in WiH.