Victory Points 1000?
Posts: 52
I searched for "victory point" in scar doc in fortresseuropemod.com and searched here but can't find the solution for this specific thing.
I don't dislike the "annihilation" win condition but if I want to set my custom win condition (e.g., 500 or 1000) how would I do this?
Posts: 756 | Subs: 8
http://modding.companyofheroes.com/win-condition-file-format
I also updated my example to have some references: https://github.com/eliw00d/example-win-condition-pack#references
Posts: 52
This should have all the info you need:
http://modding.companyofheroes.com/win-condition-file-format
I also updated my example to have some references: https://github.com/eliw00d/example-win-condition-pack#references
So setting VP to 1000 is all done in default.win?
I see "Use WinWarning_SetTickers/WinWarning_SetMaxTickers/WinWarning_SetCritical/WinWarning_SetToolTip to set tickers" seems like that's what I need to use.
I went to check in ScarDoc and it has " WinWarning_SetMaxTickers( int team1MaxTickers, int team2MaxTickers ) and "WinWarning_SetTickers( int team1Tickers, int team2Tickers )"
so it seems that I need to add these in default.scar?
But I don't know what I need to put in the parentheses.
Posts: 756 | Subs: 8
Posts: 52
No, the .win file is where you would specify which parts of the UI to show. Your .scar file is where you would set tickers and max tickers. Team 1 is the left side, team 2 is the right.
in default.win I changed to this (apart from the other code above it):
"score_display = vp_ticker
show_time = false"
and removed the "entity_replacements ="
in default.scar I edited to this:
"local function WinCondition_Init()
WinWarning_SetMaxTickers( 1000 team1MaxTickers, 1000 team2MaxTickers )
WinWarning_SetTickers( 1000 team1Tickers, 1000 team2Tickers )"
although there's a lot of annihilation code above that came with default.scar
This didn't work and disabled the camera zoom out code underneath.
Posts: 756 | Subs: 8
WinWarning_SetMaxTickers( 1000 team1MaxTickers, 1000 team2MaxTickers )
WinWarning_SetTickers( 1000 team1Tickers, 1000 team2Tickers )
The "int team1MaxTickers" part is telling you the type and name of the parameter. You don't actually keep that there. You should have:
WinWarning_SetMaxTickers(1000, 1000)
WinWarning_SetTickers(1000, 1000)
Posts: 52
WinWarning_SetMaxTickers( 1000 team1MaxTickers, 1000 team2MaxTickers )
WinWarning_SetTickers( 1000 team1Tickers, 1000 team2Tickers )
The "int team1MaxTickers" part is telling you the type and name of the parameter. You don't actually keep that there. You should have:
WinWarning_SetMaxTickers(1000, 1000)
WinWarning_SetTickers(1000, 1000)
Thanks it works now!
How come the annihilation codes above don't affect this? can I erase them?
Posts: 756 | Subs: 8
Posts: 52
I'm not sure what you mean. The default .scar file? Because it's set up for Annihilation and not Victory Points.
Ya in .scar. The section I placed the victory points code disables the annihilation codes then, because of where I placed my codes?
Posts: 756 | Subs: 8
Posts: 33
Hard to say without seeing the code. I would suggest learning Lua: https://www.lua.org/manual/5.1/manual.html
How do I set up Victory points and how do I create the win conditions in regard to my set Victory Points?
Posts: 317
How do I set up Victory points and how do I create the win conditions in regard to my set Victory Points?
When creating your win condition pack in the tools select the "Requires VP Ticker". This will take care of the logic behind the VP ticker.
Now four your own options. After the initial creation of the WCP you should end up with your_file.win file. This is the file you want to edit.
And simply add this to the file.
options=
{
{
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 500, -- Numeber of tickets
},
{
default = true,
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 750, -- Numeber of tickets
},
{
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 1000, -- Numeber of tickets
},
}
Of course, you can add as many options as you want. Just note that no scroll bar will appear in the game UI but you will still be able to scroll with your mouse in the options.
Posts: 33
When creating your win condition pack in the tools select the "Requires VP Ticker". This will take care of the logic behind the VP ticker.
Now four your own options. After the initial creation of the WCP you should end up with your_file.win file. This is the file you want to edit.
And simply add this to the file.
options=
{
{
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 500, -- Numeber of tickets
},
{
default = true,
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 750, -- Numeber of tickets
},
{
fe_name = "$YOUR_MOD_GUID:LINE_NUMBER", -- This shoudl point to your localization file, Name of the option ingame
value = 1000, -- Numeber of tickets
},
}
Of course, you can add as many options as you want. Just note that no scroll bar will appear in the game UI but you will still be able to scroll with your mouse in the options.
Ok....so this Text i just have to add via editor?
What tools do you mean?
Im new in this VP creating.
Is there a tutorial?
Posts: 317
Ok....so this Text i just have to add via editor?
What tools do you mean?
Im new in this VP creating.
Is there a tutorial?
Company of Heroes 2 Tools is the software that is used for modding Company of Heroes 2. And yes all you have to do is copy the code and paste it to your your_file.win file and edit it a bit.
This is a tutorial on how to setup your first win condition pack.
Posts: 33
Company of Heroes 2 Tools is the software that is used for modding Company of Heroes 2. And yes all you have to do is copy the code and paste it to your your_file.win file and edit it a bit.
This is a tutorial on how to setup your first win condition pack.
are those conditions linked to the specific map then?
Posts: 317
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
6 posts in the last week
38 posts in the last month
Welcome our newest member, starkindustries
Most online: 2043 users on 29 Oct 2023, 01:04 AM