mumbled_frog 0 Posted November 14, 2003 I'm so close to completing my campaign...all thats still left to go is my description.ext file! The game crashed back to the desktop and I get an error message popping up saying.... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">campaigns\invasion dr. no v.2\description.ext/Campaign/thecampaign/: 'P' encountered instead of '{' This is my description.ext file. I followed the tutorial  any help would be much appriectiated  <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgIdentities {   class don   { name = "John Manilla"; face = "sebvface5"; glasses = "none"; speaker = "Marc"; pitch =1;   }; }; class Awards { }; class Penalties { }; class MissionDefault {   lives = -1;   lost =;   end1 =;   end2 =;   end3 =;   end4 =;   end5 =;   end6 =; }; class Campaign {   name = "Invasion Dr. No";   firstBattle = thecampaign;   class thecampaign   {     name = "Whole Campaign";     cutscene =;     firstMission = Invasion;     end1 =;     end2 =;     end3 =;     end4 =;     end5 =;     end6 =;     lost =;         class Invasion: MissionDefault { end1 = Counter; lost = Invasion; template = Invasion.drno_isl; }; class Counter: MissionDefault { end1 = Clearance; lost = Counter; template = Counter.drno_isl; }; class Clearance: MissionDefault { end1 = Janga; lost = Clearance; template = Clearance.drno_isl;         }; class Janga: MissionDefault { end1 = Securance; lost = Janga; template = Janga.drno_isl;         }; class Securance: MissionDefault { end1 = Victory; lost = Securance; template = Securance.drno_isl;         }; class Victory: MissionDefault { end1 = Mortuary; lost = Victory; template = Victory.drno_isl;         }; class Mortuary: MissionDefault { end1 = Sorrow; template = Mortuary.drno_isl; }; class Sorrow: MissionDefault { end1 = Forward Position; lost = Sorrow; template = Sorrow.drno_isl; }; class Forward Position: MissionDefault { end1 = Combat Patrol; lost = Forward Position; template = Forward Position.drno_isl; }; class Combat Patrol: MissionDefault { end1 = Castle's Laura; lost = Combat Patrol; template = Combat Patrol.drno_isl; }; class Castle's Laura: MissionDefault { end1 = Spit; lost = Castle's Laura; template = Castle's Laura.drno_isl; }; class Spit: MissionDefault { end1 = The Coast; lost = Spit; template = Spit.drno_isl; }; class The Coast: MissionDefault { end1 = The Line; lost = The Coast; template = The Coast.drno_isl; }; class The Line: MissionDefault { end1 = Village; lost = The Line; template = The Line.drno_isl; }; class Village: MissionDefault { end1 = Advance; lost = Village; template = Village.drno_isl; }; class Advance: MissionDefault { end1 = New Weapon; lost = Advance; template = Advance.drno_isl; }; class New Weapon: MissionDefault { end1 = A town too far; lost = New Weapon; template = New Weapon.drno_isl; }; class A town too far: MissionDefault { end1 = Port Andress; lost = A town too far; template = A town too far.drno_isl; }; class Port Andress: MissionDefault { end1 = Rapid Actions; lost = Port Andress; template = Port Andress.drno_isl; }; class Rapid Actions: MissionDefault { end1 = Fate; lost = Rapid Actions; template = Rapid Actions.drno_isl; }; class Fate: MissionDefault { end1 = Decisive Battle; end2 = Solitude; lost = Fate; template = Fate.drno_isl; }; class Decisive Battle: MissionDefault { end1 = Forward Observer; lost = Decisive Battle; template = Decisive Battle.drno_isl; }; class Solitude: MissionDefault { end1 = Escape; lost = Solitude; template = Solitude.drno_isl; }; class Forward Observer: MissionDefault { end1 = Broccoli Airport; lost = Forward Observer; template = Forward Observer.drno_isl; }; class Escape: MissionDefault { end1 = Home; lost = Escape; template = Escape.drno_isl; }; class Home: MissionDefault { lost = Home; template = Home.drno_isl; }; class Broccoli Airport: MissionDefault end1 = The last Stand; lost = Broccoli Airport; template = Broccoli Airport.drno_isl; }; class The last stand: MissionDefault { end1 = Home; lost = The last stand; template = The last stand.drno_isl;     };   }; }; class CfgRadio {   sounds[]={}; }; class CfgMusic {   tracks[]={};}; }; class CfgSounds {   sounds[]={}; }; Share this post Link to post Share on other sites
Skul 0 Posted November 14, 2003 Quote[/b] ]class The last stand: MissionDefault{ end1 = Home; lost = The last stand; template = The last stand.drno_isl; Â Â Â }; Â Â }; }; <--- Maybe it has something to do with the third }; ? Try removing that, as the error window which comes up never gives you accurate information. I know your pain. You're so close to campaign completion, but then something stands in its way! Thanks to RED, mine is alright and is ready for beta testing. Anyway, I hope what I suggested helps you out. What's your campaign about? [Gareth Gates must die] Share this post Link to post Share on other sites
gnurf 0 Posted November 14, 2003 Is the last }; really supposed to be there, in CfgMusic? If im not misstaken there is one too many. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgMusic { Â tracks[]={};}; }; counted the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> }; and the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> { . If i didnt misscount the ratio is 42 against 40. Share this post Link to post Share on other sites
mumbled_frog 0 Posted November 15, 2003 Sorry guys I tried both those bits of help and neither helped, I've still got the same blasted error message <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">campaigns\invasion dr. no v.2\description.ext/Campaign/thecampaign/: 'P' encountered instead of '{' Damnit! My campaign is very basic, especially at the start where I had very little editing knowledge. Towards the end of the campaign the missions become much more ingenious and inventive. I don't know about releasing it, its very basic and corny! Well, I can't even play it myself let alone release it yet! Share this post Link to post Share on other sites
Skul 0 Posted November 15, 2003 Try using no spaces in the names of the missions. Keep them as one word, maybe that's the problem. Make the folders something like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">mycampaign1.drno_isl for mission 1, and the same for mission 2 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">mycampaign2.drno_isl Then the description.ext names something like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class theintro: MissionDefault { end1 = firstmission; lost = theintro; template = mycampaign1.drno_isl; }; class firstmission: MissionDefault { end1 = secondmission; lost = firstmission; template = mycampaign2.drno_isl; }; Something like that..? [Gareth Gates must die] Share this post Link to post Share on other sites
crashdome 3 Posted November 15, 2003 You have spaces. You can't name a class or anything else with a space in it. The problem is the first "Forward Postion" - which is the first one with spaces. It has encountered the P in "Position" and has no idea whats going on. EDIT: Missed that last post..... oops... yeah what he said above! Share this post Link to post Share on other sites
mumbled_frog 0 Posted November 16, 2003 Tried that idea now..... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgIdentities {   class don   { name = "John Manilla"; face = "sebvface5"; glasses = "none"; speaker = "Marc"; pitch =1;   }; }; class Awards { }; class Penalties { }; class MissionDefault {   lives = -1;   lost =;   end1 =;   end2 =;   end3 =;   end4 =;   end5 =;   end6 =; }; class Campaign {   name = "Invasion Dr. No";   firstBattle = thecampaign;   class thecampaign   {     name = "Whole Campaign";     cutscene =;     firstMission = Invasion;     end1 =;     end2 =;     end3 =;     end4 =;     end5 =;     end6 =;     lost =;         class Invasion: MissionDefault { end1 = Counter; lost = Invasion; template = Invasion.drno_isl; }; class Counter: MissionDefault { end1 = Clearance; lost = Counter; template = Counter.drno_isl; }; class Clearance: MissionDefault { end1 = Janga; lost = Clearance; template = Clearance.drno_isl;         }; class Janga: MissionDefault { end1 = Securance; lost = Janga; template = Janga.drno_isl;         }; class Securance: MissionDefault { end1 = Victory; lost = Securance; template = Securance.drno_isl;         }; class Victory: MissionDefault { end1 = Mortuary; lost = Victory; template = Victory.drno_isl;         }; class Mortuary: MissionDefault { end1 = Sorrow; template = Mortuary.drno_isl; }; class Sorrow: MissionDefault { end1 = ForwardPosition; lost = Sorrow; template = Sorrow.drno_isl; }; class ForwardPosition: MissionDefault { end1 = CombatPatrol; lost = ForwardPosition; template = ForwardPosition.drno_isl; }; class CombatPatrol: MissionDefault { end1 = Castle'sLaura; lost = CombatPatrol; template = CombatPatrol.drno_isl; }; class Castle'sLaura: MissionDefault { end1 = Spit; lost = Castle'sLaura; template = Castle'sLaura.drno_isl; }; class Spit: MissionDefault { end1 = TheCoast; lost = Spit; template = Spit.drno_isl; }; class TheCoast: MissionDefault { end1 = TheLine; lost = TheCoast; template = TheCoast.drno_isl; }; class TheLine: MissionDefault { end1 = Village; lost = TheLine; template = TheLine.drno_isl; }; class Village: MissionDefault { end1 = Advance; lost = Village; template = Village.drno_isl; }; class Advance: MissionDefault { end1 = NewWeapon; lost = Advance; template = Advance.drno_isl; }; class NewWeapon: MissionDefault { end1 = ATownTooFar; lost = NewWeapon; template = NewWeapon.drno_isl; }; class ATownTooFar: MissionDefault { end1 = PortAndress; lost = ATownTooFar; template = ATownTooFar.drno_isl; }; class PortAndress: MissionDefault { end1 = RapidActions; lost = PortAndress; template = PortAndress.drno_isl; }; class RapidActions: MissionDefault { end1 = Fate; lost = RapidActions; template = RapidActions.drno_isl; }; class Fate: MissionDefault { end1 = DecisiveBattle; end2 = Solitude; lost = Fate; template = Fate.drno_isl; }; class DecisiveBattle: MissionDefault { end1 = ForwardObserver; lost = DecisiveBattle; template = DecisiveBattle.drno_isl; }; class Solitude: MissionDefault { end1 = Escape; lost = Solitude; template = Solitude.drno_isl; }; class ForwardObserver: MissionDefault { end1 = BroccoliAirport; lost = ForwardObserver; template = ForwardObserver.drno_isl; }; class Escape: MissionDefault { end1 = Home; lost = Escape; template = Escape.drno_isl; }; class Home: MissionDefault { lost = Home; template = Home.drno_isl; }; class BroccoliAirport: MissionDefault end1 = ThelastStand; lost = BroccoliAirport; template = BroccoliAirport.drno_isl; }; class Thelaststand: MissionDefault { end1 = Home; lost = Thelaststand; template = Thelaststand.drno_isl;     };   }; class CfgRadio {   sounds[]={}; }; class CfgMusic {   tracks[]={} }; class CfgSounds {   sounds[]={}; }; And I now get the message... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">campaigns\invasion dr. no v.2\description.ext/Campaign/thecampaign/: ''' encountered instead of '{' And I have renamed the missions to suit the description.ext file Share this post Link to post Share on other sites
crashdome 3 Posted November 16, 2003 You forgot a semi-colon at the end of tracks in cfgMusic... should be: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic { Â tracks[]={}; }; Share this post Link to post Share on other sites
mumbled_frog 0 Posted November 16, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">You forgot a semi-colon at the end of tracks in cfgMusic... should be: Code Sample  class CfgMusic {  tracks[]={}; }; So it should be.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic {  tracks[]={}; }; }; class CfgSounds...etc or... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic {  tracks[]={}; }; class CfgSounds...etc Share this post Link to post Share on other sites
gnurf 0 Posted November 17, 2003 Still not working? I´m no expert at campaigns but i´ve looked at the structure of the new code to try and find things that has a different pattern to the rest. As i said im no expert but all start braces must have an end brace right? the number of braces seem to match 40 { to 40 }; but there seems to be some irregularities. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class BroccoliAirport: MissionDefault end1 = ThelastStand; lost = BroccoliAirport; template = BroccoliAirport.drno_isl; }; compared to all other classes <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class ForwardObserver: MissionDefault { end1 = BroccoliAirport; lost = ForwardObserver; template = ForwardObserver.drno_isl; }; there seems to be a { missing, and the code should probably look like this <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class BroccoliAirport: MissionDefault {                    <== added end1 = ThelastStand; lost = BroccoliAirport; template = BroccoliAirport.drno_isl; }; If im correct in my assumption that the span of the Campaign class reaches all the way down to the brace above class CfgRadio <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Campaign {                    <== class Campaign starts here  name = "Invasion Dr. No";  firstBattle = thecampaign; ... ... ... class Thelaststand: MissionDefault { end1 = Home; lost = Thelaststand; template = Thelaststand.drno_isl;    };   };               <== class Campaign ends here? class CfgRadio then there is no end brace for the thecampaign class <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class thecampaign  {                    <==Is never ended    name = "Whole Campaign";    cutscene =;    firstMission = Invasion;    end1 =;    end2 =;    end3 =;    end4 =;    end5 =;    end6 =;    lost =; I have no clue about the span of this class but i suspect it´s supposed to look either like this<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class thecampaign  {    name = "Whole Campaign";    cutscene =;    firstMission = Invasion;    end1 =;    end2 =;    end3 =;    end4 =;    end5 =;    end6 =;    lost =;  }; or end right before class Campaign ends <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ... ... class Thelaststand: MissionDefault { end1 = Home; lost = Thelaststand; template = Thelaststand.drno_isl;    };   };   <== end class thecampaign };     <== end class Campaign class CfgRadio either way since it´s nested inside the campaign Class it must end before the class Campaign ends. Thats what i could find plus the missing ; mentioned byCrash Dome. Good luck [debugging is a state of mind] Share this post Link to post Share on other sites
Skul 0 Posted November 17, 2003 I think there needs to be an end brace for each 'part'. Like ClassCfgIdentities. There is a start brace and an ending brace holding the character's information. When all the identites are put in, you need an extra ending brace to tell OFP that you're done with the identities. I'm no expert, either, but that's what I'm guessing. [Gareth Gates must die] Share this post Link to post Share on other sites
mumbled_frog 0 Posted November 19, 2003 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgIdentities { class don { name = "John Manilla"; face = "sebvface5"; glasses = "none"; speaker = "Marc"; pitch =1; }; }; class Awards { }; class Penalties { }; class MissionDefault { lives = -1; lost =; end1 =; end2 =; end3 =; end4 =; end5 =; end6 =; }; class Campaign { name = "Invasion Dr. No"; firstBattle = thecampaign; class thecampaign { name = "Whole Campaign"; cutscene =; firstMission = Invasion; end1 =; end2 =; end3 =; end4 =; end5 =; end6 =; lost =; class Invasion: MissionDefault { end1 = Counter; lost = Invasion; template = Invasion.drno_isl; }; class Counter: MissionDefault { end1 = Clearance; lost = Counter; template = Counter.drno_isl; }; class Clearance: MissionDefault { end1 = Janga; lost = Clearance; template = Clearance.drno_isl; }; class Janga: MissionDefault { end1 = Securance; lost = Janga; template = Janga.drno_isl; }; class Securance: MissionDefault { end1 = Victory; lost = Securance; template = Securance.drno_isl; }; class Victory: MissionDefault { end1 = Mortuary; lost = Victory; template = Victory.drno_isl; }; class Mortuary: MissionDefault { end1 = Sorrow; template = Mortuary.drno_isl; }; class Sorrow: MissionDefault { end1 = ForwardPosition; lost = Sorrow; template = Sorrow.drno_isl; }; class ForwardPosition: MissionDefault { end1 = CombatPatrol; lost = ForwardPosition; template = ForwardPosition.drno_isl; }; class CombatPatrol: MissionDefault { end1 = Castle'sLaura; lost = CombatPatrol; template = CombatPatrol.drno_isl; }; class Castle'sLaura: MissionDefault { end1 = Spit; lost = Castle'sLaura; template = Castle'sLaura.drno_isl; }; class Spit: MissionDefault { end1 = TheCoast; lost = Spit; template = Spit.drno_isl; }; class TheCoast: MissionDefault { end1 = TheLine; lost = TheCoast; template = TheCoast.drno_isl; }; class TheLine: MissionDefault { end1 = Village; lost = TheLine; template = TheLine.drno_isl; }; class Village: MissionDefault { end1 = Advance; lost = Village; template = Village.drno_isl; }; class Advance: MissionDefault { end1 = NewWeapon; lost = Advance; template = Advance.drno_isl; }; class NewWeapon: MissionDefault { end1 = ATownTooFar; lost = NewWeapon; template = NewWeapon.drno_isl; }; class ATownTooFar: MissionDefault { end1 = PortAndress; lost = ATownTooFar; template = ATownTooFar.drno_isl; }; class PortAndress: MissionDefault { end1 = RapidActions; lost = PortAndress; template = PortAndress.drno_isl; }; class RapidActions: MissionDefault { end1 = Fate; lost = RapidActions; template = RapidActions.drno_isl; }; class Fate: MissionDefault { end1 = DecisiveBattle; end2 = Solitude; lost = Fate; template = Fate.drno_isl; }; class DecisiveBattle: MissionDefault { end1 = ForwardObserver; lost = DecisiveBattle; template = DecisiveBattle.drno_isl; }; class Solitude: MissionDefault { end1 = Escape; lost = Solitude; template = Solitude.drno_isl; }; class ForwardObserver: MissionDefault { end1 = BroccoliAirport; lost = ForwardObserver; template = ForwardObserver.drno_isl; }; class Escape: MissionDefault { end1 = Home; lost = Escape; template = Escape.drno_isl; }; class Home: MissionDefault { lost = Home; template = Home.drno_isl; }; class BroccoliAirport: MissionDefault { end1 = ThelastStand; lost = BroccoliAirport; template = BroccoliAirport.drno_isl; }; class Thelaststand: MissionDefault { end1 = Home; lost = Thelaststand; template = Thelaststand.drno_isl; }; }; }: class CfgRadio { sounds[]={}; }; class CfgMusic { tracks[]={}; }; class CfgSounds { sounds[]={}; }; Same problem, this is the current description.ext Same error message. There must be another '{' missing somewhere Share this post Link to post Share on other sites
RED 0 Posted November 19, 2003 I have only glanced at this, but try these: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class thecampaign  {    name = "Whole Campaign";    cutscene =;    firstMission = Invasion;    end1 =;    end2 =;    end3 =;    end4 =;    end5 =;    end6 =;    lost =; } <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Thelaststand: MissionDefault { end1 = Home; lost = Thelaststand; template = Thelaststand.drno_isl; }; }; RED Share this post Link to post Share on other sites
mumbled_frog 0 Posted November 19, 2003 Tried those ideas RED....still no joy at the moment! Goddamn description file! Share this post Link to post Share on other sites