Editing permanent Dark Events

Post Reply
HighlanderBR
Posts: 5
Joined: Mon Jan 30, 2017 7:14 pm

Editing permanent Dark Events

Post 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
Zymos
Posts: 14
Joined: Sat Jan 28, 2017 2:35 am

Re: Editing permanent Dark Events

Post by Zymos »

I would like to know this as well.
HighlanderBR
Posts: 5
Joined: Mon Jan 30, 2017 7:14 pm

Re: Editing permanent Dark Events

Post 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.
Zymos
Posts: 14
Joined: Sat Jan 28, 2017 2:35 am

Re: Editing permanent Dark Events

Post 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 :/
HighlanderBR
Posts: 5
Joined: Mon Jan 30, 2017 7:14 pm

Re: Editing permanent Dark Events

Post 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.
HighlanderBR
Posts: 5
Joined: Mon Jan 30, 2017 7:14 pm

Re: Editing permanent Dark Events

Post by HighlanderBR »

RealityMachina created a mod for this: https://steamcommunity.com/sharedfiles/ ... =854420428
User avatar
Valaska
Posts: 197
Joined: Tue Feb 02, 2016 5:45 am

Re: Editing permanent Dark Events

Post 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?
Post Reply