Page 1 of 1
Campaign stuff
Posted: Sun Feb 14, 2016 2:54 pm
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
Re: Campaign stuff
Posted: Mon Feb 15, 2016 1:11 pm
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).
Re: Campaign stuff
Posted: Mon Feb 15, 2016 9:14 pm
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 (214.26 KiB) Viewed 3270 times
Re: Campaign stuff
Posted: Tue Feb 16, 2016 9:28 am
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
Re: Campaign stuff
Posted: Tue Feb 16, 2016 1:53 pm
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

Number crunching
Posted: Sun Feb 28, 2016 11:10 am
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
Re: Campaign stuff
Posted: Sun Feb 28, 2016 11:54 am
by uran21
Hit Ctrl on campaign map to get exact location in a tooltip.
Re: Campaign stuff
Posted: Sun Feb 28, 2016 2:37 pm
by Erik2
Excellent, why didn't I think of that
