Player select first scenario in campaign

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Design, Panzer Corps Moderators

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9651
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Player select first scenario in campaign

Post by Erik2 »

Hi
I want the player to select between two campaign threads at the very start of the campaign, ie select between two scenarios.

I have managed to create the briefing with the appropriate buttons.
Image

But when I select the button with the scenario, PzC hangs and I have to manually kill the process.
The scenarios in the campaign runs fine if I remove the first selection screen (and edit the campaign file of course).

Any tips how to get this to work?

The selection briefing is written like this:

<p><b>December 15th, 1944 'Wacht Am Rhein Campaign'</b></p>

<p><b>From Feldmarschall Manteuffel.
<p>Herr General, please select wether you will command the XLVII Panzer Korps or the I SS Panzer Korps.

<p>
<button type="radio" name="NextScn" id="Race For Bastogne">XLVII Panzer Korps</button><br/>
</p>
<p>
<button type="radio" name="NextScn" id="Elsenborn Ridge">I SS Panzer Korps</button>
</p>

The campaign file (the first thread) looks like this:
Image
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: Player select first scenario in campaign

Post by fsx »

Perhaps, you should try to make a first scenario, that allways ends with a decisive victory (in turn 1). After that you could ask for the real starting scenario.

It could be, that PC needs a scenario after briefing.
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: Player select first scenario in campaign

Post by Chris10 »

fsx wrote:Perhaps, you should try to make a first scenario, that allways ends with a decisive victory (in turn 1). After that you could ask for the real starting scenario.

It could be, that PC needs a scenario after briefing.
+1

Iam almost sure the engine is not made to let you choose at the very campaign start...fsx approach is the best,quickest and most painless workaround
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Re: Player select first scenario in campaign

Post by El_Condoro »

You'll notice in the stock campaign and elsewhere that the choice is contained in the debrief rather than in the briefing. In other words, as fsx and chris10 have said, the choice follows a scenario. A quick one turn scenario will give the choice. You could set it up with the briefing explaining that if the player does this action e.g. Capture a town or something, they will command this unit, if not, something else. Otherwise, add the choice in the debrief pzbrf file.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9651
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Player select first scenario in campaign

Post by Erik2 »

Thanks guys, will test this as soon as I can get the editor to work again. Currently it will not open, even after a re-install.
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Re: Player select first scenario in campaign

Post by El_Condoro »

If you can remember what the last scenario you had open in it, move it and try to open the editor again - there might be a problem with that scenario.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9651
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Player select first scenario in campaign

Post by Erik2 »

I had a backup of the offending scenario that fixed the editor problem.

The campaign selection worked fine with a dummy scenario with one single unit already in place on the one objective location needed for an automatic win.
Added some explanatory text in the briefing.
Of course I had to set all core units in the first real scenario to arrive at turn-1, but a small price to pay for a working solution.

Thanks everyone!
Post Reply

Return to “Panzer Corps : Scenario Design”