Home   Help Search Login Register  

Author Topic: Using titleText  (Read 2657 times)

0 Members and 1 Guest are viewing this topic.

Offline Arkon

  • Members
  • *
Using titleText
« on: 21 Mar 2007, 21:43:57 »

Hi,

Iv'e been trying to start with a black screen using  titleText [" ","BLACK IN",9999]
but I keep getting a view of the game before it kicks in:
Tried init.sqs, in the activation field of the Player and various other places.
Anyone know what gets called in what order when the editor runs the program?

Thanks

Arkon

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Using titleText
« Reply #1 on: 21 Mar 2007, 21:55:01 »
the old trick with ofp was to focus the camera on one of these. unfortunately in arma it looks like this.  :confused:

failing that, the titletext should work, but perhaps 9999 is not a sufficiently high number. make it something silly, like 99999999.

Offline Arkon

  • Members
  • *
Re: Using titleText
« Reply #2 on: 21 Mar 2007, 22:33:40 »


Thanks bedges,

I'll give that a try.....

Arkon

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Using titleText
« Reply #3 on: 22 Mar 2007, 09:45:59 »
Actually, would be 999999 very sufficient..

The thing is BIS have BIS'd this in ArmA, or it's some new feature that reduces all features into only two features.
The only fade types working with titleText or cutText (does the same) in ArmA is "black faded" and "black". Trying the other types does nothing.

As you may have noticed there is a automatic fade in when ever you start a mission so maybe that somehow screws things up.

Anyway, to get longer 'blackness' in the start:
sqs
Code: [Select]
cutText ["","black faded"]
~10
cutText ["","black in"]

sqf
Code: [Select]
cutText ["","black faded"];
sleep 10;
cutText ["","black in"];
Now, after 10 seconds of blackness the view fades in..

The second cutText is just there to 'break' the first one because it seems the type "black faded" is eternal no matter what you put in as the duration time..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Arkon

  • Members
  • *
Re: Using titleText
« Reply #4 on: 22 Mar 2007, 12:26:22 »


Hi,

Thanks for the above ideas...
I'm sure they will work normally.

The problem is that I'm trying to do this without an intro - so no camera is involved.
So knowing where to put the commands seems to be the key (if this is possible without using a camera.)
Tried all sorts of places, but not knowing what kicks in first or what order things are executed makes
it tricky...


Thanks again

Arkon

Offline Cheetah

  • Former Staff
  • ****
Re: Using titleText
« Reply #5 on: 22 Mar 2007, 12:39:42 »
Make a init.sqs and put it in the mission folder (normally found in my documents) with the following line of code:

cutText ["","black faded"]

Create a trigger with:

condition: true
Timers (Timeout) - min,max,mid all at 10
On Activation: cutText ["","black in"];

I don't think that you can put it all in the init.sqs with a ~10 delay. You could also make a script called timer.sqs, with the code h- wrote between the code and /code and call that script from the init.sqs / a trigger / initialization of a unit
If you prefer that method, use the following code in the init.sqs to call the script:

In the file init.sqs:

Code: [Select]
[] exec "timer.sqs";

The timer.sqs:
Code: [Select]
cutText ["","black faded"]
~10
cutText ["","black in"]

Should work. If you want to use the .sqf format let me know.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Arkon

  • Members
  • *
Re: Using titleText
« Reply #6 on: 22 Mar 2007, 13:43:49 »


Hi, and thanks to the 3 masters!

cutText ["","black faded"] seems to do the trick nicely - but I have now got a new problem.
Using "titleText" to display the first line of text is ok - but when trying to display a new (second)
line of text the screen pops back into view...

Arkon

Offline Cheetah

  • Former Staff
  • ****
Re: Using titleText
« Reply #7 on: 22 Mar 2007, 13:47:58 »
In OFP I overcame this problem by using two seperate commands for this.
titleText for the BLACK effect and titleCut to display the text. The good thing was that the Text and Cut were seperate function / commands and didn't interfere. The problem is that titleCut is classed as obsolete now and probably doesn't work.

The thing that comes to my mind is to use playSound combined with a stringtable.csv to put texts to the screen. Have to test if this works though, will come back to you.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Using titleText
« Reply #8 on: 29 May 2007, 10:06:22 »
Sorry for digging this old topic up but while searching for info I noticed something worth correcting:

I don't think that you can put it all in the init.sqs with a ~10 delay.
Nothing prevents from using ~ or sleep in init.sqs/sqf..

IIRC only in MP missions thi may have some not wanted results..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Using titleText
« Reply #9 on: 29 May 2007, 17:10:21 »
The problem with putting a pause in the init.sqs/sqf is that it stops there until the mission starts, and then executes the pause. This can be a problem in SP and MP if you need the init.sqs/sqf to finish before play starts.
urp!

Offline ericstephenvorm

  • Members
  • *
Re: Using titleText
« Reply #10 on: 07 Feb 2008, 05:32:46 »
I hope this isn't breaking the rules or anything, but I couldn't help but dig this old topic up.

I'm trying to find a way to make the screen fade in slower than the standard 1 second. Is this possible? As of yet I haven't been able to make it happen, and I've been working through the COMREF and the forums for days...

Any help?

Thanks.

Very Respectfully,

ESV

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Using titleText
« Reply #11 on: 07 Feb 2008, 09:04:49 »
hmmm... it is there...


Code: [Select]
cuttext [" ", "black in", 10]

Offline ericstephenvorm

  • Members
  • *
Re: Using titleText
« Reply #12 on: 08 Feb 2008, 02:00:13 »
Hmmm... yes, I had noted that. However, it does not seem to work... hence the request.

I've tried pairing it with a sleep, a '~'... all to no avail. It seems that there is an built-in fade-in time that I can't seem to override.

Now then, does anyone know how to overcome this?

Thank you again.

Very Respectfully,

ESV