Jump to content

(Simple) Mod Help


sleepyx732

Recommended Posts

As simple of a change it is, because I can't do a simple overwrite (I have to use the SDK for this) I'm not exactly sure what I am doing. I'd like to switch around the triggers for the Ever Vigilant perk and the Deep Cover perk.

 

 

  Reveal hidden contents

 

 

Now as far as I know as all I have to do is have that in an UnrealSource file under src/modname/classes. I switched around local UnitValue NonMoveActionsThisTurn/AttacksThisTurn and the GotValue reference. However when I attempt to build solution I get 2 errors unrelated to the src file.

 

C:\Program Files (x86)\Steam\steamapps\common\XCOM 2 SDK\Development\Src\XComGame\Classes\X2Ability_Cyberus.uc(1291) : Error, Delegate assignment failed (AbilityEventDelegate): Invalid or unknown function 'AbilityTriggerEventListener_DamagedByEnemyTeleport'

 

C:\Program Files (x86)\Steam\steamapps\common\XCOM 2 SDK\Development\Src\XComGame\Classes\X2TacticalGameRuleset.uc(1447) : Error, Unrecognized member 'CheckForPostBeginPlayActivation' in class 'XComGameState_Ability'

 

I don't know why it's copying and messing with these files anyway, along with all the other class files that come with when selecting New Project -> DefaultMod. I deleted the two files referenced and I still get the errors.

Edited by sleepyx732
Link to comment
Share on other sites

Uhh, the default mod comes with very outdated sources, you should go to the solution directory using the windows explorer and remove the write-lock on all files in MyMod/Src/XComGame/Classes/*.uc

 

Then delete all these files out of ModBuddy.

 

Secondary, overriding XComGameState_Ability is a bad idea. You should rather try to just write two new triggers for the abilities and use OnPostTemplatesCreated to chnage the trigger functions.

 

If you totally don't know how to do that, just ask me to write the code so you can take a look at it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...