aliens

Author Topic: [DONE][Suggestion] [Feedback] Interceptor Range indicator  (Read 4868 times)

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
[DONE][Suggestion] [Feedback] Interceptor Range indicator
« on: April 01, 2018, 03:46:32 am »
After debating about how to manage the interceptor ranges on the intercept screen, I decided it would be best to make it "moddable".  I've completed the code for this feature in my own fork of OXCE+ and I must say I can't imagine playing without it after all the testing I've done with it.  My son loves it too :)

Below are screenshots of how the range status is encoded for normal or default, TechComm mod, and two TFTD screens showing the out of range and slightly in range status (red squares  & yellow triangles respectively).

This feature is an option that has to be enabled from the Options menu called "Interceptor Range Status".  Once enabled, you only need to click on a possible target and then click the "intercept" button from the target screen.  By default, the shape also indicates the range no matter if the craft is ready or not: X - craft is not allowed to fly there, square - craft is out of range, triangle - craft is borderline in range, and circle - craft is well within range.  The color is used to emphasize the range: red - out or not allowed, green - good to go, yellow - caution, and blue means craft isn't ready.

To change the colors or shapes or both, the interfaces.rul file will need to be changed by providing a copy for you mod.

Example:
Code: [Select]
  - type: interceptorRangeStatusReady
    elements:
      - id: craftNotAllowed
        textShape:  0x0058   # unicode character for X cross (must be hex)
        color:  128      # red
      - id: inRange
        textShape:  0x25CF   # unicode character for circle (must be hex)
        color:  107      # some shade of brightish green
      - id: mightBeInRange
        textShape:  0x25B2   # unicode character for triangle (must be hex)
        color:  251      # golden yellow
      - id: outOfRange
        textShape:  0x25A0   # unicode character for square (must be hex)
        color:  128      # red
  - type: interceptorRangeStatusNotReady
    elements:
      - id: craftNotAllowed
        textShape:  0x0058   # unicode character for X cross (must be hex)
        color:  80       # dull blue
      - id: inRange
        textShape:  0x25CF   # unicode character for circle (must be hex)
        color:  80       # dull blue
      - id: mightBeInRange
        textShape:  0x25B2   # unicode character for triangle (must be hex)
        color:  80       # dull blue
      - id: outOfRange
        textShape:  0x25A0   # unicode character for square (must be hex)
        color:  80       # dull blue

If you want this integrated into OXCE+ and think it's a must have, you'll have to convince master Meridian :) 

If you want to test the code (and know how to compile), my changes are located in two places:

Feature only: https://github.com/jgatkinsn/OpenXcom/tree/interceptor_range_status
Feature plus hide purchase items:  https://github.com/jgatkinsn/OpenXcom/tree/combined_hidden_ir
« Last Edit: February 01, 2023, 10:37:50 am by Meridian »

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: Interceptor Range Status - not official, but nice
« Reply #1 on: April 01, 2018, 03:58:52 am »
Looks pretty dang slick.  This would fix a lot of the early Piratez Airbus out of range issues.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: Interceptor Range Status - not official, but nice
« Reply #2 on: April 01, 2018, 04:28:50 am »
I like this very much! Seems very, very useful. I hope that Meridian consider to add this soon.

Enviado desde mi Blade A510 mediante Tapatalk
« Last Edit: April 01, 2018, 04:30:33 am by efrenespartano »

Offline BlackStaff

  • Colonel
  • ****
  • Posts: 336
    • View Profile
Re: Interceptor Range Status - not official, but nice
« Reply #3 on: April 02, 2018, 11:43:02 am »
I hope that Meridian consider to add this soon.
+1  :)
Tks !

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: [Suggestion] [Feedback] Interceptor Range indicator
« Reply #4 on: November 19, 2018, 04:29:36 pm »
Something similar has been added to OXC today: https://i.imgur.com/ATizRr9.gifv

Shows craft range:
 - if less than the whole globe
 - at take-off only (=while craft is still in the base)
 - without considering exact take-off time (the 10 minute window)
 - all other radar circles are hidden while this one is shown

Outer (full) circle is the range, inner (dashed) circle is just to indicate what's inner and what's outer (it can get confusing when the circles are on the other side of the globe).

Offline BlackStaff

  • Colonel
  • ****
  • Posts: 336
    • View Profile
Re: [Suggestion] [Feedback] Interceptor Range indicator
« Reply #5 on: November 20, 2018, 06:17:49 pm »
Good ! Thanks !

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
Re: [Suggestion] [Feedback] Interceptor Range indicator
« Reply #6 on: November 20, 2018, 11:35:12 pm »
Something similar has been added to OXC today: https://i.imgur.com/ATizRr9.gifv

Shows craft range:
 - if less than the whole globe
 - at take-off only (=while craft is still in the base)
 - without considering exact take-off time (the 10 minute window)
 - all other radar circles are hidden while this one is shown

Outer (full) circle is the range, inner (dashed) circle is just to indicate what's inner and what's outer (it can get confusing when the circles are on the other side of the globe).

Thank you!
(No more annoying comments about it from me on your videos  :) )

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: [Suggestion] [Feedback] Interceptor Range indicator
« Reply #7 on: November 20, 2018, 11:55:47 pm »
Something similar has been added to OXC today: https://i.imgur.com/ATizRr9.gifv

Shows craft range:
 - if less than the whole globe
 - at take-off only (=while craft is still in the base)
 - without considering exact take-off time (the 10 minute window)
 - all other radar circles are hidden while this one is shown

Outer (full) circle is the range, inner (dashed) circle is just to indicate what's inner and what's outer (it can get confusing when the circles are on the other side of the globe).

Thank you, Meridian! I've waiting for this a long time.


Enviado desde mi iPhone utilizando Tapatalk