How do I create a campaign?

Post new mods and scenarios here.

Moderator: MOD_PanzerCorps

Post Reply
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

How do I create a campaign?

Post by GaryChildress »

I would like to create my own campaign for Panzer Corps. Let's say I create 4 scenarios using the editor. How would I go about linking them and making a campaign out of them.

Many thanks!

User avatar
Rudankort
Posts: 230
Joined: Sat Dec 04, 2010 4:05 pm
Contact:

RE: How do I create a campaign?

Post by Rudankort »

You would need to do two things.

1. Edit Data/campaign.pzdat file to code the logic of your campaign. This file can be conveniently edited in Excel, and includes some comments to explain various fields, but feel free to ask if anything is not clear. You will need an entry point and transitions between scenarios.

2. Add your new campaign to the campaign selection UI. This is done by modifyng UI/gamesetup.htm file. In the easiest case you can just place your new campaign instead of one of default ones.

In the future we'll likely add an option to load custom campaign much like it is done for custom scenarios, but for now this is not available.
User avatar
sztartur2
Posts: 670
Joined: Tue Jul 23, 2002 9:59 pm
Location: Budapest,Hungary

RE: How do I create a campaign?

Post by sztartur2 »

Sounds good [:D]
"Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.", Sun Tzu
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: How do I create a campaign?

Post by GaryChildress »

ORIGINAL: Rudankort

In the future we'll likely add an option to load custom campaign much like it is done for custom scenarios, but for now this is not available.

I can't begin to tell you how much I look forward to this capability. It would make it so convenient to create custom campaigns. Until then I will probably just stick to scenarios. [:(]
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: How do I create a campaign?

Post by GaryChildress »

ORIGINAL: Rudankort

You would need to do two things.

1. Edit Data/campaign.pzdat file to code the logic of your campaign. This file can be conveniently edited in Excel, and includes some comments to explain various fields, but feel free to ask if anything is not clear. You will need an entry point and transitions between scenarios.

2. Add your new campaign to the campaign selection UI. This is done by modifyng UI/gamesetup.htm file. In the easiest case you can just place your new campaign instead of one of default ones.

In the future we'll likely add an option to load custom campaign much like it is done for custom scenarios, but for now this is not available.

Would someone explain the logic of the Campaign.pzdat file, please? I'd like to create a custom campaign but I really don't understand how to set one up. [:(]
User avatar
Locarnus
Posts: 287
Joined: Sun May 30, 2010 4:47 pm
Location: Earth, Sol

RE: How do I create a campaign?

Post by Locarnus »

The following is the first line from the 39 campaign:

Poland - Label of the scenario to identify this scenario in the campaign file
PolandA.pzbrf - scenario file, which will be opened when this scenario is loaded
Poland.pzscn - briefing text file in the subfolder "briefings", text shown at the scenario start
Norway - Label of the scenario that is loaded following a decisive victory in the current scenario
720 - amount of prestige given, if decisive victory is achieved
PolandB_decisive.pzbrf - debriefing text file, text shown when decisive victory is achieved
LC - Label of the scenario that is loaded following a marginal victory in the current scenario
1120 - amount of prestige given, if marginal victory is achieved
PolandC_marginal.pzbrf - debriefing text file, text shown when marginal victory is achieved
END - the campaign ends when you lose that scenario
0 - of course you dont need prestige anymore, if the campaign ends
PolandD_loss.pzbrf - debriefing text file, text shown when you lost that scenario

if the next line is for "Norway" or "LC" or whatever is not relevant


here you can check out my campaign file and compare it with the campaign tree screenshot in the thread:
tm.asp?m=2865453
GaryChildress
Posts: 6933
Joined: Sun Jul 17, 2005 3:41 pm
Location: The Divided Nations of Earth

RE: How do I create a campaign?

Post by GaryChildress »

Thanks. Looking at it now. [:)]
rivven_darke
Posts: 4
Joined: Sat May 19, 2007 6:22 am

RE: How do I create a campaign?

Post by rivven_darke »

I have a problem with editing the gamesetup.htm. How to do? I tried it with adobe dreamweaver and changed the names but now the icon has vanished when I start the game. (I used the tutorial slot)

Help please...[&:]


Ok, now it works. I just left the campaign selection UI alone.
Post Reply

Return to “Mods and Scenarios”