Page 1 of 1

Editing permanent Dark Events

Posted: Mon Jan 30, 2017 7:27 pm
by HighlanderBR
I would to like to remove the permanent dark events, but keep it like vanilla.

I found the file X2StrategyElement_DarkEvents_LW.uc on 'Src\LW_Overhaul\Classes' folder.

Looks like that events are calling this template below:

Code: Select all

static function GenericSettings (out X2DarkEventTemplate Template)
{
	Template.Category = "DarkEvent";
	Template.bRepeatable = false;
    Template.bTactical = true;
    Template.bLastsUntilNextSupplyDrop = false;
	Template.StartingWeight = 5;
	Template.MaxWeight = Template.StartingWeight;
    Template.MaxSuccesses = 0;
    Template.MinDurationDays = 9999;
    Template.MaxDurationDays = 99999;
    Template.bInfiniteDuration = true;
    Template.WeightDeltaPerActivate = 0;
	Template.WeightDeltaPerPlay = 0;
    Template.MinActivationDays = 21;
    Template.MaxActivationDays = 28;
	Template.MinWeight = 1;
	Template.OnActivatedFn = ActivateTacticalDarkEvent;
    Template.OnDeactivatedFn = DeactivateTacticalDarkEvent;
}
If I change this lines, will work?

Code: Select all

    Template.MinDurationDays = 20;
    Template.MaxDurationDays = 30;
    Template.bInfiniteDuration = false;
And if I want them to repeat, change that?

Code: Select all

	Template.bRepeatable = true;

Last thing, they are active already in my game. This changes will take effect?
Could I force the end of the darv events by changing this?

Code: Select all

    Template.bLastsUntilNextSupplyDrop = true;

Thanks

Re: Editing permanent Dark Events

Posted: Tue Jan 31, 2017 3:45 am
by Zymos
I would like to know this as well.

Re: Editing permanent Dark Events

Posted: Tue Jan 31, 2017 3:53 am
by HighlanderBR
Well, I tested here and did not worked after the next Supply Drop.
Not sure if I need to wait the number of days I put on the file (20 to 30) to take effect or cant change active dark events.

Re: Editing permanent Dark Events

Posted: Tue Jan 31, 2017 4:18 am
by Zymos
I tested changing:

Template.Category = "DarkEvent";
Template.bRepeatable = false;
Template.bTactical = true;
Template.bLastsUntilNextSupplyDrop = false;
Template.StartingWeight = 5;
Template.MaxWeight = Template.StartingWeight;
Template.MaxSuccesses = 0;
Template.MinDurationDays = 9999;
Template.MaxDurationDays = 99999;
Template.bInfiniteDuration = true;
Template.WeightDeltaPerActivate = 0;
Template.WeightDeltaPerPlay = 0;
Template.MinActivationDays = 21;
Template.MaxActivationDays = 28;
Template.MinWeight = 1;
Template.OnActivatedFn = ActivateTacticalDarkEvent;
Template.OnDeactivatedFn = DeactivateTacticalDarkEvent;

to:

Template.Category = "DarkEvent";
Template.bRepeatable = true;
Template.bTactical = true;
Template.bLastsUntilNextSupplyDrop = false;
Template.StartingWeight = 5;
Template.MaxWeight = Template.StartingWeight;
Template.MaxSuccesses = 0;
Template.MinDurationDays = 5 ; 9999;
Template.MaxDurationDays = 5 ; 99999;
Template.bInfiniteDuration = false ;true;
Template.WeightDeltaPerActivate = 0;
Template.WeightDeltaPerPlay = 0;
Template.MinActivationDays = 21;
Template.MaxActivationDays = 28;
Template.MinWeight = 1;
Template.OnActivatedFn = ActivateTacticalDarkEvent;
Template.OnDeactivatedFn = DeactivateTacticalDarkEvent;

Then I scanned for a month. All tactical events I got, including new ones, were still there by the end of the month. Didn't feel like the code did anything :/

Re: Editing permanent Dark Events

Posted: Tue Jan 31, 2017 4:23 am
by HighlanderBR
Zymos wrote:I tested changing:

Then I scanned for a month. All tactical events I got, including new ones, were still there by the end of the month. Didn't feel like the code did anything :/
Yeah. Maybe did not work on running campaigns, or there are other place to change.

Thanks for the test, so I dont need to wait 20/30 days in my game.

Re: Editing permanent Dark Events

Posted: Wed Feb 01, 2017 10:45 pm
by HighlanderBR
RealityMachina created a mod for this: https://steamcommunity.com/sharedfiles/ ... =854420428

Re: Editing permanent Dark Events

Posted: Sun Feb 05, 2017 1:53 am
by Valaska
HighlanderBR wrote:RealityMachina created a mod for this: https://steamcommunity.com/sharedfiles/ ... =854420428
I wish this would re-add them to a pool and make it possible for Advent to do them again though, maybe disabling the mod and then putting the;
Template.Category = "DarkEvent";
Template.bRepeatable = true;
Template.bTactical = true;
Template.bLastsUntilNextSupplyDrop = false;
Template.StartingWeight = 5;
Template.MaxWeight = Template.StartingWeight;
Template.MaxSuccesses = 0;
Template.MinDurationDays = 5 ; 9999;
Template.MaxDurationDays = 5 ; 99999;
Template.bInfiniteDuration = false ;true;
Template.WeightDeltaPerActivate = 0;
Template.WeightDeltaPerPlay = 0;
Template.MinActivationDays = 21;
Template.MaxActivationDays = 28;
Template.MinWeight = 1;
Template.OnActivatedFn = ActivateTacticalDarkEvent;
Template.OnDeactivatedFn = DeactivateTacticalDarkEvent;
Would enable them to be an expiring thing that can repeat?