Jump to content
  • Announcements

    • Battlefront.com

      Special Upgrade 4 Tech Tips   12/27/2016

      Hi all! Now that Upgrade 4 is out and about in large quantities we have now discovered a few SNAFUs that happen out in the scary, real world that is home computing.  Fortunately the rate of problems is extremely small and so far most are easily worked around.  We've identified a few issues that have similar causes which we have clear instructions for work arounds here they are: 1.  CMRT Windows customers need to re-license their original key.  This is a result of improvements to the licensing system which CMBN, CMBS, and CMFB are already using.  To do this launch CMRT with the Upgrade and the first time enter your Engine 4 key.  Exit and then use the "Activate New Products" shortcut in your CMRT folder, then enter your Engine 3 license key.  That should do the trick. 2.  CMRT and CMBN MacOS customers have a similar situation as #2, however the "Activate New Products" is inside the Documents folder in their respective CM folders.  For CMBN you have to go through the process described above for each of your license keys.  There is no special order to follow. 3.  For CMBS and CMFB customers, you need to use the Activate New Products shortcut and enter your Upgrade 4 key.  If you launch the game and see a screen that says "LICENSE FAILURE: Base Game 4.0 is required." that is an indication you haven't yet gone through that procedure.  Provided you had a properly functioning copy before installing the Upgrade, that should be all you need to do.  If in the future you have to install from scratch on a new system you'll need to do the same procedure for both your original license key and your Upgrade 4.0 key. 4.  There's always a weird one and here it is.  A few Windows users are not getting "Activate New Products" shortcuts created during installation.  Apparently anti-virus software is preventing the installer from doing its job.  This might not be a problem right now, but it will prove to be an issue at some point in the future.  The solution is to create your own shortcut using the following steps: Disable your anti-virus software before you do anything. Go to your Desktop, right click on the Desktop itself, select NEW->SHORTCUT, use BROWSE to locate the CM EXE that you are trying to fix. The location is then written out. After it type in a single space and then paste this:

      -showui

      Click NEXT and give your new Shortcut a name (doesn't matter what). Confirm that and you're done. Double click on the new Shortcut and you should be prompted to license whatever it is you need to license. At this time we have not identified any issues that have not been worked around.  Let's hope it stays that way Steve
    • Battlefront.com

      Forum Reorganization   10/12/2017

      We've reorganized our Combat Mission Forums to reflect the fact that most of you are now running Engine 4 and that means you're all using the same basic code.  Because of that, there's no good reason to have the discussion about Combat Mission spread out over 5 separate sets of Forums.  There is now one General Discussion area with Tech Support and Scenario/Mod Tips sub forums.  The Family specific Tech Support Forums have been moved to a new CM2 Archives area and frozen in place. You might also notice we dropped the "x" from distinguishing between the first generation of CM games and the second.  The "x" was reluctantly adopted back in 2005 or so because at the time we had the original three CM games on European store shelves entitled CM1, CM2, and CM3 (CMBO, CMBB, and CMAK).  We didn't want to cause confusion so we added the "x".  Time has moved on and we have to, so the "x" is now gone from our public vocabulary as it has been from our private vocabulary for quite a while already.  Side note, Charles *NEVER* used the "x" so now we're all speaking the same language as him.  Which is important since he is the one programming them
Sign in to follow this  
Tempestzzzz

Compiling and existing opened stock campaign

Recommended Posts

I recently open  the stock Training Campaign in CM: Normandy using CMBN_Scenario_Organiser_v0.22 downloaded from the repository. Also played around building CAM scripts.

Correct me I'm wrong-I CANNOT recompile and opened campaigned using the aforentioned utility using the CM Editor because Scenarios in already made campaigns are considered 'baked'. I can adjust time, forces and such in the scenarios but I CANNOT Re-compile them again. I can only do that with new scenarios? Correct?

Share this post


Link to post
Share on other sites

I recently open  the stock Training Campaign in CM: Normandy using CMBN_Scenario_Organiser_v0.22 downloaded from the repository. Also played around building CAM scripts.

Correct me I'm wrong-I CANNOT recompile and opened campaigned using the aforentioned utility using the CM Editor because Scenarios in already made campaigns are considered 'baked'. I can adjust time, forces and such in the scenarios but I CANNOT Re-compile them again. I can only do that with new scenarios? Correct?

No idea about that scenario organizer tool, but for the purpose this one would do and at least worth to try:

http://cmmodsiii.greenasjade.net/?p=229

 

Share this post


Link to post
Share on other sites

Thanks-I did a CAM scrip file and I don't get error messages (after several error filed attempts). But I must have something missing in the script since it doesn't create the Campaign file.

Share this post


Link to post
Share on other sites

What file do you take for "core" troops (base scenario)? Otherwise it shouldn´t be difficult to recreate the script file from the info given in the tool (refering to ScAnCaDe). Haven´t tried myself though.

Share this post


Link to post
Share on other sites

I just decompiled the training campaign. 3 training missions and changed the time. I wanted to see how the utility work, if I could do a simple edit (time modification) and then recompile. Then try more complicated campaigns and edits later. Baby steps.

I kept getting error messages but figured out the syntax error in the CAM file. I Used the example of the CAM file in the manual only using the name of the scenario instead of "My Little Battle."

The base scenario was the first scenario regarding movement Devon - Basic Training #00.btt

Share this post


Link to post
Share on other sites

I just decompiled the training campaign. 3 training missions and changed the time. I wanted to see how the utility work, if I could do a simple edit (time modification) and then recompile. Then try more complicated campaigns and edits later. Baby steps.

I kept getting error messages but figured out the syntax error in the CAM file. I Used the example of the CAM file in the manual only using the name of the scenario instead of "My Little Battle."

The base scenario was the first scenario regarding movement Devon - Basic Training #00.btt

Share this post


Link to post
Share on other sites

Hey kohlenklau.:lol: I've seen your work and you took it further then I ever could.

I lurk here more then I post.

So many games -so little time-BattleFront, and a bunch of other brands (indies and STEAM) who will remain nameless.  Just eat into my time now. Messing with campaigns CM and mess around with the Black Sea Demo (I like). Hope you are on the road to Wellville!!!

 

 

Share this post


Link to post
Share on other sites

I recently open  the stock Training Campaign in CM: Normandy using CMBN_Scenario_Organiser_v0.22 downloaded from the repository. Also played around building CAM scripts.

Correct me I'm wrong-I CANNOT recompile and opened campaigned using the aforentioned utility using the CM Editor because Scenarios in already made campaigns are considered 'baked'. I can adjust time, forces and such in the scenarios but I CANNOT Re-compile them again. I can only do that with new scenarios? Correct?

Hi Tempestzzzz,

as the creator of the tool you're using, some comments and (hopefully) help.

First of all, I would urge you to not use the CMBN_Scenario_Organiser_v0.22 any more. It is quite ancient by now (released 2011) and has been superseded by CMx2 ScAnCaDe. RockinHarry has already provided a download link to the last version of ScAnCaDe, which also works pretty much in the same way as the previous Scenario Organiser.

Secondly, it is entirely possible to re-compile campaigns, it just requires a little bit of extra work. You already found out about having to rewrite the campaign script. It shouldn't be too difficult since basically ScAnCaDe provides all the required info in a different format.
What ScAnCaDe does not provide is the Core unit file used to originally compile the campaign. This means that the original campaign briefing will be missing from the recompiled campaign, since this would be included in the Core unit file. I think you can take a copy of any scenario file of a campaign and just use it as the core unit file. This will not necessarily give you all the core units, but it should be good enough if you don't want to change the troops too much.

Out of interest, I did decompile the Devon - Basic Training campaign. This gave me the following three scenario files (using CMx2 ScAnCaDe v1.8):

  • Devon - Basic Training #00_Bn Cmpn 01 Out on Patrol.btt
  • Devon - Basic Training #01_Bn Cmpn 02 Firing Range.btt
  • Devon - Basic Training #02_Bn Cmpn 03 Battle Drill.btt

I then renamed those files as follows, since there could be problems with the "#" or "_" characters in the filenames:

  • Bn Cmpn 01 Out on Patrol.btt
  • Bn Cmpn 02 Firing Range.btt
  • Bn Cmpn 03 Battle Drill.btt

I then copied the first file and renamed it Devon Core.btt, which represents the core unit file.

Then I used the following script:

/* Campaign Header*/
[PLAYER FORCE] blue
[HUMAN OPPONENT ALLOWED] no
[BLUE VICTORY TEXT] You won!
[BLUE DEFEAT TEXT] You lost!
[RED VICTORY TEXT] You won!
[RED DEFEAT TEXT] You lost!
/*Battle #1*/
[BATTLE NAME] Bn Cmpn 01 Out on Patrol
[WIN THRESHOLD] draw
[NEXT BATTLE IF WIN] Bn Cmpn 02 Firing Range
[NEXT BATTLE IF LOSE] Bn Cmpn 02 Firing Range
[BLUE REFIT %] 0
[BLUE REPAIR VEHICLE %] 0
[BLUE RESUPPLY %] 0
[BLUE REST %] 0
[RED REFIT %] 0
[RED REPAIR VEHICLE %] 0
[RED RESUPPLY %] 0
[RED REST %] 0
/*Battle #2*/
[BATTLE NAME] Bn Cmpn 02 Firing Range
[WIN THRESHOLD] draw
[NEXT BATTLE IF WIN] Bn Cmpn 03 Battle Drill
[NEXT BATTLE IF LOSE] Bn Cmpn 03 Battle Drill
[BLUE REFIT %] 0
[BLUE REPAIR VEHICLE %] 0
[BLUE RESUPPLY %] 0
[BLUE REST %] 0
[RED REFIT %] 0
[RED REPAIR VEHICLE %] 0
[RED RESUPPLY %] 0
[RED REST %] 0
/*Battle #3*/
[BATTLE NAME] Bn Cmpn 03 Battle Drill
[WIN THRESHOLD] draw
[NEXT BATTLE IF WIN] 
[NEXT BATTLE IF LOSE] 
[BLUE REFIT %] 0
[BLUE REPAIR VEHICLE %] 0
[BLUE RESUPPLY %] 0
[BLUE REST %] 0
[RED REFIT %] 0
[RED REPAIR VEHICLE %] 0
[RED RESUPPLY %] 0
[RED REST %] 0

Then using the scenario editor (in CMBN v3.11), I could create a campaign file, which after decompiling showed the exact same structure as the original campaign file.

I hope this helps, campaign compilation is sometimes not so easy due to the minimalist feedback you receive as a user.

Cheers,

Mike

Share this post


Link to post
Share on other sites

Hm...the interesting thing about the Devon training campaign is that there´s no use made of the "core" file (or core units) feature, which could be of concern when re-compiling a campaign that has it. I´d i.e checked the files from Courage and Fortitude campaign which has partly different "core" formations in the various single scenarios, so it seems one needs to follow the approach figuring out which of the scenarios has all core troops in use and then saving that particular scenario as the core troops file. In case there´s no scenario which has all of the core formations that are used in the whole campaign included (cause one or another scenario has them partly deleted), then there could likely be a problem with proper compositioning of a (needed) core troops file. Or am I wrong? :wacko:

Share this post


Link to post
Share on other sites

Going to take a look at this-getting ready for a trip though. But I will get back. Thanks Mad Mike. Yeah I suspected the "#" or "_"  fonts were playing havoc on my investigation on my script.  RockinHarry-I'm not at all sure now that simple and short training campaign was the right campaign to play with. Last night I download -per the link in this string ScAnCaDe and will play with that.

However it is heartening to read that the answer to my original question if you can recompile an original campaign is yes-it can be done.

 

UPDATE;
Success-using MadMikes CAM script and ScAnCaDe. And why not-these Keys to the Kingdom worked before of course. But now I know I can do it. [Just change the length of all these simple scenarios to 3 hrs-and the change stayed]

Experience has it's function. I believe my error in the past was using the #  and _ special characters  as pointed out (I'll just use letter font from here out.) And using ScAnCaDe to decompile -since I have all the CM module and everything is up to 3.11.

 

I appreciate the comments and advice and observations from all. :)

Edited by Tempestzzzz

Share this post


Link to post
Share on other sites

Hm...the interesting thing about the Devon training campaign is that there´s no use made of the "core" file (or core units) feature, which could be of concern when re-compiling a campaign that has it. I´d i.e checked the files from Courage and Fortitude campaign which has partly different "core" formations in the various single scenarios, so it seems one needs to follow the approach figuring out which of the scenarios has all core troops in use and then saving that particular scenario as the core troops file. In case there´s no scenario which has all of the core formations that are used in the whole campaign included (cause one or another scenario has them partly deleted), then there could likely be a problem with proper compositioning of a (needed) core troops file. Or am I wrong? :wacko:

Nope, you're quite correct and this is a weak point of ScAnCaDe.

But I was never able to properly figure out the location of the core unit file information in the final campaign file. :(

Share this post


Link to post
Share on other sites

Going to take a look at this-getting ready for a trip though. But I will get back. Thanks Mad Mike. Yeah I suspected the "#" or "_"  fonts were playing havoc on my investigation on my script.  RockinHarry-I'm not at all sure now that simple and short training campaign was the right campaign to play with. Last night I download -per the link in this string ScAnCaDe and will play with that.

However it is heartening to read that the answer to my original question if you can recompile an original campaign is yes-it can be done.

 

UPDATE;
Success-using MadMikes CAM script and ScAnCaDe. And why not-these Keys to the Kingdom worked before of course. But now I know I can do it. [Just change the length of all these simple scenarios to 3 hrs-and the change stayed]

Experience has it's function. I believe my error in the past was using the #  and _ special characters  as pointed out (I'll just use letter font from here out.) And using ScAnCaDe to decompile -since I have all the CM module and everything is up to 3.11.

 

I appreciate the comments and advice and observations from all. :)

Great, glad to hear it worked for you. :D

Share this post


Link to post
Share on other sites

Nope, you're quite correct and this is a weak point of ScAnCaDe.

But I was never able to properly figure out the location of the core unit file information in the final campaign file. :(

I find it a great accomplishment to create such a tool, which does its purpose well! :) You can figure out how the pros made their campaigns, learn from it and do your own stuff from that learning. You can also pick out single scenarios or maps, if you like to play them individually, or learn and adapt from the scenario authors. Think the core file issue is something that needs to be fully understood first, as there´s obviously more than one way to create and compile a campaign.

Looks like you don´t need a dedicated "core" file everytime (Devon training) and when one is needed, it could possibly be reconstructed by analyzing the indidividual scenarios and then make a new core file which anyway always makes use of prefab formations from the unit editor. The questions is whether it´s worth the efforts and if it´s not better to ask the original campaign creator for a missing file. If it´s just for own private purposes then it might be ok for the original author, but otherwise the rights to change and publish a campaign, remain to him anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×