Page 1 of 1
Campaign XML
Posted: Sat Dec 15, 2012 1:55 pm
by junk2drive
I tried taking Jamm's linked firefights and making a campaign with the tags from 1.12
◾GetPiecesFromCampaignName - name of scenario from which to import pieces (from the XML name tag, not the file name)
◾CampaignGainExperienceFactor - multiplies the chance that units moving to a new firefight will gain experience (e.g., setting this to 2 will make green units have a 100% chance to gain experience, veteran units a 20% chance to become elite)
At the bottom of the second and third battle xml, above scenario like this (tab spacing doesn't show in this forum)
ScenarioVersion>0</ScenarioVersion>
<GetPiecesFromCampaignName>High Ground</GetPiecesFromCampaignName>
<CampaignGainExperienceFactor>2</CampaignGainExperienceFactor>
</Scenario>
RE: Campaign XML
Posted: Sat Dec 15, 2012 1:59 pm
by junk2drive
I put the files in the Documents WCS folder and played the first battle. On the last round I clicked pass all to end the battle and had CTD with this error

RE: Campaign XML
Posted: Sun Dec 16, 2012 8:39 pm
by ericbabe
Is the name attribute of your scenario XML file set to something with an invalid character, or is it blank? This would probably cause the problem you're seeing.
RE: Campaign XML
Posted: Sun Dec 16, 2012 8:58 pm
by junk2drive
The names were different than the xml name. I'll edit things and let you know.
RE: Campaign XML
Posted: Sun Dec 16, 2012 9:52 pm
by junk2drive
I added nothing to High Ground, added the tag for High Ground to Right Flank, and added tag for Right Flank to Tip of the Spear.
I played High Ground and it ended with a victory screen and main menu choice.
I started Right Flank but High Ground appeared unless I clicked the wrong one. I thought I had to play it as part of Right Flank so I played it through again. Another victory screen and back to main menu.
Last I started Tip of the Spear. It is a point buy scenario so not a good choice for testing campaigns. I purchased some units and start. I get a popup that this is part of a campaign and that I should play Right Flank first.
Do I need to add something to the first scenario xml?
Do the scenarios need to be in a different folder?
I expected to end a battle and go right into the next.
RE: Campaign XML
Posted: Thu Dec 20, 2012 1:04 pm
by ericbabe
The scenarios don't automatically flow one into the other. You play the first one; it records your surviving units in a file; you play the second scenario; it looks up those units in the file and gives them to you to place during the point-buy phase. You do have to have point-buy zones set up in the second scenario for this to work. If you'd like to zip up for firefights and maps and either post them here or email them to me, I'd be happy to look them over.
You don't need to add anything to the first scenario xml, other than to make sure that the name attribute is set.
The scenarios can be in the same folder.
There are many features we'd like to add to the campaign mode to make them easier to use, and something that would prompt you to jump immediately to the next firefight in the campaign upon finishing one stage of it would be a very good thing to add. But we don't have anything like that right now.
RE: Campaign XML
Posted: Thu Dec 20, 2012 11:33 pm
by junk2drive
Ok so in addition to adding the two tags to the second and subsequent xmls they also have to be point buy scenarios?
RE: Campaign XML
Posted: Fri Dec 21, 2012 2:18 pm
by ericbabe
The units that carry-over to the new scenario enter that scenario in the zone you have designated as the point-buy entry zone. So you need to have this region defined for any player that might have units carrying over between firefights. You don't actually have to have any actual point-buy units specified though.