[MOD] Kill and Attack Notifications Extended

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Eagle_Four
Posts: 231
Joined: Wed, 6. Nov 02, 20:31
x3

[MOD] Kill and Attack Notifications Extended

Post by Eagle_Four »

Hello,

This mod should help to provide more information when an own object (ship/station or other) performs an attack.
This is practical to find out e.g. what an Unauthorized Attacks/Kill is about and where it took place. But also all other attacks/kills inform the player in detail.

https://www.nexusmods.com/x4foundations/mods/1197

Have you also often wondered where the loss of reputation due to unauthorized attack/killing comes from ?
Usually there is no way to react should such a message appear in the log.

Or how successful was a major attack ?
Who did my ships attack?
Where did this attack take place?
Or how much did it lower my reputation to the attacked faction?
Is the loss of reputation even worth responding to, or should I just leave it up to the captain?
What type of attack is it?

'Kill and Attacks Notifications Extended' answers all this by providing extensive information in the log and via Betty's voice system.

Features:

* Extensive information by voice/logbook or via ticker (incl. station attack/destroying, module destroying and much more)
* More extensive notifications like station attack,authorized kill/attack
* Reputation display with two decimal places in the log
* Filter options to suppress too many notifications or too much speech.
* Consideration of ownerless ships or objects
* Station module destruction is displayed. (only if the destruction results in a loss of reputation).
* Station Destroying is displayed
* Additional information about Unauthorized Attack/Kill
* Loss of reputation is displayed in the logbook with two decimal places.
* Hotkey to turn off Betty (speech information system)
* Possibility to disable (hotkey) or shorten the voice information system.
* Setting option to show info about attacks/kills where reputation is already at -30 and therefore cannot drop further or where reputation is fixed, every 60 seconds.


Adjustable filters:

-Notifications every 60s (if relationship -30 or fixed): The whole system is based on reputation loss, i.e. as long as reputation of the faction can decrease, notifications will be displayed. If this option is enabled, factions (e.g. Kha'ak, Xenon, Scaleplate) whose reputation can no longer change will also be displayed. This allows any attacks/kills to be displayed. E.g. if a miner somewhere is attacked by the Kha'ak, a message will be displayed immediately and you have the possibility to focus on the location on the map.

-Display Enemies: Displays only attacks/kills on factions with a reputation of -10 and below.

-Display Friends and Neutrals: Everything above -10 reputation is displayed.

-Display Small Ships: In more extensive battles, there can be quite a few messages. Attacks/kills on S-ships can be filtered here.

-Display Defense drones: If e.g. a station is attacked hundreds of defense drones can be sent out, so that it does not come to a flooding of the log/ticker and the voice information system, defense drones can be filtered out.

-Display First Attack only: Not always the first attack/killing leads to a loss of reputation, but every first attack on an object is always recorded so that you can react immediately and quickly. Here you can set whether only this first attack should be displayed and no further attacks. E.g. if you are on site after the first attack, you don't need further notifications of attacks, you can see what's happening.

-Short Voice Notifications: Sometimes too many attacks can flood the voice system at the same time. Then it can come to overlapping of the sentences or Betty is just annoying and you want to concentrate on other things. Here Betty is stopped to say only the most necessary.

-Hotkey: If you want Betty (speech system) to keep her mouth shut, you can switch off the speech via hotkey at any time. The hotkey can be set under Settings/Control/General.

-Turn on debug lines in debug.txt: Contains comprehensive debug messages in the Debug.txt (if debug messages are enabled)

Additional Notes:

Laser towers:
Due to the system, sometimes no information is delivered when laser towers are attacked, this is shown in the log as 'No Data available'. Normally it is possible to jump directly to the target in the log, but if no data about the target is delivered, it is jumped to the attacker, which should still be nearby.
Maybe there are other targets that don't provide any data, so no guarantee that it is ONLY with laser towers.With me it has happened so far only with laser towers.

Unauthorized Attacks/Killings:
Many may have wondered what these Unauthorized Attacks/Killings are all about. There are already many discussions about it.
Here is a short excerpt of what I wrote about it in the Egosoft forum, maybe it will bring some light into the darkness.

"As far as I know, ALWAYS when reputation is lost by attack or kill, the message in the log 'Unauthorised attack/Kill' comes.

It doesn't matter with which faction and with which relation this happens, except if the relation is locked and can't change.
It should be named differently or really better differentiated because
it implies that an unauthorised attack/kill happened, which is not the
case from -10. Enemy means " You are authorized to use lethal force."

Therefore, it should be named differently from -10. The message that
basically an act of war leads to a loss of reputation is ok, but please
not unauthorized with an enemy, but authorized.
(small tip by the way, if your ships attack a station, the message in
the log comes only, as soon as a station module was destroyed)"



Install: Unpack and copy like any other X4 mod into the extension directory.

Uninstall: Just remove it from the extension directory or disable it in the extension menu.

Savegame compatible.
Requires SirNukes Mod Support APIs https://www.nexusmods.com/x4foundations/mods/503

Translations: German and English


Credits:
Big thanks goes to Mycu, without him this mod would never have been made. He supplied the base mod and asked me if I could test it. During the intensive testing the idea for this mod was born. Thank you Mycu, also for your other great mods. I appreciate you and your mods very much.
Last edited by Eagle_Four on Fri, 11. Aug 23, 07:55, edited 1 time in total.
Unauthorized Attacks/Killings in Detail and many more:
[MOD] Kill and Attack Notifications Extended
UI BackgroundColor Change:
[MOD] UI BackgroundColor Change
Eagle_Four
Posts: 231
Joined: Wed, 6. Nov 02, 20:31
x3

Re: [MOD] Kill and Attack Notifications Extended

Post by Eagle_Four »

Patch Notes

( Currently Version: 1.4)


Version V1.4

Bug fixed: Bug fixed that prevented saying 'You have lost reputation' when an unknown object was displayed before.
Bug fixed: Bug that prevented notifications for unknown objects from being displayed
added: Info window that shows all filter settings (can be called via hotkey)
added: added more hotkeys for filtering
Made some improvements to the text display to improve readability.

Version V1.3
Bug fixed: Fixed a rare bug that caused Betty not to finish a sentence if an unknown object or a laser tower was detected before.

Version V1.2
added: added more filters: Player is pilot, unknown objects (laser towers, mines, etc.)
added: more hotkeys added for additional filter settings
Bug fixed: Bug fixed, that could prevent the main script from starting, bug came with V1.1
Bug fixed: Bug in Filter Nemesis fixed

Version V1.1
added: hotkeys added for some filter settings
Bug fixed: Bugs in hotkey settings menu fixed
Bug fixed: Fixed a bug where S-Ship filtering did not work for destroyed S-Ships and they were displayed despite S-Ship filter.
Unauthorized Attacks/Killings in Detail and many more:
[MOD] Kill and Attack Notifications Extended
UI BackgroundColor Change:
[MOD] UI BackgroundColor Change

Return to “X4: Foundations - Scripts and Modding”