Jump to content

Recommended Posts

Posted (edited)

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
Posted

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.

Posted
  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.

Posted

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;

Posted

It will be a little difficult to work through each of these errors line by line. My suggestion is to make small changes at one time to ensure they still compile, and carefully double check against your original. Good luck!

  • Recently Browsing   0 members

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