blow56 Posted September 3, 2007 Share Posted September 3, 2007 This is my second attempt to get ANY sort of answer from the people who know - using the two-Battle Campaign scripting example provided I cannot get any of my campaigns to go past two battles. I thought cut and paste (and filling in the relevant slots) would allow more. If I am missing some sort of two-battle limiter, please let me know - all I get is a .exe error which shuts me down just as the third Battle is loading. ANY help welcome. 0 Quote Link to comment Share on other sites More sharing options...
SlowMotion Posted September 3, 2007 Share Posted September 3, 2007 Haven't done any campaigns, but if you show your campaigns.txt maybe someone can spot what's wrong. It's very difficult to know what the problem is without seeing that file. 0 Quote Link to comment Share on other sites More sharing options...
blow56 Posted September 3, 2007 Author Share Posted September 3, 2007 You are absolutely right - here you go: /* Note the characters before and after this text. They allow designer to put in comments, or notes, such as why something was done a certain way. Anything between these characters is ignored by Combat Mission. Otherwise an error will occur when the Campaign is compiled. */ // Alternatively two back slashes can be entered to create a comment. There’s no functional difference between this method and the previous mentioned method. /* Campaign Header*/ [PLAYER FORCE] blue // options are: blue/red [HUMAN OPPONENT ALLOWED] no // no/yes [bLUE VICTORY TEXT] You won! [bLUE DEFEAT TEXT] You lost! [RED VICTORY TEXT] You won! [RED DEFEAT TEXT] You lost! /*Battle #1*/ [bATTLE NAME] Marching Through Georgia // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] Kobuleti [NEXT BATTLE IF LOSE] Batumi // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 /*Battle #2*/ [bATTLE NAME] Kobuleti // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] Burnati [NEXT BATTLE IF LOSE] // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 /*Battle #3*/ [bATTLE NAME] Burnati // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] Baghdadi [NEXT BATTLE IF LOSE] // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 /*Battle #4*/ [bATTLE NAME] Baghdadi // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] Zeda Sakara [NEXT BATTLE IF LOSE] // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 /*Battle #5*/ [bATTLE NAME] Zeda Sakara // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] [NEXT BATTLE IF LOSE] // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 /*Battle #6*/ [bATTLE NAME] Batumi // note, do not include “.btt”, just the file name [WIN THRESHOLD] major victory // total defeat, major defeat, tactical defeat, minor defeat, draw, minor victory, tactical victory, major victory, total victory [NEXT BATTLE IF WIN] Kobuleti [NEXT BATTLE IF LOSE] // a blank signals an end of the campaign [bLUE REFIT %] 20 //always express this a number between 0 and 100 [bLUE REPAIR VEHICLE %] 40 [bLUE RESUPPLY %] 70 [bLUE REST %] 80 [RED REFIT %] 10 [RED REPAIR VEHICLE %] 10 [RED RESUPPLY %] 50 [RED REST %] 60 0 Quote Link to comment Share on other sites More sharing options...
Cpl Steiner Posted September 4, 2007 Share Posted September 4, 2007 blow56, Take out the extraneous line-feed before Battle #3 and I reckon it will work. Failing that, I can send you a script that definitely works fine (4 main battles plus 2 branches). 0 Quote Link to comment Share on other sites More sharing options...
SlowMotion Posted September 4, 2007 Share Posted September 4, 2007 I don't know what's wrong with your file, but I made a very simple 3 battle campaign for testing purposes. I used the 2 battle sample campaign txt file as starting point. Then I copied battle2's data to battle3 and edited battle names and those lines which tell next battle if you win or lose. In those I used the idea that if you win you get to next battle, if you lose campaign ends. Using these steps the three battle campaign compiled ok and I was able to play all three battles without any crashes. I lost the last battle, yet the game told I won the campaign. Maybe that campaign text file needs some tweaking still Maybe not much help, but there's certainly no two battle limit. 0 Quote Link to comment Share on other sites More sharing options...
blow56 Posted September 5, 2007 Author Share Posted September 5, 2007 Thanks for all your help - I will try the line feed suggestion - but if Cpl Steiner sends me his script, I will salute him. I will let you know if the line feed works once I manage to work my way through the Battles (no quick way of testing!!) 0 Quote Link to comment Share on other sites More sharing options...
Cpl Steiner Posted September 6, 2007 Share Posted September 6, 2007 blow56, There is a very easy way to test campaign scripts. Assuming the player will be Blue force, give Blue a Friendly Bonus of like 5000 points for each scenario so Blue automatically wins if you select "ceasefire". To get a loss, just select "surrender". This way you should be able to test all branches without actually playing a single battle. You just immediately click the menu button and select either ceasefire or surrender. Hope this helps. P.S. - Don't forget to take the bonus out once you have tested the script! [ September 06, 2007, 12:15 PM: Message edited by: Cpl Steiner ] 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.