System Messages for NW3

Need some nice Mods? Here, you are right!
Post Reply
User avatar
BadCorps
Experienced
Posts: 80
Joined: Thu Jan 10, 2019 3:15 am
Personal rank: Unholy
Location: Toronto, Canada
Contact:

System Messages for NW3

Post by BadCorps »

I was wondering if there was a way to edit the system messages (i.e. Player has killed Bot w/ X Weapon) for the NW3 mod. If so, where would I go to edit the messages?
Image
User avatar
OjitroC
Godlike
Posts: 3605
Joined: Sat Sep 12, 2015 8:46 pm

Re: System Messages for NW3

Post by OjitroC »

BadCorps wrote:I was wondering if there was a way to edit the system messages (i.e. Player has killed Bot w/ X Weapon) for the NW3 mod. If so, where would I go to edit the messages?
The settings for the NWCoreVIII.NWKillMsgManager are in NWConfig.ini - [NWCoreVIII.NWInfo] -> enableKillMsgManager=True turns the MsgManager on and the KillMessageOptions (DamageName and WeaponItem) are under [NWCoreVIII.NWKillMsgManager]. I'm not sure how much these messages can be altered beyond these two settings.

Of course, there's a death message for each weapon in the default properties of that weapon and, I assume, this is what is shown if the KillMsgManager is turned off.
Last edited by OjitroC on Wed Jan 16, 2019 2:47 pm, edited 1 time in total.
Aldebaran
Masterful
Posts: 672
Joined: Thu Jan 28, 2016 7:30 pm

Re: System Messages for NW3

Post by Aldebaran »

This is in interesting question in some way. I realized while playing CTF with NW3 (and other mutators at the same time) that sometimes these messages "sb killed sb with weapon xy" were not true. The person was killed yes, but with another NW3 weapon as said. I have no idea why this message was wrong and perhaps it's an issue in combination with other mutators. l have not been paying attention lately...
User avatar
OjitroC
Godlike
Posts: 3605
Joined: Sat Sep 12, 2015 8:46 pm

Re: System Messages for NW3

Post by OjitroC »

Aldebaran wrote:... sometimes these messages "sb killed sb with weapon xy" were not true. The person was killed yes, but with another NW3 weapon as said ...
Yes, I get that with the Graviton in particular - in fact, I get kill messsages for that weapon a minute or two after I've used it and then switched to another weapon (which has done the killling).

Some damage names are missing from the KillMessageOptions - for example, 'shot' for the WRE primary fire and there's nothing for the IRPR, though I assume the default death messages for those weapons are shown instead.
User avatar
Feralidragon
Godlike
Posts: 5489
Joined: Wed Feb 27, 2008 6:24 pm
Personal rank: Work In Progress
Location: Liandri

Re: System Messages for NW3

Post by Feralidragon »

Other than what was described above, you can edit the messages themselves through localization files.

These are the localization files for NW3:
NW3Localization.zip
(31.61 KiB) Downloaded 59 times
There you can find all the NW3 messages, including the ones you want.
It's only client-side though, if you plan to change the messages from a server perspective, so that every player sees your custom messages, it won't work.

As for the wrong messages appearing, I cannot say much unless I investigate the issue better, but in the final version of the mod I tried to track as best as possible which weapon was used to kill an enemy, because by default UT will associate with the currently held weapon by the player, when the enemy could have been killed by a mine instead for example.
So I built a custom manager in the mod which would provide he correct message based on the damage type.

In the case of the Graviton, I recall that NW3 also tracks if an enemy has been killed as a consequence of using this weapon, rather than looking at the damage type alone, so that killing someone using the beam through fall damage or sending them to a lava pit gets correctly credited to the player and the weapon involved. But I don't really remember well how I did this (I believe I attach something to the enemy when the beam is used, and make calculations from there), so it might indeed not be perfect.
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: System Messages for NW3

Post by Barbie »

Aldebaran wrote:sometimes these messages "sb killed sb with weapon xy" were not true
This can happen with projectile weapons, because a projectile does not know from what weapon it was fired, it only knows the shooter (Instigator). The death message is assembled then by the weapon the shooter is currently holding. If he has changed the weapon while the projectile was flying, the message will be wrong.

<EDIT>Ups, Feralidragon already explained it above.</EDIT>
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
BadCorps
Experienced
Posts: 80
Joined: Thu Jan 10, 2019 3:15 am
Personal rank: Unholy
Location: Toronto, Canada
Contact:

Re: System Messages for NW3

Post by BadCorps »

Thank you to Feralidragon! Your contribution is really appreciated!
Image
Post Reply