Custom RCG Tutorial
Posted: Sun Apr 20, 2008 4:25 am
Hi,
Since reading about the random campaign feature I wanted to create my own for a couple of reasons. Firstly, I used Robert Oleson's Quick Campaign Generator for CMBB/CMAK and loved it, and it had a campaign template for a PzIIIF platoon in it which I liked generating small battles around. Secondly, I like small battles which are not terribly challenging (I know... pretty lame...) as to me this is a fun way to play for a short while and unwind. Think of WWII solitaire...[:'(]
So, to cut a long story short, I decided to create my own RCG campaign and thought I might describe my steps here thus providing a little tutorial. Here goes then.
The first step for me was to pick a campaign to copy. I chose the 1st Infantry Div 1941 Short.xml (under the "Random Campaigns" subdirectory) to begin with as it had the right timeline, and I wanted my core force to be a tank platoon, but to have supporting infantry rather than more tanks. I copied this file and called it German Tank Company.xml - yes it is a bad name [:)] I also edited it in a text editor and changed the campaign ID to "German Tank Company".
Now, looking inside the XML file I saw that the scenario list is basically a list of references to battle plan files and the number of their repetitions. So, I went over to the "Battles" subdirectory and saw the German Summer 41 (First) - 1st Inf Div.xml and German Summer 41 (Mix) - 1st Inf Div.xml files. I copied them as German Summer 41 (First) - TankCoy.xml and German Summer 41 (Mix) - TankCoy.xml. I also edited their id and name attributes appropriately.
I then loaded the campaign file in the RCG editor (don't forget to switch to random campaign mode), and deleted all the battle references, then added my First battle with a 1 multiplier and the Mix battle with a 5 multipler (for a total of 6 battles). I also made them key battles as I wanted my campaign to have exactly 6 battles in it.
The first battle plan in your campaign dictates your core force (hence the First in the name). This file now needed to be edited and the new core force specified. As mentioned above I wanted to have a single platoon of 3 PzIIIFs. So, I loaded the scenario editor and created a dummy scenario with the germans having this unit as core and saved it. It gets saved in the "Scenarios" subdirectory. Now, if you open the XML files generated by any of the programs in a regular text editor, you will not be able to read their contents because all text is generated as XML entities with their ASCII codes (if you don't know what this means, don't worry about it, just follow the next steps). To overcome this, use Internet explorer, by loading it, and the File->Open your XML file. IE will translate the XML entities and you can copy the text from the display. This is the most simple way of doing this (you can of course use XML editor, etc.) but I don't have one. Looking in the file I found the line that started with <unit unitid="Pz Kpfw IIIF" unitname="Hartmann" exp="Veteran" number="3" max="3" and had more stuff inside it. I copied that part only (you don'y need the other stuff for a battle plan), and terminated the XML element correctly with the result being <unit unitid="Pz Kpfw IIIF" unitname="Hartmann" exp="Veteran" number="3" max="3"></unit>. This line I pasted into the battle plan files (both First and Mix variants) to get a single unit core force.
Almost done. Now I wanted to have a low number of Soviet forces (remember I wanted very easy battles). So I changed the points attribute for the germans to "200 + RAND(150)" and for the soviets to "100 + RAND(50)", which, if I understand the RAND function correctly will give a total force value o 200-350 points for the germans and 100-150 for the sovs.
That's it. I then loaded my campaign in the RCG and it works a charm.
A note on how auxiliary forces are generated. The type of forces you will get for your auxilliary forces is controlled by the preset attribute. I left mine with the "1st Infantry Div 1941" value because I wanted infantry type forces to accompany my tanks. You can change this to other presets as listed in the "Presets" subdirectory.
Anyway, I hope this (not very well structured) tutorial can help someone get running with their own campaigns.
Edit: the attachment contains the three files I modified.
Cheers
Since reading about the random campaign feature I wanted to create my own for a couple of reasons. Firstly, I used Robert Oleson's Quick Campaign Generator for CMBB/CMAK and loved it, and it had a campaign template for a PzIIIF platoon in it which I liked generating small battles around. Secondly, I like small battles which are not terribly challenging (I know... pretty lame...) as to me this is a fun way to play for a short while and unwind. Think of WWII solitaire...[:'(]
So, to cut a long story short, I decided to create my own RCG campaign and thought I might describe my steps here thus providing a little tutorial. Here goes then.
The first step for me was to pick a campaign to copy. I chose the 1st Infantry Div 1941 Short.xml (under the "Random Campaigns" subdirectory) to begin with as it had the right timeline, and I wanted my core force to be a tank platoon, but to have supporting infantry rather than more tanks. I copied this file and called it German Tank Company.xml - yes it is a bad name [:)] I also edited it in a text editor and changed the campaign ID to "German Tank Company".
Now, looking inside the XML file I saw that the scenario list is basically a list of references to battle plan files and the number of their repetitions. So, I went over to the "Battles" subdirectory and saw the German Summer 41 (First) - 1st Inf Div.xml and German Summer 41 (Mix) - 1st Inf Div.xml files. I copied them as German Summer 41 (First) - TankCoy.xml and German Summer 41 (Mix) - TankCoy.xml. I also edited their id and name attributes appropriately.
I then loaded the campaign file in the RCG editor (don't forget to switch to random campaign mode), and deleted all the battle references, then added my First battle with a 1 multiplier and the Mix battle with a 5 multipler (for a total of 6 battles). I also made them key battles as I wanted my campaign to have exactly 6 battles in it.
The first battle plan in your campaign dictates your core force (hence the First in the name). This file now needed to be edited and the new core force specified. As mentioned above I wanted to have a single platoon of 3 PzIIIFs. So, I loaded the scenario editor and created a dummy scenario with the germans having this unit as core and saved it. It gets saved in the "Scenarios" subdirectory. Now, if you open the XML files generated by any of the programs in a regular text editor, you will not be able to read their contents because all text is generated as XML entities with their ASCII codes (if you don't know what this means, don't worry about it, just follow the next steps). To overcome this, use Internet explorer, by loading it, and the File->Open your XML file. IE will translate the XML entities and you can copy the text from the display. This is the most simple way of doing this (you can of course use XML editor, etc.) but I don't have one. Looking in the file I found the line that started with <unit unitid="Pz Kpfw IIIF" unitname="Hartmann" exp="Veteran" number="3" max="3" and had more stuff inside it. I copied that part only (you don'y need the other stuff for a battle plan), and terminated the XML element correctly with the result being <unit unitid="Pz Kpfw IIIF" unitname="Hartmann" exp="Veteran" number="3" max="3"></unit>. This line I pasted into the battle plan files (both First and Mix variants) to get a single unit core force.
Almost done. Now I wanted to have a low number of Soviet forces (remember I wanted very easy battles). So I changed the points attribute for the germans to "200 + RAND(150)" and for the soviets to "100 + RAND(50)", which, if I understand the RAND function correctly will give a total force value o 200-350 points for the germans and 100-150 for the sovs.
That's it. I then loaded my campaign in the RCG and it works a charm.
A note on how auxiliary forces are generated. The type of forces you will get for your auxilliary forces is controlled by the preset attribute. I left mine with the "1st Infantry Div 1941" value because I wanted infantry type forces to accompany my tanks. You can change this to other presets as listed in the "Presets" subdirectory.
Anyway, I hope this (not very well structured) tutorial can help someone get running with their own campaigns.
Edit: the attachment contains the three files I modified.
Cheers