Campaign XML

Post bug reports and ask for game support here.

Moderator: MOD_WestCiv

Post Reply
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

Campaign XML

Post 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>
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Campaign XML

Post 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



Image
Attachments
cohcamperror.jpg
cohcamperror.jpg (318.93 KiB) Viewed 253 times
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
ericbabe
Posts: 11848
Joined: Wed Mar 23, 2005 3:57 am
Contact:

RE: Campaign XML

Post 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.
Image
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Campaign XML

Post by junk2drive »

The names were different than the xml name. I'll edit things and let you know.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Campaign XML

Post 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.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
ericbabe
Posts: 11848
Joined: Wed Mar 23, 2005 3:57 am
Contact:

RE: Campaign XML

Post 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.
Image
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Campaign XML

Post 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?
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
ericbabe
Posts: 11848
Joined: Wed Mar 23, 2005 3:57 am
Contact:

RE: Campaign XML

Post 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.
Image
Post Reply

Return to “Tech Support”