Home   Help Search Login Register  

Author Topic: MAJOR ISSUES  (Read 1824 times)

0 Members and 1 Guest are viewing this topic.

Top-Gun

  • Guest
MAJOR ISSUES
« on: 09 Nov 2003, 19:06:19 »
I have 2 major problems, firstly i've put my music in a sound folder in my mission dictonary,

using this script

onLoadIntro="Mafia"

onLoadMission="The Don sends his regards"

showCompass=0

showGPS=0

showMap=1

showNotepad=1

showWatch=0

debriefing=1

respawn=2
respawndelay=10

class Weapons
{
class kozlice
{
   count = 11;
};
class Timebomb
{
   count = 5;
};
class FlareRed
{
   count = 6;
};
class Pipebomb
{
   count = 4;
};
class HandGrenade
{
   count = 4;
};
};

class Magazines
{
class kozliceball
{
   count = 9;
};
class kozliceshell
{
   count = 9;
};
};

class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {war};

   // Class definition needed for each music track
   class war
   {
      // Name to display in mission editor
      name = "war";
      // Music path, volume, pitch
      sound[] = {\music\war.ogg, db + 0, 1.0};
   };
};



the music does not play, how go i get it to start in a trigger,

also i ahve a problem with the respawn it changes the weapon to an ak47


PLZ HELP

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:MAJOR ISSUES
« Reply #1 on: 09 Nov 2003, 19:13:40 »
You say you put your music in a sound folder.........yet you tell OFP to look in a Music folder:

\music\war.ogg

Change the name of your folder to music and it should work ok.

You can get the music to play from a trigger by setting it in the Effects Section of the trigger dialogue.

Planck
I know a little about a lot, and a lot about a little.

Top-Gun

  • Guest
Re:MAJOR ISSUES
« Reply #2 on: 09 Nov 2003, 19:21:58 »
i changed the folder name, nothing happened now, how do i do the trigger cos the trigger is not putting my text on screen either. another issue i'm having is the respawn guns, is it ok if some one starts in the trigger, even when i walk into the trigger it don't work

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:MAJOR ISSUES
« Reply #3 on: 09 Nov 2003, 19:29:34 »
OOps sorry, I forgot.........you will need to make a stringtable .csv file in your mission folder.

Use Notepad........and save as type all files and name stringtable.csv

Put this in the file

LANGUAGE,English,Comment

STR_CFG_MUSIC_TITLE,Displaytitle,

TITLE will be the title of your music file, in your case WAR

Displaytitle will be the title visible in the triggers Effects Section.

You will need a line like that for each music file you use.


Just noticed this:

sound[] = {\music\war.ogg, db + 0, 1.0};

Try this:

sound[] = {\music\war.ogg, db + 10, 1.0};



Planck
« Last Edit: 09 Nov 2003, 19:34:50 by Planck »
I know a little about a lot, and a lot about a little.

Top-Gun

  • Guest
Re:MAJOR ISSUES
« Reply #4 on: 09 Nov 2003, 20:33:13 »
FFS it's still not working
can u tell me the exact trigger i need, i'm getting majorly annoyed i can see the tittle it just won't play and i can't rid the ak47

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:MAJOR ISSUES
« Reply #5 on: 09 Nov 2003, 21:04:20 »
If you have made your stringtable.csv file correctly then the music should play once the trigger has been activated............provided that you have put your coding into the description.ext file first.

I.E.

class CfgMusic
{
   tracks[] = {war};

   class war
   {
      name = "war";
      sound[] = {\music\war.ogg, db + 10, 1.0};
   };
};


Use a Radio Type trigger.......Radio Alpha will do fine.

Then press 0 0 1 to see if it plays correctly or not.


Planck
I know a little about a lot, and a lot about a little.

Steel

  • Guest
Re:MAJOR ISSUES
« Reply #6 on: 09 Nov 2003, 21:44:43 »
I don't know if it is still a problem with Operation Flashpoint but a while ago, while using Resistance I was making a mission, or rather trying out scripts and trying to learn them but occasionally Operation Flashpoint won't read any camera scripts nor the description file either.  So I usually had to copy the units and make a new mission file and folder with Operation Flashpoint to get around that problem.  So I am wondering if something similair to this has happend to you?

Top-Gun

  • Guest
Re:MAJOR ISSUES
« Reply #7 on: 09 Nov 2003, 22:10:37 »
Cheers got it sorted just the weapon problem, after respawn insted of the shotty it's replaced with and ak47

Top-Gun

  • Guest
Re:MAJOR ISSUES
« Reply #8 on: 10 Nov 2003, 20:16:24 »
I did to add a sound file, of someone speaking

i need to know excatly were to put it and how to do my files and what to add
it's called war2

also still got the weapon respawn problem