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
Campaign stuff
Moderators: Order of Battle Moderators, The Artistocrats
Campaign stuff
- Attachments
-
- scenario endings.jpg (54.51 KiB) Viewed 3291 times
Re: Campaign stuff
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).
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).
-
bru888
- Order of Battle Moderator

- Posts: 6214
- Joined: Sun Jan 10, 2016 5:39 pm
- Location: United States
Re: Campaign stuff
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.adherbal wrote:The negative numbers in the cmp file end the [campaign].
- Bru
Re: Campaign stuff
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
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
Re: Campaign stuff
@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
@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
Number crunching
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
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 (60.46 KiB) Viewed 3160 times
Re: Campaign stuff
Hit Ctrl on campaign map to get exact location in a tooltip.
Re: Campaign stuff
Excellent, why didn't I think of that 


