OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 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 ??? .
-
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:
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};
};
};
-
Looks like you've got one closing bracket to much...
There should only be two and not three at the end ;)
-
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.
-
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};
};
};
-
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 (http://www.chenderman.com/CHOFPSE.htm)
-
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.
-
Yes FINALLY!!!!!!!!!! ;D
Thanks people it works !!!!
Cheers Rokket, i used ur format and it works fine.
;D