Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started 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?
-
Microfortnights and Attoparsecs!
-
uh, how do you convert those into seconds and pixels? :p
-
With great care.
-
From a quick look at the code Fade in is in milliseconds not seconds.
-
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.
-
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.
-
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.
-
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.
-
Scaling I may be able to do something about. Mantis mantis mantis. ;)
I don't know about the string variable thing, though.
-
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.
-
Training messages don't work without the HUD on. When using subtitles, I've always found that setting this:
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).
-
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?
-
I'm using January 9th.
-
Can you get them to show up in the latest 3/06 build?
Looks like this should go on Mantis.
-
Wahey. They work like a charm now.
-
They are showing up again now, but they're still barely readable. :doubt:
-
What resolution are you running at?
-
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.
-
Well, run it at a more sensible resolution then. :p
-
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.
-
This seems to be working in latest CVS, after a little bughunting.
-
The subtitles are really acting weird now. See my post on mantis. It seems that they currently like only 2048x1536 and nothing else.