Home   Help Search Login Register  

Author Topic: Briefing and Sound and Music File Help  (Read 1212 times)

0 Members and 1 Guest are viewing this topic.

Offline Gubas little helper

  • Members
  • *
  • Gubas real name is John. I would know.
Briefing and Sound and Music File Help
« on: 11 Dec 2010, 06:31:11 »
Hey guys
If you dont know Im struggling to put a aesthetically pleasing briefing together. I made 2 briefings, 1 using a example briefing template and the other with the very hand Chris' OFP mission editor thing. The problem is that I have posted lots of info and even hyperlinks however I cannot format the info, what I mean is move is around, put gaps between lines and most of all make it look good. I also need help with creating hyperlinks to new sections of the briefing.

Sound and Music File Help
A couple of months ago I tried to add sound and music to one of my missions. I failed horribly as the mission editor just played 'silence'. It detected the file and all the other stuff worked but the audio was non-existent. I did all the description and stringtable stuff using other peoples templates, converted everything and yet it still didnt work. I checked and  rechecked and the outside scripting was fine. Sometimes it couldnt find the file when I gave this command: "exec "voice1.ogg"

HELP!!!

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Briefing and Sound and Music File Help
« Reply #1 on: 11 Dec 2010, 11:03:18 »
hmm about putting lines in your briefing I think all you need to do is open your briefing with chris' ofp mission editor, and put <br><br> or something like that where you want. Hyperlinks are done like this:

Code: [Select]
<a href="marker:Marker1">Place</a>
marker1 is the name of the marker you're using, and 'place' is where the hyperlink is. You can insert hyperlinks in the briefing wizard i think.

As for the briefing sound effects stuff, it's done using these commands:

Code: [Select]
onBriefingPlan "Sound"
onBriefingGear "Sound"
onBriefingGroup "Sound"
onBriefingNotes "Sound

You put your sounds where it says 'sound'. You put these commands in an init.sqs file.

Hope that helps

Gruntage
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline Gubas little helper

  • Members
  • *
  • Gubas real name is John. I would know.
Re: Briefing and Sound and Music File Help
« Reply #2 on: 12 Dec 2010, 00:33:03 »
Cool Thanks that helps alot  :clap: in the briefing area. but what I meant by sounds is putting them in the mission.. i struggle with the spreadsheet stuff.

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: Briefing and Sound and Music File Help
« Reply #3 on: 17 Dec 2010, 00:31:58 »
A spreadsheet is not needed for sound implementation. You only need a Description.ext, and a sound file.
There are plenty of tutorials on these subjects and even one Beginner's Tutorial that is currently being updated. But for the sake of convenience, I'll help you out quickly.
I assume you have a Description.ext file in your mission folder? If so, you have a Class section dedicated to sound? such as
Code: [Select]
class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension---Used in the editor under the trigger effects button)
sounds[] = {airaid1};

// Class definition needed for each sound
class airraid1
{
// USED DURING THE MISSION FOR THE BASE ALARMS
name = "airraid1"; //This name assigned to your sound
sound[] = {\sound\airraid1.ogg, db + 0, 1.0};//The actual sound file in it's directory with volume and pitch
titles[] = {};//Place text between the {} braces that you want to printed when the sound is played
};

};

Each line has explanation but remember that if you are not getting an error that your sound is not found, it may be that the sounds db level is too low. You can try to boost that level in the description but I think it only works up to +30 db. After that, if the sound is still too low, you'll have to open it in an audio editor and increase it's volume. If you are getting an error not found, make sure that the format referred to in the sound class (.ogg,.wav.wss) is the same as what your sound actually is. And then make sure that the sound class is pointing to the folder that the sound is being kept in. In most cases, folks create a sound folder within their missions folder and then direct to that.

Quote
"exec "voice1.ogg"
But that may be your problem entirely.
The command exec is used in conjunction with scripts, not sounds. The commands say and playsound are the ones you'll need to hear your sounds in game.

In regards to the briefing, again, plenty of tutorials covering this but the simple command used to insert line breaks and spaces is simply the
Code: [Select]
<br>
Quote
Dear reader,<br>
<pre>     Write what you would like to in this space<br>
        but don't forget to tip the aid.<br>
                                                 <br>
                                signed,<br>
                                     the aid</pre>
To control an entire area of space to preserve indents, line up images and other features you could use the command
Code: [Select]
<pre>Insert text here</pre>
I've attached a sample of my working Briefing in a SP mission I designed for OFP. It contains links to pages, links to images, links to markers, intel pages, sat views and other features but I did not implement sound into the briefing because I did not like how it only plays the first time a page is loaded. The great thing is that it works! Tried and tested. The only thing that will not work are images since they are not within the same folder as the briefing.html. To add your own images, make sure your dimensions are the power of two. For example, my image sizes were 512X256, 512X128,1024X512. I then re-sized them to how I needed them inside the briefing file, maintaining the power of two like 192X64 and 256X128.

In closing, a spreadsheet is a simple notepad document saved as a Stringtable comma separated value file (.csv). It must be created with and edited by notepad in order to be edited properly. So, when you open it, do so with notepad and simply press save when done. It's purpose is to keep all text in one place for easy editing and access. It pertains to everything from marker names to spoken strings. This makes it easy to add various languages if you so choose. I have also attached a copy of my stringtable for you to use. It's pretty simple. The STR_ is mandatory. The commas are mandatory. The quotes are only mandatory where commas are used within the printed text. I use quotes regardless just to simplify things. The numbers between the STR_ and the comma are whatever you choose to name the line for reference later.

Grab the files quickly if you want them because I will remove them soon since they contain spoilers of my unfinished mission.

Hope this all helps pal.
« Last Edit: 19 Dec 2010, 03:00:11 by savedbygrace »

Offline Gubas little helper

  • Members
  • *
  • Gubas real name is John. I would know.
Re: Briefing and Sound and Music File Help
« Reply #4 on: 19 Dec 2010, 01:46:44 »
It sure Does! Anyway I found out about this software called Chris' OFP Script Maker.. it solves all the problems :)