Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post bug reports and ask for help with other issues here.
Post Reply
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by Elessar2 »

Actually this is a side-effect of making map changes; for some reason most of the scripts freak out and insist that they need to be updated (when I add a port or town somewhere). I click on the UPDATE button, and get this error. But said parameter is NOT in the help notes at the top of the file-obviously when the scenario was crafted there was no error found. So why is it asking for this apparently obsolete command?
El_Condoro
Posts: 613
Joined: Sat Aug 03, 2019 4:35 am

RE: Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by El_Condoro »

I assume your victory.txt is older than the recent update. From the help at the beginning of an updated file:

; #VICTORY_PERCENTAGE= Percentage of the tournament round victory points assigned to the winner, with the difference assigned to the defeated player
ORB & CROWN Fantasy Warfare Mod for Strategic Command
Download for War in Europe or World at War - YouTube - Discord
User avatar
Hubert Cater
Posts: 6098
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by Hubert Cater »

Hi Elessar2,

When you make a map change, any of the scripts that have dependencies on the map, such as conditional positions etc., they need to be re-compiled to make sure that they are still compatible with the map changes. Essentially the scripts that were compiled into the campaign may not be compatible anymore, and the only way to know for sure is to recompile which looks for possible errors.

If there are no issues, they will recompile fine.

The #VICTORY_PERCENTAGE= modifier for the VICTORY scripts is a new addition that simply requires you to update the script accordingly when you are attempting to recompile.

Hope this helps,
Hubert
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

RE: Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by Elessar2 »

Then I'll have to clue in Crispy since it was his scenario I was experimenting with...
User avatar
Hubert Cater
Posts: 6098
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by Hubert Cater »

It might be ok for Crispy if he wants to leave his mod as is, since the way the game engine handles these changes for a campaign that is not yet updated, is it would recognize that no value has been assigned to this just yet and simply deal with it as a value of 0.

This way it just doesn't break old mods until they are updated.

But of course once you want to update the mod then the Editor will let you know it is time to update and will then read the set values from the script.
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

RE: Editing Victory conditions..."Could not find #VICTORY_PERCENTAGE="

Post by Elessar2 »

Yeah, simple copy and replace job, * went away no error.
Post Reply

Return to “Tech Support”