Campaign stuff

Moderators: Order of Battle Moderators, The Artistocrats

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

Campaign stuff

Post by Erik2 »

The data.cmp file contains a line 'results' with a list of numbers.
What do they imply?
What would the numbers be if I wanted the campaign to stop for scenario endings major defeat, minor defeat and draw, and continue for minor victory and major victory?

Example
[Agoo]
location = -4.830, -1.033
scenario = Agoo
result = -2,-2,-2,1,1
core = japan -5.827,-0.204
flag = usa -3.992,-1.519
arrow = 120,10,10 -5.535,-0.426 -4.830,-1.033
event = event_intro_title, event_intro_text, event_intro

In the scenario there are numbers assigned to each scenario ending. They are editable, what are they used for?

Thanks
Attachments
scenario endings.jpg
scenario endings.jpg (54.51 KiB) Viewed 3291 times
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign stuff

Post by adherbal »

The negative numbers in the cmp file end the campaign. The number used refers to a different outcome text & image. What the message says is up to you.
Positive numbers determine the next branch to use (so the campaign continues).

The number in the editor refer to the filename of outcome image used. For the official scenarios we're only using 2 images, one for defeats (0) and one for victory (1).
Image
bru888
Order of Battle Moderator
Order of Battle Moderator
Posts: 6214
Joined: Sun Jan 10, 2016 5:39 pm
Location: United States

Re: Campaign stuff

Post by bru888 »

adherbal wrote:The negative numbers in the cmp file end the [campaign].
I tremble to correct a master in anything, but you meant losing the scenario ends the campaign, correct? So, if I have this right, win lose or draw at Pearl Harbor (scenario 0), you go on to War Plan Orange-3 anyway (scenario 1). Lose or draw that scenario, however, you skip over Bataan and go to the Marshalls-Gilberts Raid (makes sense). However you do in the raid, you fight the Battle of The Coral Sea next (scroll the image file down). Only in Coral Sea are you first confronted with the possibility of ending the campaign if you don't win the scenario. Interesting stuff.
000080.jpg
000080.jpg (214.26 KiB) Viewed 3271 times
- Bru
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign stuff

Post by Erik2 »

Very flexible , indeed. It should not be too hard to make branches.
But what should the (victory) number be for the last scenario in the cmapaign?

[Cabcaben]
location = -4.830, -1.033
scenario = Cabcaben
result = -2,-2,-2,?,?
core = japan -5.827,-0.204
flag = usa -3.992,-1.519
arrow = 120,10,10 -5.535,-0.426 -4.830,-1.033
adherbal
The Artistocrats
The Artistocrats
Posts: 3900
Joined: Fri Jun 24, 2005 6:42 pm
Location: Belgium

Re: Campaign stuff

Post by adherbal »

@bru888: correct

@Erik: Depends on the ID used in the filename of you outcome image(s) and text entries. For most campaigns we used -1 (id 1 in image & text) for victory and -2 (id 2) for defeat. But you can have as many different outcome messages as you want. The game doesn't really know the difference between winning and losing a campaign, it just "ends" and the message content determines whether the player will be happy or not :)
Image
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Number crunching

Post by Erik2 »

I have just about finished an Australian campaign and I would like to get the flags/scenario locations correct on the campaign map.
I used the Coral Sea as a template, so the Japanese invasion/Aussie defenders are good.
But the scenario location is off and I'd like to lose the second Aussie flag on the right.
So, how do I get the correct numbers in the scenario data below?

[Gorari]
location = -0.761, -4.224
scenario = Gorari
result = -2,-2,-2,1,1
core = aucore 0.486,-4.951
flag = japan -1.19,-2.68
flag = australia -2.295,-3.797
arrow = 120,10,10 -1.332,-3.013 -1.835,-3.770
event = event_intro_title, event_intro_text, event_intro
Attachments
campaign map.jpg
campaign map.jpg (60.46 KiB) Viewed 3160 times
uran21
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 2318
Joined: Thu Dec 02, 2010 8:34 pm

Re: Campaign stuff

Post by uran21 »

Hit Ctrl on campaign map to get exact location in a tooltip.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Campaign stuff

Post by Erik2 »

Excellent, why didn't I think of that :wink:
Post Reply

Return to “Order of Battle : World War II - Scenario Design”