Home   Help Search Login Register  

Author Topic: Viewing Briefing directly  (Read 952 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Viewing Briefing directly
« on: 10 Aug 2005, 14:46:48 »
It's three months since I tried to edit a mission so I'm a bit rusty.   I'm sure I used to hold down the SHIFT key and click Preview when I wanted to see the Briefing, but it doesn't seem to work any more.    Am I going mad?    Am I misremembering?  


Edit:  mystery solved.   I'm not mad, and I'm not misremembering.   (I knew it couldn't be either of those.  ;D )   The mission I was trying starts with a short cutscene called from init.sqs:  this seems to override the shift key thing so you go straight into the mission.

I won't solve the thread yet in case anybody has any other interesting observations on they mysteries of the shift key.
« Last Edit: 10 Aug 2005, 14:51:56 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Viewing Briefing directly
« Reply #1 on: 10 Aug 2005, 20:55:36 »
If I understand your theory correctly, the reason why Shift+Preview doesnÂ't work is because the cutScene is scripted directly in the init.sqs, right?

If this is the case, IÂ'm sorry to disagree with you. I often start short cutscenes in the init.sqs (they are good for hiding stuff that needs a little time to load before when the mission starts, like fire scripts and other stuff).

Shift+Preview=Briefing works for me in these situations, but I have encountered the same problem occasionally. I have another theory...

You need to hold Shift for a few seconds after the editor starts to load the mission. I donÂ't know exactly how long (it probably depends on how fast your processor is). If I release the Shift key too early, the editor seems to skip the briefing and start the mission. But as I said, itÂ's merely a theory of mine  :-\

In other cases, though, there are some commands that donÂ't work well in the init.sqs, unless there is a short ~0.01 delay before them. IÂ'm drifting towards offtopic land here, but it seems to me that OFP executes as much as it can from the init.sqs when the mission is starting (in editor as well as in SP/MP/CAMPAIGN-mode). ThatÂ's why I think you just need to hold the key a little longer when you are in the editor.

HereÂ's some examples of commands that can affect the contents of your briefing page...

disableUserInput true is the real killer. OFP will open the briefing screen, but the command will prevent you from doing anything except alt-tab and quit the game from Windows. I sometimes use disableUserInput for a few seconds if I want the player to keep looking at a certain spot upon mission start.

0 fadeSound 0 also come into effect directly in the briefing if itÂ's included at the top of the init.sqs (preventing the use of onBriefGear and similar sounds)

0.01 fadeSound 0 works, though. Then you will hear the sound in the briefing, but it will fade out upon mission start (good if you want to play music at low volume when thereÂ's a chopper near the player)

deleteVehicle unitName and [unitName] join grpNull commands is also executed when the briefing is loaded, unless they are delayed. But for some reason it seems that [unitName] join groupName is not. ItÂ'+s just OFP I suppose. Buggiest game engine released commercially, but still irresistable  ;D
« Last Edit: 10 Aug 2005, 20:57:31 by nominesine »
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Viewing Briefing directly
« Reply #2 on: 10 Aug 2005, 21:02:35 »
I'm glad I left this unsolved, I had a feeling somebody would have something interesting to say....

Quote
If I understand your theory correctly, the reason why Shift+Preview doesnÂ't work is because the cutScene is scripted directly in the init.sqs, right?

Right.  But I haven't investigated any further and I suspect at least some of your theories are right.    The camera script called from init.sqs does have a disableuserinput as the third command, which might have been relevant.    I haven't tried holding down the shift key for longer than about threequarters of a second - will test it later.

Don't think you were drifting towards off topic.  It's all about init.sqs and what actually happens when you try to start a mission, which is where the thread is going.
Plenty of reviewed ArmA missions for you to play

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Viewing Briefing directly
« Reply #3 on: 11 Aug 2005, 03:53:11 »
I tend to have a 'safety' in my init.sqs just before the 'mission start' section.

I use the line:

@ time > 0.1

which waits a tenth of a second into the mission to start.

I'm not sure what commands are executed during the briefing, and what aren't though. Things like addweapon obviously are, as units start with correctly loaded weapons. But commands like camcreate and camera maniupulation don't as the cutscene doesn't kick in until the briefing finishes.

It'd be interesting to do some investigation into this ;)