OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Messiah 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
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:
-
Do you really need that extra }; after the last config? ;)
You seem to have misplaced it from the end of the cfgidentities section.
-
dunno - its what i normally do.... and it normally goes wrong
*strikes on what could be going wrong*
let me try ;D
-
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:
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
-
lol
missed a bloody }; after the first one after the music config
cheers bremmer - helps alot.
:thumbsup:
-
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]
-
I hate them brackets :tomato: ::)