Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: What's goin on with my description.ext?  (Read 1059 times)

0 Members and 1 Guest are viewing this topic.

Gooner861

  • Guest
What's goin on with my description.ext?
« on: 24 May 2004, 11:09:05 »
I know this shud probably be put in the topic at the top of this section but what the hell.

Right this is my description.ext:

class CfgMusic
{
   tracks[]={music, crimson};

   class music
   {
   name = "ROCK";
   sound[] = {\music\music.ogg, db+0, 1.0};
};
   class crimson
   {
   name = "crimson";
   sound[] = {\music\crimson.ogg, db+0, 1.0};
   };
};
};

Now it worked fine before wen i just had the one class which was "ROCK", but now i want to add another song to the list so i added "crimson", thinking ive dun it all rite. Now wen i go into the mission editor and i try to load up my mission where this music has been put, the whole game crashes and an error comes up like this:

Error
opflashpoint/ file name/ mission name/ description.ext (sum weird symbol like a D with a hash through it) encountered instead of '='

I dont understand, all the = signs are where they shud b  ??? .

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:What's goin on with my description.ext?
« Reply #1 on: 24 May 2004, 12:10:55 »
didn't really look at your ext, just used the wizard to make 1 of my own with your music names, here it is, hope it helps:
 
Code: [Select]
class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {music, crimson};

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

sheltem

  • Guest
Re:What's goin on with my description.ext?
« Reply #2 on: 24 May 2004, 13:43:58 »
Looks like you've got one closing bracket to much...
There should only be two and not three at the end ;)

Gooner861

  • Guest
Re:What's goin on with my description.ext?
« Reply #3 on: 24 May 2004, 19:14:01 »
This is really odd, thanks for the suggestions guys but it's still not workin ??? .

I copied and pasted Zombie's description.ext and replaced it with my existing one, but it still crashed each time i tryed to load my mission from the editor with the same error message.  ??? .
I can't even edit the mission i'm making!!!!!

Anymore suggestions as to what the hell's goin on would be greatly appreciated as it worked fine b4 wen i only put one song in. I'll get rid of the description.ext for now and finish editing the mission im making but i'll still want the sound files later.

Thanks.

Rokket

  • Guest
Re:What's goin on with my description.ext?
« Reply #4 on: 25 May 2004, 09:15:14 »
I don't know if this will help, it's from a mission that works. I just changed the music names to make a better example. Alos, not sure, but maybe the name "music" is reserved...

class CfgMusic
{
   tracks[]={mood};

   class song25
   {
      name = "(Song25) Name of song";
      sound[] = {\music\song25.ogg, db+0, 1.0};
   };
   class song3
   {
      name = "(Song3) Name of song";
      sound[] = {\music\song3.ogg, db+0, 1.0};
   };
   class song5
   {
      name = "(Song5) Name of song";
      sound[] = {\music\song5.ogg, db+10, 1.0};
   };

};

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:What's goin on with my description.ext?
« Reply #5 on: 25 May 2004, 13:53:24 »
Yep, my goof, I believe "music"  is reserved.  Also instead of typing it freehand have you tried an editing program?  Chris's ofp script editor has many wizards that are very useful.  Find it here:
http://www.chenderman.com/CHOFPSE.htm

Gooner861

  • Guest
Re:What's goin on with my description.ext?
« Reply #6 on: 25 May 2004, 14:01:36 »
Oh yeah i forgot about that i'll try it after trying rokkets suggestion.
The weird thing is though wen i had one piece of music i still named it "music" and it worked  ??? . I have to stop complicating things. I'll change the name to sumthing else.

Thanks.

Gooner861

  • Guest
Re:What's goin on with my description.ext?
« Reply #7 on: 28 May 2004, 13:18:48 »
Yes FINALLY!!!!!!!!!!  ;D

Thanks people it works !!!!

Cheers Rokket, i used ur format and it works fine.

 ;D