Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: CP5670 on February 17, 2006, 12:53:10 pm

Title: Cutscene sexps
Post by: CP5670 on February 17, 2006, 12:53:10 pm
I can't seem to get the subtitle or fade sexps to work. The subtitles don't show up at all and the screen just changes to black instantly instead of having any fade effect. What units are the time parameters for the fade sexps and the positions for the subtitles measured in?
Title: Re: Cutscene sexps
Post by: Shade on February 17, 2006, 12:57:30 pm
Microfortnights and Attoparsecs!
Title: Re: Cutscene sexps
Post by: CP5670 on February 17, 2006, 03:50:36 pm
uh, how do you convert those into seconds and pixels? :p
Title: Re: Cutscene sexps
Post by: Shade on February 17, 2006, 03:51:44 pm
With great care.
Title: Re: Cutscene sexps
Post by: karajorma on February 17, 2006, 04:34:33 pm
From a quick look at the code Fade in is in milliseconds not seconds.
Title: Re: Cutscene sexps
Post by: Axem on February 17, 2006, 04:36:06 pm
Most, if not all, of the cutscene sexps are timed in milliseconds, so just multiply all your times by 1000 to get what you're probably expecting.

The subtitle sexps is confusing for myself as well. Just quickly glancing at a mission where I used them once... I still don't know. I think you do it by expecting it to be on a 1024x768 screen. The centered horizontally/vertically doesn't do anything, atleast they didn't when I tried, so you have to offset it yourself if you want it centered.
Title: Re: Cutscene sexps
Post by: Nuclear1 on February 17, 2006, 07:44:48 pm
I've had issues with the fade SEXPs, but I concluded that they only work when the fighter's HUD is visible, which is a real bugger.

Subtitles have been difficult as well, though I usually just use good ol' training-msg for the same effect.
Title: Re: Cutscene sexps
Post by: WMCoolmon on February 18, 2006, 12:32:24 am
If these are still problems with latest CVS, mantis them & assign to me. I was thinking of taking a look at some of the camera and FOV SEXP stuff anyway.
Title: Re: Cutscene sexps
Post by: CP5670 on February 18, 2006, 01:19:13 am
Quote
Most, if not all, of the cutscene sexps are timed in milliseconds, so just multiply all your times by 1000 to get what you're probably expecting.

Thanks, that was the problem. I was putting in single digit numbers into the parameter thinking they were seconds.

The fade sexps are working fine for me without the HUD. However, it looks like the subtitle text's position and size is dependent on the resolution and doesn't scale like it should (it looks microscopic for me), which makes the feature pretty useless. Does that qualify as a bug?

Also, it would be nice to be able to display a message as a subtitle. At the moment you can't put more than a few words into a subtitle before you run into the limit for the size of a string variable.
Title: Re: Cutscene sexps
Post by: WMCoolmon on February 18, 2006, 03:14:08 am
Scaling I may be able to do something about. Mantis mantis mantis. ;)

I don't know about the string variable thing, though.
Title: Re: Cutscene sexps
Post by: Petrarch of the VBB on March 18, 2006, 06:33:25 am
I can't seem to get the subtitles to work either.

Some indication of what the X and Y positions were measured in might be helpful.

Using training messages don't seem to work, either. Dunno if they only appear if you're viewing from the player ship w/ HUD on.
Title: Re: Cutscene sexps
Post by: Nuclear1 on March 20, 2006, 08:32:50 pm
Training messages don't work without the HUD on. When using subtitles, I've always found that setting this:
Code: [Select]
X: -350
Y: -350

...would set the text to be reasonably center and high (I use 640x480 though; don't know how much a difference it would make).
Title: Re: Cutscene sexps
Post by: CP5670 on March 20, 2006, 11:27:00 pm
It seems that the subtitles aren't showing up at all for me in the latest builds, regardless of the position. They only work in an older one I have. Which build are you using?
Title: Re: Cutscene sexps
Post by: Nuclear1 on March 21, 2006, 05:21:03 am
I'm using January 9th.
Title: Re: Cutscene sexps
Post by: CP5670 on March 21, 2006, 09:55:12 am
Can you get them to show up in the latest 3/06 build?

Looks like this should go on Mantis.
Title: Re: Cutscene sexps
Post by: Petrarch of the VBB on March 24, 2006, 12:29:38 pm
Wahey. They work like a charm now.
Title: Re: Cutscene sexps
Post by: CP5670 on March 24, 2006, 01:35:13 pm
They are showing up again now, but they're still barely readable. :doubt:
Title: Re: Cutscene sexps
Post by: Petrarch of the VBB on March 24, 2006, 01:41:59 pm
What resolution are you running at?
Title: Re: Cutscene sexps
Post by: CP5670 on March 24, 2006, 01:45:39 pm
2048x1536. The subtitles look really tiny compared to all the other text.

It looks like you can include an image in the sexp. It's a long shot, but if that image gets scaled correctly, I could just make the subtitles into images and get around it that way.
Title: Re: Cutscene sexps
Post by: Petrarch of the VBB on March 24, 2006, 02:07:11 pm
Well, run it at a more sensible resolution then. :p
Title: Re: Cutscene sexps
Post by: CP5670 on March 24, 2006, 03:31:53 pm
Well, all the other text looks just fine. :p It's only these stupid subtitles.

I guess training messages do a reasonable job of this, but they don't have that cool fade effect that the subtitles support. Or maybe I could try using normal messages with no head animation. Or another option is to make an "explosion" animation that contains the text fading in and out and use the explosion sexp to display it, although that would really be a hackish way of doing it.
Title: Re: Cutscene sexps
Post by: WMCoolmon on April 03, 2006, 04:10:42 am
This seems to be working in latest CVS, after a little bughunting.
Title: Re: Cutscene sexps
Post by: CP5670 on April 07, 2006, 11:17:48 am
The subtitles are really acting weird now. See my post on mantis. It seems that they currently like only 2048x1536 and nothing else.