Jump to content

Build errors in custom ability


Kregano

Recommended Posts

I'm currently trying to build a custom ability for the Grenadier class to take Suppression's normal slot (Suppression is going to be in the unused Squaddie slot in XComGameData.ini), but it's giving me build errors and I'm not sure what the problem is or where to look in the ability file.

 

Here's the build result:

 

  Reveal hidden contents

 

 

So, I'm missing a semi-colon, but I don't know if it's just one semi-colon or 13, because whenever I look at line 13 (one of the var localized strings, there's a semi-colon at the end:

 

  Reveal hidden contents

 

 

Any ideas what's going on or what I'm missing?

Edited by Kregano
Link to comment
Share on other sites

  On 3/19/2016 at 12:51 AM, davidlallen said:

There is an art to figuring out which line the compiler should complain about. There is no semicolon after your class statement, it just doesn't happen to be line 13. Line 13 is where it noticed the error.

Oh, I've seen a bunch of code editors do that before. I'll fix that and see if there are more errors.

Link to comment
Share on other sites

Fixed that error and deleted some apparently redundant function commands, then got this when I tried to build the mod:

 

 

  Quote
Warning/Error Summary
---------------------
E:\SteamLibrary\SteamApps\common\XCOM 2 SDK\Development\Src\ConeofFire\Classes\X2Ability_ConeOfFire.uc(210) : Error, 'AbilityCondition': Bad command or expression
E:\SteamLibrary\SteamApps\common\XCOM 2 SDK\Development\Src\ConeofFire\Classes\X2Ability_ConeOfFire.uc(46) : Error, 'ReserveActionPointsEffect': Bad command or expression

Failure - 2 error(s), 0 warning(s) (2 Unique Errors, 0 Unique Warnings)

 

This is confusing to me, since that stuff is copypasted from some of the game's stock skills and barely tweaked:

  Quote

 

ReservePointsEffect = new class'X2Effect_ReserveActionPoints';
ReservePointsEffect.ReserveType = default.ConeOfFireReserveType;
Template.AddShooterEffect(ReservePointsEffect);

  Quote

 

AbilityCondition = new class'X2Condition_AbilityProperty';
AbilityCondition.TargetMustBeInValidTiles = true;

Link to comment
Share on other sites

  • Recently Browsing   0 members

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