Logo Platform
logo amplifiers simplified

I wanted to mod Victories Milestones but

Reply
Copied to clipboard!
7 years ago
Apr 15, 2018, 9:40:28 PM

... it seems pretty impossible from what I understand.


What I wanted to do is add "xxx(current score) / xxx(objective)" at the end of message "An xxx empire/alliance is close to achieving victory (typeOfVictory)"


So, I looked into files and, unless I'm doing this wrong, found two major problems :


- it seems you can not put VictoryConditionDefinitions.xml expressions in ES2_Localisation_Locales.xml.

like

 <LocalizationPair Name="%NotificationVictoryImminentDescriptionUnknown">An {0}unknown#REVERT# empire is close to achieving victory ({1})</LocalizationPair>

going

<LocalizationPair Name="%NotificationVictoryImminentDescriptionUnknown">An {0}unknown#REVERT# empire is close to achieving victory ({1}) ({2}/{3})</LocalizationPair>

which {2} is Property(Empire, EmpireMoneyAccumulator)

and {3} is Property(VictoryManager, VictoryEconomyDustThreshold)


The 2nd problem is I don't know how to choose Solo or alliance expression, like kind of where to include an "if" in order to choose, for exemple

Property(Empire, EmpireMoneyAccumulator)

or

$(SummedMajorEmpiresScore)

to put the correct expression.

I checked VictoryConditionDefinition.xsd but I didn't find something usefull to add an "if" in order to choose the correct expression.


Is my idea doable ?

Thanks !


0Send private message
7 years ago
Apr 16, 2018, 8:20:37 AM

Hello Raypulsif!


It's unfortunately impossible to add new "variables" in localization for a mod, because it is done in code:

The variables are included in the line where the key is localized, and although it is possible to modify code for a mod using assembly editing, it is not officially supported by ES2.


As for choosing between solo and alliance, this is done in code as well: formulas are taken from either SoloEvaluator or AllianceEvaluator, depending on whether the player is alone (using the empire's variables) or in an alliance (using sums of the empire's variables).

Here are all the available variables for these formulas:

- VictoryManager, Empire (solo only): SimulationObjects (can use Property(XX, YY, ...) on this!)

- SummedMajorEmpiresScore (alliance only), GlobalGameTimerProgress: float

- Turn, NumberOfMajorEmpiresInAlliane (alliance only), NumberOfMajorEmpires, NumberOfMajorEmpiresEliminated, NumberOfMajorEmpiresLeft: integer


I have no idea how the current alliance formulas work however, I'd probably have to ask a Game designer about that.

Updated 7 years ago.
0Send private message
7 years ago
Apr 16, 2018, 11:02:34 AM

Thanks for the answer MonAmiral.


The main goal of this idea is to know how close is the empire/alliance to the victory (halfway, 3/4 close, etc).

The game provide a rough information about that, and we can mark down the progression on a paper, but it goes difficult when alliances are created.


For exemple, in my last game, I got messages an empire was close to victory, after some turns I got a message another empire was close to victory, after some turns the 1st empire was closer to victory, then the 2 empires created an alliance (new message about alliance was close to victory), and at this moment I could not know how close they were to victory (halfway ? 3/4 ?)


As the game progressed, I (with another empire) was finnaly begin to steamroll the galaxy, only to be defeated a very few turns before our victory... a bit frustating.


I put an idea, but so far it seems it is not very successfull.

0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message