EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCR] Missile Data Display (v1.03 - 22.01.12)
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
modified
PostPosted: Fri, 26. Aug 11, 20:07    Post subject: [SCR] Missile Data Display (v1.03 - 22.01.12) Reply with quote Print

English / Deutsch


This script furthers your laziness.


Feature 1: Installed missile data display

When you change the currently installed missile, it displays data about that missile type in the subtitle.
(yes, it would be helpful if you had subtitles enabled in your game options)



WHAT data is displayed and in which order is controlled by the script's text file.
X3:TC: t\7073-L044.xml
X3:AP: addon\t\7073-L044.xml

You want the missile name on the right of the line? Set it's sort order number to 40 or so.
Want the "dumbfire" tag shown as the first thing? Set the sort order to 1.

Want no missile name displayed at all? Set it to 0.

Want more spacing?
Add more spacing.
It's a text file...

How often the script checks up on the installed missile and for how long the subtitle stays on screen... those values can also be edited there.



The available data fields are explained in the text file but I'll explain the ones you get with the installation default. (and see in the screenshot)

3 / 1063
You have 3 of these missiles in the cargo bay and you need to fire 1063 missiles to destroy your current target - assuming all hits.

Wasp Missile
The name of the missile.
If the current target is within the missile's max range, it is shown in green, otherwise in red.

560 m/s
The missile's speed.
If the missile is 15 % faster than the current target, it's shown in green.
If it's slower than the current target, it's shown in red.
These percentages can be changed in the text file.

18 km (target +11 km)
Two displays for the same thing.
18km is the missile's nominal range.
You can also see that my target is 6.88 km away. That means the missile's reach = target +11 km.
That way you can see how "in range" the missile actually is.

Dmg 8x 1000 (D 8000)
Two displays for the missile damage.
For personal use I'd probaby disable one of them.

in range
Somewhat redundant given that the display colour of the missile name already tells you that but if you want it spelled out... there it is.

SWARM
This is a swarm missile.
These missile tags are read from the engine directly.
Other tags would be FF (friend foe recognition), PROX, Manually detonated... the usual suspects.



Feature 2: Targeted missile data display

If you target a missile in space (maybe because it's incoming to your ship) the same display is given.
If does not automatically target any missiles.

The comparison stats of the target ship are now... those of your ship, regardless of where the missile is going.

So... if the display tells you that there is one missile required to destroy the target... you should do something about it. Real quicklike.

Same goes for the missile range or speed display.
If the speed is listed in red, your ship is faster than the missile.
You could just fly away.
If the missile is out of range well... it's not going to reach you .


Download: ZIP


Installation:

Unpack the archive into the TC folder.


Deinstallation:

Delete TC\scripts\setup.plugin.gz.msl.display.xml
or disable the script in the textfile.


Resources used:
Textfile: 7073


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.


Last edited by Gazz on Sat, 28. Jan 12, 09:02; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Fri, 26. Aug 11, 20:09    Post subject: Reply with quote Print

** reserved **

Back to top
View user's profile Send private message Visit poster's website
perkint



MEDALMEDALMEDAL

Joined: 06 Nov 2002
Posts: 4763 on topic
Location: Nottingham
Thank you for registering your game
PostPosted: Fri, 26. Aug 11, 21:14    Post subject: Reply with quote Print

Cracking script! Playing vanilla this time thru, but this (along with quite a few others of your's Razz ) is definitely going on next time thru Smile

Tim


_________________
Struggling to find something from the forums - Google it!!! Very Happy
Back to top
View user's profile Send private message
joelR





Joined: 09 Jul 2007
Posts: 1982 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Fri, 26. Aug 11, 23:03    Post subject: Reply with quote Print

Another quality script Gazz. Great work.
I assume that this only knows vanilla missle stats correct?

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sat, 27. Aug 11, 14:33    Post subject: Reply with quote Print

No. It knows everything.

Your thoughtcrimes will not be concealed forever!



Version 1.02 released.

Added display mode for damage in "k", which corresponds to the shield strength nomenclature in MJ.

You could also rename "k" to "MJ" in the textfile if you like. It's all text...


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Dakota-





Joined: 25 Dec 2011
Posts: 104 on topic

Thank you for registering your game
PostPosted: Fri, 30. Dec 11, 12:46    Post subject: Reply with quote Print

Thanks for the script. Seems to work great with AP.

That said, would it be difficult to make it so that it updates the display on target change? e.g. the id "20" variable is set at 100s and all the while will change depending upon what target is selected.

Also, what happens when another script wants to post text to that text area? Is it displayed immediately or does it wait for the id "20" variable to expire?

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Fri, 30. Dec 11, 14:56    Post subject: Reply with quote Print

Subtitles have no priority value like voices so they cannot be queued.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
TSM
Not a Moderator




Joined: 01 Jul 2004
Posts: 1765 on topic
Location: Lancashire,UK
Thank you for registering your game
PostPosted: Fri, 30. Dec 11, 15:03    Post subject: Reply with quote Print

This should be ingame! already nice one Gazz Smile


_________________
FAQ's Egosoft Interactive FAQ
Egosoft Wiki
Back to top
View user's profile Send private message Visit poster's website
wga





Joined: 19 Feb 2009



PostPosted: Fri, 20. Jan 12, 04:28    Post subject: Reply with quote Print

Hi, since already know the missile speed, enemy speed and the range between player ship and enemy ship. We can calculate the seconds of missile travel time approximately.

How about add following text display when firing missile.

Missile xxx will hit target in yyy seconds.

It is useful when firing long range missile like topedo on target.

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Sun, 22. Jan 12, 14:36    Post subject: Reply with quote Print

Function for ETA added.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
wga





Joined: 19 Feb 2009



PostPosted: Fri, 27. Jan 12, 10:20    Post subject: Reply with quote Print

Huh, I've install new version, but don't see any change. When will the ETA info display ? Press 'L' or 'M' ?

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Fri, 27. Jan 12, 14:21    Post subject: Reply with quote Print

wga wrote:
When will the ETA info display ? Press 'L' or 'M' ?

Whenever you edit the textfile and assign it a position on your display.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
wga





Joined: 19 Feb 2009



PostPosted: Sat, 28. Jan 12, 08:50    Post subject: Reply with quote Print

Gazz wrote:
wga wrote:
When will the ETA info display ? Press 'L' or 'M' ?

Whenever you edit the textfile and assign it a position on your display.


OK, I find it, thanks

Back to top
View user's profile Send private message
HoPLoN





Joined: 19 Oct 2010



PostPosted: Mon, 5. Nov 12, 17:05    Post subject: Reply with quote Print

Cant seem to find the text file 7073 ...

I have installed both in tc and Ap scripts folder .
( your installation instructions said on in TC folder , but that didnt work so i installed in AP folder as well , since I run AP )
The t/ folder in any of them does not contain any 7073 text file .

Although in Artificial life plugin settings i can see the Missile Data enabled.

Subtitles are on , but all i get is the standard subs files.

In your zip file there is an X3AP_MIssile_safety_Ai folder, i extracted those to addon/scripts also ( dont know where else these could go )

I run AP 2.5.1 + XRM + PureX V2 Hud mod.

Any help ?

***edit
Seems I have downloaded wrong file !
What confused me was the Missile Display tag on top of your Missile Safety zip file , I think its misplaced , maybe you d' want to fix that .

All seems to be good now , ty for this script Smile

Back to top
View user's profile Send private message
BrianManeke





Joined: 26 Oct 2006
Posts: 16 on topic

Thank you for registering your game
PostPosted: Sat, 17. May 14, 18:36    Post subject: Reply with quote Print

Images from post are broken, Please fix I would love to be able to see exactly how this functions before downloading.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 11. Dec 17, 13:35

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.12057 seconds, sql queries = 29