Home   Help Search Login Register  

Author Topic: Descrip probs  (Read 2032 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Descrip probs
« on: 23 Aug 2002, 18:34:53 »
ok, i have this description.ext with the general stuf in bu there is one part which cause problems... if i place the music part of the descip (one song only) at the start and then all the rest (weapons and indentity) after it crashes the mission when i play and tells me


Config: some input after EndOfFile


which i guess ,eans there was a end of file line after the sound bit  - but i couldnt find it.... so i place the music bit at the end of the descrip and it doesnt crash but now the music wont work - it says it cannot find the music

Code: [Select]
onLoadMission = "Engineer Camp";
onLoadIntro = "Evac Site";

minScore=1001;
avgScore=1600;
maxScore=2600;

class Weapons
{
class Steyr
{count =  2;};
class G36a
{count =  2;};
};

class Magazines
{
class G36amag
{count =  8;};
class Steyrmag
{count =  8;};
};

class CfgIdentities
 
{
class Tom  
 
{
 
name = Tom McCaughey
 
face = face9;
 
glasses = none;
 
speaker = adam;
 
pitch = 1.05;
 
};

class CfgMusic
{
     tracks[]={taps};


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

thats what it looks like atm.

please help :help:

cheers, :thumbsup:
Proud Member of the Volunteer Commando Battalion

Bremmer

  • Guest
Re:Descrip probs
« Reply #1 on: 23 Aug 2002, 18:56:47 »
Do you really need that extra }; after the last config? ;)

You seem to have misplaced it from the end of the cfgidentities section.
« Last Edit: 23 Aug 2002, 18:59:34 by Bremmer »

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Descrip probs
« Reply #2 on: 23 Aug 2002, 18:58:51 »
dunno - its what i normally do.... and it normally goes wrong

*strikes on what could be going wrong*

let me try  ;D
Proud Member of the Volunteer Commando Battalion

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Descrip probs
« Reply #3 on: 23 Aug 2002, 19:04:06 »
ok....

i took away the }; and it made no difference - then i moved the music bit to the start and it worked BUT then all the stuff under it didnt work - no identity, no onload intros nowt

whats gooooing wrong? :help:

cheers :thumbsup:

Code: [Select]
class CfgMusic
{
     tracks[]={taps};


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

onLoadMission = "Engineer Camp";
onLoadIntro = "Evac Site";

minScore=1001;
avgScore=1600;
maxScore=2600;

class Weapons
{
class Steyr
{count =  2;};
class G36a
{count =  2;};
};

class Magazines
{
class G36amag
{count =  8;};
class Steyrmag
{count =  8;};
};

class CfgIdentities
 
{
class Tom  
 
{
 
name = Tom McCaughey
 
face = face9;
 
glasses = none;
 
speaker = adam;
 
pitch = 1.05;
 
};

};

 ::) thats what it looks like now
« Last Edit: 23 Aug 2002, 19:05:09 by Messiah »
Proud Member of the Volunteer Commando Battalion

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Descrip probs
« Reply #4 on: 23 Aug 2002, 19:11:21 »
lol

missed a bloody }; after the first one after the music config

cheers bremmer - helps alot.

:thumbsup:
Proud Member of the Volunteer Commando Battalion

Bremmer

  • Guest
Re:Descrip probs
« Reply #5 on: 23 Aug 2002, 19:12:13 »
OK - now your cfgidentities is correct, but your missing a }; from the end of the music bit. Try indenting at each new section to make spotting missing brackets easier.


onLoadMission = "Engineer Camp";
onLoadIntro = "Evac Site";

minScore=1001;
avgScore=1600;
maxScore=2600;

class Weapons
{
            class Steyr
            {count =  2;};
            class G36a
            {count =  2;};
};

class Magazines
{
            class G36amag
            {count =  8;};
            class Steyrmag
            {count =  8;};
};

class CfgIdentities
{
class Tom  
      {
           name = Tom McCaughey
           face = face9;
           glasses = none;
           speaker = adam;
           pitch = 1.05;
       };
};

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


[edit] You beat me to it! Still - the indenting tip is worth leaving this post up for.[/edit]
« Last Edit: 23 Aug 2002, 19:14:56 by Bremmer »

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Descrip probs
« Reply #6 on: 24 Aug 2002, 00:49:19 »
I hate them brackets  :tomato: ::)