Space Engineers

Space Engineers

Not enough ratings
Froid's Fleet Threat Indicator v1.1
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
53.537 KB
5 Sep, 2020 @ 6:03am
6 Feb, 2022 @ 4:19am
7 Change Notes ( view )

Subscribe to download
Froid's Fleet Threat Indicator v1.1

In 1 collection by Sigmund Froid
WeaponCore Ingame Scripts
13 items
Description
Hello it's Froid again! Today I bring you this new script using both WeaponCore's and Defense Shield's API. The purpose? This script will detect enemy grids around you and calculate the thread level of the entire fleet (the script will not distinguish between different enemy factions). However this script will only give an estimate of how the battle will end, specific weapon and shield configs won't be considered.

Features
  • Soundblocks with the tag "[Proximity]" will play the "Enemy detected" sound whenever the amount of detected hostiles increases.
  • Soundblocks with the tag "[Alarm]" will alert you about fleets with an higher threat level than 7 (configurable in script)
  • Soundblocks with the tag "[Ambient]" will play some battle music.
  • LCDs with the tag "[Threat-LCD]" will display a message depending on the relative threat.
  • LCDs with the tag "[Alarm-LCD]" will display the "Danger" texture if you encounter fleets with an higher threat level than 7 (configurable in script)
  • Lights with the tag "[Alarm-Light]" will turn red and blink. The script will save whether they've been on or off before and their color and reset them to those values.

Planned
  • Next two days: bug fixes.
  • Allied ships transmid their strength to calculate the threat level fleet vs fleet.
  • Better alignment on non-LCD-Block screens

Need help with the setup?
Give this a read: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2228900874

Feel free to submit ideas.

Bugs And Issues?
=======================
Leave a comment in the bugs discussion.

Want to learn how to use the WeaponCore PB API?
Check this out: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2178802013

My Workshop

Support Darkstar (Patreon)[www.patreon.com]


I have a github now:
https://github.com/SilicDev/WeaponCoreScripts
21 Comments
Titan Nya 20 Dec, 2023 @ 10:35am 
Well... Got some exceptions about input string, trying to figure out what is happening (commenting and decommenting part of the script and adding some echo (and making another one a comment as it seems to clutter the output) to figure out where the problem is...)
Problems found:
-line 230 to 233 make an exception (I don't have an LCD for it yet (well cockpit have) no check if no lcd present or something?
-line 368 Dictionary changed to IReadOnlyDictionary and this part is solved (thx to an update as github have last change listed 5 months ago)

Any chance to update or did you quit modding?
Sir Connery 15 Jul, 2022 @ 5:26pm 
Wow. Is it possible to add Timer Block activations for specific threat levels instead of Soundblocks?
KPD 27 Oct, 2021 @ 9:17am 
Ah alright thank you!
Sigmund Froid  [author] 27 Oct, 2021 @ 8:21am 
Depending on shield strength it adds to the relative threat.
KPD 27 Oct, 2021 @ 7:42am 
How does this config with the shields?
Sigmund Froid  [author] 23 Jul, 2021 @ 2:36am 
Should be fixed now, sorry.
mppc2001 22 Jul, 2021 @ 3:25am 
Sadly not doing anything. Hope it gets updated.
jbo96 31 May, 2021 @ 11:19am 
@Sigmund Froid, Does this script still function? I cannot seem to get it to work. Thanks
sed_and_awk 4 Feb, 2021 @ 10:52am 
Is this still being updated? really want the fleet vs fleet part
Sigmund Froid  [author] 16 Sep, 2020 @ 12:51am 
WeaponCore considers connected grids as one threat I believe, so it might be related to that. (Btw those connected grids will still be targetable which enables players to target rotor turrets directly)