Author Topic: SUBTITLES sexp used for Custom HUD effects.  (Read 2550 times)

0 Members and 1 Guest are viewing this topic.

Offline Skullar

  • 29
SUBTITLES sexp used for Custom HUD effects.
I experimented with the SUBTITLES SEXP to simulate computer displays.

The problem is : When you show something, you do not really know WHEN to stop showing it, so you have to find a walkaround for "display time"
This is quite a tricky thing to implement.

I am using a EVERY TIME condition and need to know the refresh rate of that sexp.
For example : If this trigger is checked 25 times a second, I would use a display time of 1000/25 = 40 milliseconds for simulated HUD stuff shown with SHOW SUBTITLE.

Since I use show SUBTITLE to display a great deal of grafics onscreen, I would like to have the SEXP augmented. Who can I beg for ?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: SUBTITLES sexp used for Custom HUD effects.
For a start, don't use every time. You really shouldn't be using that SEXP unless you actually need to flush the SEXP tree. Repeating When has the exact same effect and has added bonus of including a set number of times it will be checked.

Secondly, frame times are dependent on number of frames per second. Which is why you shouldn't try to depend on them. The Mission-time and Mission-time-msec SEXPs are what you probably want. Store the current time in a variable and then check if it's above a certain value when it's time to stop counting.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Skullar

  • 29
Re: SUBTITLES sexp used for Custom HUD effects.
Does FRED support MODULO operation ?

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: SUBTITLES sexp used for Custom HUD effects.
Can custom HUD gauges display images?

 

Offline Skullar

  • 29
Re: SUBTITLES sexp used for Custom HUD effects.
Is the atomic weight of Iridium 192.22 ?

 

Offline sigtau

  • 29
  • unfortunate technical art assclown
Re: SUBTITLES sexp used for Custom HUD effects.
Is everyone here a collective, huge smartass?
Who uses forum signatures anymore?

 
Re: SUBTITLES sexp used for Custom HUD effects.
yes, to all of the questions.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: SUBTITLES sexp used for Custom HUD effects.
I am disappoint.

Yes, you can use HUD gauges to emulate a computer display.
This is, in fact, the best method available.
Yes, HUD gauges can display images. That's what the "Filename" field in the custom gauge definition is for.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Skullar

  • 29
Re: SUBTITLES sexp used for Custom HUD effects.
Then I will take a look at the custom hud-Gauge thing...


 

Offline Skullar

  • 29
Re: SUBTITLES sexp used for Custom HUD effects.
havent found custom hud gauges in fred

  

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: SUBTITLES sexp used for Custom HUD effects.
havent found custom hud gauges in fred

You need to set up custom hud gauges in a table. And you'll need to be using a recent 3.6.13 build to access them in FRED.