Custom Campaigns - Files

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

Moderator: Panzer Corps 2 Moderators

Post Reply
Raganr129
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 65
Joined: Sat Jan 19, 2019 6:25 am

Custom Campaigns - Files

Post by Raganr129 »

First of all, excellent game, great product, can't wait for the DLCs to arrive.

The problem I have is that I wanted more content, and there wasn't any available... So I was making some scenarios in the editor, and was poking around at how to string them together in a custom campaign. Couldn't find any posts in here on the subject. I understand that there needs to be a 'campaign.json' file, and a 'script.lua' file that tells the game what order the missions play in.
So my questions:

1) Is there anything else necessary to make a custom campaign playable? Other files needed elsewhere, etc.

2) Could a sample/explanation of those files be provided and what lines (specifically in campaign.json) need to be modified to get a custom campaign to show in the campaign menu?

Once again, thanks for the great work put into the game, and thanks to anyone who can give me some pointers.
dalfrede
Colonel - Ju 88A
Colonel - Ju 88A
Posts: 1502
Joined: Wed Mar 15, 2017 7:48 pm

Re: Custom Campaigns - Files

Post by dalfrede »

No none Dev has gotten a campaign working.
The closest is the D-Day campaign.
https://www.slitherine.com/forum/viewto ... 3&start=20

I have added the 'necessary' files to WookieeDavidson's scenario set. It does not work correctly.
I posted the files to his thread to allow debugging.
Feel free to have at it.

The only feedback from the Devs so far has been a bug fix in the latest update for the first bug I found with the campaign modding.
I suspect that until they are ready to have a big workshop on modding the issues will not be addressed.
It has been suggested that by the end of this month is the expected time frame. if that is vague enough for you.
There comes a time on every project when it is time to shoot the engineer and ship the damn thing.
Raganr129
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 65
Joined: Sat Jan 19, 2019 6:25 am

Re: Custom Campaigns - Files

Post by Raganr129 »

So no campaigns yet? Darn. I guess we'll eagerly be waiting for that patch then I suppose.
Irrak
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Mar 25, 2020 3:43 pm

Re: Custom Campaigns - Files

Post by Irrak »

To make a custom campaign you need to edit the original campaign files. The way this seems to have been implemented is very shoddily done, as you apparently need to edit the original files. Can't have two custom campaign in other words.

The file you need to edit is script.lua, found in Panzer Corps 2/Content/Campaigns/Main. It simply lists in which order the scenarios are played. I played around this for a few hours, but it seems like the game only uses this file. So no room for custom campaigns, only modifying the existing campaigns. The different start dates are all of the same campaign.
Post Reply

Return to “Panzer Corps 2 Scenario Design”