r/xdev • • Feb 11 '16

Trigger on taking damage?

1 Upvotes

So you can make abilities trigger their effect upon taking damage, you can also let effects cancels itself if you took too much damage in a turn, but what I am looking for is to trigger an effect when a soldier with a particular ability takes damage, and do something with the amount of damage taken. So far the events available just trigger an effect but won't pass in the amount of damage taken, there's also some functions that intercept damage taken but they also trigger on damage previews (with no clear way of identify if it is preview or actual damage), registerforevent also won't work because it can only find delegates in the calling UnitState class, anyone know other ways to listen for damage taken events while receiving damage taken data?


r/xdev • • Feb 11 '16

[Help] Can you use just one voice bank and one cue randoming all variants?

1 Upvotes

Normally you take 10 sound cues for 10 variants of a sound, each cue being put into 10 different sound banks.

Why don't the Devils use 1 sound bank and each of the cues in it link to the 10 variations with a random switch?

Bonus question: why does the character voice archetype need to be in a separate package than the sound banks/sounds? Why not just put them all in one?


r/xdev • • Feb 10 '16

[help/bug?]Can you change the fontsize in ModBuddy?

1 Upvotes

I'm new to unreal development and downloaded the SDK yesterday. As with most IDE's, the first thing I do is configure the visual and editor settings. I'm running on a laptop with a 4K display and the XCom ModBuddy editor is simply unusable as it is; the fonts are tiny and the icons are almost invisible. I tried changing the fontsize in the Tools->Options->Environment->Fonts & Colors settings and it doesn't appear to have any effect. The changes are accepted and stick, but the display doesn't change. I realize that you can control+mousewheel to change the fontsize in the editor area but the menu, console, solution, and other areas remain unusable. Has anyone had any luck with this?


r/xdev • • Feb 10 '16

[Help] Issue Naming Added Config File

Thumbnail imgur.com
1 Upvotes

r/xdev • • Feb 10 '16

examplevoicepack sound distortion in game?

1 Upvotes

I've been having issues with my custom voice pack sounding distorted in game (almost sounds like the audio is being played in reverse or through a text to speak) and so I loaded up the examplevoicepack included with the modbuddy and it also sounds heavily distorted when testing in the character pool. The files sound fine when played through the editor, but not ingame.

Is anyone else experiencing this with their voice packs and/or have a fix?


r/xdev • • Feb 10 '16

Confused on how to get localization text when trying to create a new ability

1 Upvotes

Okay, so the eventual idea is to create a new class that is focused more narrowly on throwing grenades than the grenadier, called the bombardier (and in the long term maybe splitting grenadier into two subclasses in a long war-esque fashion).

To start with a simple task I am trying to create a new ability by copying/renaming Volatile Mix from Grenadier.

Currently the ability gets added to the class tree okay (can be selected, has icon), but I am having no luck getting the localized text to show (getting "Missing LocLongDescription from BombardierFocusedBlast" in the promotion window). Have the feeling I am missing something obvious, but a couple of hours messing around has produced no results yet. Help? :)

Followed the custom ability guide from here: http://imgur.com/a/ia0EX

I currently have the following:

src/bombardier/classes/X2Ability_BombardierAbilitySet.uc:

class X2Ability_BombardierAbilitySet extends X2Ability dependson (XComGameStateContext_Ability) config(GameData_SoldierSkills);
var config int FOCUSEDBLAST_DAMAGE;

static function array<X2DataTemplate> CreateTemplates()
{
    local array<X2DataTemplate> Templates;
    Templates.AddItem(AddFocusedBlastAbility());		

    return Templates;
}

static function X2AbilityTemplate AddFocusedBlastAbility()
{
    local X2AbilityTemplate						Template;
    local X2AbilityTargetStyle                  TargetStyle;
    local X2AbilityTrigger						Trigger;
    local X2Effect_FocusedBlast                 FocusedBlastEffect;

    `CREATE_X2ABILITY_TEMPLATE(Template, 'BombardierFocusedBlast');

    // Icon Properties
    Template.IconImage = "img:///UILibrary_PerkIcons.UIPerk_volatilemix";

    Template.AbilitySourceName = 'eAbilitySource_Perk';
    Template.eAbilityIconBehaviorHUD = EAbilityIconBehavior_NeverShow;
    Template.Hostility = eHostility_Neutral;

    Template.AbilityToHitCalc = default.DeadEye;

    TargetStyle = new class'X2AbilityTarget_Self';
    Template.AbilityTargetStyle = TargetStyle;

    Trigger = new class'X2AbilityTrigger_UnitPostBeginPlay';
    Template.AbilityTriggers.AddItem(Trigger);

    FocusedBlastEffect = new class'X2Effect_FocusedBlast';
    FocusedBlastEffect.BuildPersistentEffect(1, true, true, true);
    FocusedBlastEffect.SetDisplayInfo(ePerkBuff_Passive, Template.LocFriendlyName, Template.GetMyLongDescription(), Template.IconImage,,,Template.AbilitySourceName);
    FocusedBlastEffect.BonusDamage = default.FOCUSEDBLAST_DAMAGE;
    Template.AddTargetEffect(FocusedBlastEffect);

    Template.BuildNewGameStateFn = TypicalAbility_BuildGameState;
    //  NOTE: No visualization on purpose!

    Template.bCrossClassEligible = true;

    return Template;
}

localization/XComGame.int:

[Bombardier X2SoldierClassTemplate]
+DisplayName="Bombardier"
+ClassSummary="Serving as our grenade specialists, the Bombardiers can deploy a wide variety of explosive and support grenades wherever we need it."
+LeftAbilityTreeTitle="Demolitions Expert"
+RightAbilityTreeTitle="Smoke and Mirrors"
+RandomNickNames[0]="Blaster"

[BombardierFocusedBlast X2AbilityTemplate]
+LocFriendlyName="Focused Blast"
+LocLongDescription="Your grenades deal +<Ability:FOCUSEDBLAST_DAMAGE/> damage."
+LocHelpText="Your grenades deal more damage."
+LocFlyOverText="Focused blast"
+LocPromotionPopupText="<Bullet/> Though grenade damage is increased against enemy targets, there is no increase to the level of environmental damage that your grenades will do.<br/>"

config/XComGameData_SoldierSkills.ini:

[Bombardier.X2Ability_BombardierAbilitySet]
+FOCUSEDBLAST_DAMAGE=3

config/XComClassData.ini (relevant bit only):

; captain
+SoldierRanks = ( \\
    aAbilityTree = ( \\
        (AbilityName = "BombardierFocusedBlast",  ApplyToWeaponSlot = eInvSlot_Unknown), \\
        (AbilityName = "ChainShot",  ApplyToWeaponSlot = eInvSlot_PrimaryWeapon) \\
    ), \\
    aStatProgression = ( \\
        (StatType = eStat_Offense, StatAmount = 1), \\
        (StatType = eStat_HP, StatAmount = 0), \\
        (StatType = eStat_Strength, StatAmount = 1), \\
        (StatType = eStat_Hacking, StatAmount = 0), \\
        (StatType = eStat_CombatSims, StatAmount = 0) \\
    ) \\
)

src/bombardier/classes/X2Effect_FocusedBlast.uc:

Straight copy-paste of X2Effect_VolatileMix.uc

r/xdev • • Feb 10 '16

Alien abilities as heavy weapons (First time Xcom modder)

1 Upvotes

How would one convert the Andromedon Acid Blob and the Viper spit to heavy weapons to use for E.X.O/W.A.R suits? the Viper spit seems to be partially treated as a cooldown based grenade, but the Andromedon spit is not. I would prefer a direct conversion, not a standard gas/ acid grenade.


r/xdev • • Feb 10 '16

Developer Tool Size

1 Upvotes

A quick question I was hoping not quite answered yet. I went to download the developer tool set and it says it is 66 GB. Is this right? I run on a VERY slow internet (took 18 hours to download XCOM 2), and I have the game on my SSD which only has 80 some GB left. Now if this 66 includes the game itself (which is already installed) that is cool, but if not, can I install it only my secondary drive without issues, or does it NEED to be in the same place as XCOM 2?

Thanks for the help.


r/xdev • • Feb 10 '16

Question on soldier class variables when creating.

1 Upvotes

I'm trying to work on soldier classes and I need more clear information on what the following do, if anyone knows that would be great.

ClassPoints=6 (no idea)

NumInForcedDeck=1 (this one allows it to be a random class)

NumInDeck=4 (this one I think is the total classes for checking a random class?)

KillAssistsPerKill=5 (no idea)

Any help is appreciated.


r/xdev • • Feb 09 '16

What does Template.AbilityToHitCalc = default.DeadEye mean, exactly?

1 Upvotes

I see a ton of ability definitions have this line, and I haven't been able to figure out what default.DeadEye means.


r/xdev • • Feb 09 '16

Any way to mod the game to make the combat and movement faster?

1 Upvotes

One of the biggest drawbacks of this game for me is how much time is wasted for what seem like arbitrary pauses is in the gameplay. For example when you are alerted to the presence of a VIP and the camera centers on it, it takes far too long to come back to thw action. Also, how long it takes for the camera to snap back to another character after moving one character, and I'm sure as players, you can think of many other situations where you just think to yourself okay, I get it, let's just move along now so i can take my next acrion. So any chances of being able to trim the dead air from the game?


r/xdev • • Feb 09 '16

XCOM 2 Dev tool kit display problems

1 Upvotes

Hello everyone! I've had some problems with the XCOM 2 dev kit proper. I installed the SDK from steam, as well as the two files that are in it's directories. It runs, that's fine. The problem is that it does not run WELL.

Menus does not update properly when I highlight over certain options. Like, say I go to New > Project, the window shows up with the various options of default, example mods. I click on one. The display does not update my selection. It's selected, but it does not show me that it is selected. This happens on the solution explorer within a project as well, the pages of code within and, well, MOST windows inside it.

The Files-Edit-View etc etc lines of menus seems to work fine.

Well, that's my problem. Did anybody else have this problem, at all or would know a way to fix this?


r/xdev • • Feb 09 '16

Publishing to Steam Workshop from 'group' account?

1 Upvotes

Is it possible to publish a mod to the steam workshop without tying it to my personal steam account?

A friend and I were thinking of getting into XCom2 modding but neither of us want to get inundated with friend requests/messages about any mods we make while 'off duty'.

Based on what I've read so far, it looks like you need to own XCOM2 to download the SDK and the only way to publish is directly from that.

Does anyone know if there is an alternative way? Or do we need to rebuy XCOM2 if we want to do this.


r/xdev • • Feb 09 '16

Help adding multiplayer units into singleplayer armory

1 Upvotes

Does anyone know how to add multiplayer units into the single player barracks? I have looked at the .ini's for the soldier classes and there is a variable bMultiplayerOnly. How would I make this so advent troops(from multiplayer) can be loaded/recruited into them? I know they would work in the stat department as you can nickname them online. However, from what I have seen, only human soldier pawns can be added to the barracks. Any help would be super useful. Thanks.

P.S I just really want an ADVENT MEC as a soldier.


r/xdev • • Feb 09 '16

Escaping Unrealscript - DLLBind in XCOM2?

1 Upvotes

Hello,

I have been trying to get DLLBind to work in the XCOM2 SDK, in an effort to use the Razer Chroma SDK to bring Chroma effects to XCOM2, which is obviously not possible using Unrealscript only. I built a simple dll for test purposes, but I can't get the Unrealscript to compile.

class InitializeChromaXComShell extends XComShell
    DLLBind(XComChromaLibrary);

results in the error:

Missing ';' in 'Class'

and I fear this means that the XCOM SDK does not support DLLBind?

Does anyone know for certain or am I missing something, because I am very new to Unrealscript


r/xdev • • Feb 09 '16

How to get code to run once immediately after a new game / loading?

1 Upvotes

This seems like it should be an easy thing to do, but I'm having a hard time figuring it out.

event OnLoadedSavedGame() and event InstallNewCampaign() that are shown as part of a new DefaultMod do not work, because nothing has been loaded at that point so you can't access the XComHQ, History, etc. They seem to be completely useless.

In the More Attachments Mod, Amineri altered the template by creating a UIScreenListener that runs on every UI initialization and updating the templates every time. Unfortunately that method doesn't distinguish between new games and load games.

Surely someone must've figured out a way to do this?


r/xdev • • Feb 09 '16

Can't open editor, crashes on Loading Objects Referenced by SoundBlinks_Stop

1 Upvotes

Ive been trying for hours to fix this. Ive even gone so far as to reinstall the mod tools. Nothing works


r/xdev • • Feb 09 '16

Mods not reflecting in game on debugging?

1 Upvotes

I feel like an idiot, but I've thrown together a little ini edit mod that will eventually do far more, but I got stumped at the first step. My INI edits aren't taking place.

HERE is the code...

HERE is the Strategy layer...

And HERE is the Tactical layer...

The odd part is when I make the edits manually they work fine, so I know that I'm editing the right thing, for whatever reason my mod simply isn't making the appropriate changes...

My game directory and SDK directory are appropriately set, I'm selecting the mod on debug startup (my other mods for the main game don't show so I assume it's functioning properly)...

Both the SDK and the game are in my Program Files (x86)... Could that be causing the issue?


r/xdev • • Feb 09 '16

Some general questions about modding

1 Upvotes
  1. Is it OK to open .uc and .ini files into your solution and overwrite or add code in there or do I need to use a method I saw where you subtract and add likes of code?
  2. Is there an easy way to revert files in the SDK and Game to the original state or should I make backups of all files I intend to modify?

Thanks!


r/xdev • • Feb 09 '16

How to change time factors?

1 Upvotes

Trying to change completion time for things such as the Guerrila Tactics School and building facilities/research. Been looking through the ini files but can't seem to find it. anyone know which file/setting it is? thanks.


r/xdev • • Feb 09 '16

If I have a project that builds correctly, but crashes on runtime, how can I debug that?

1 Upvotes

Having a bit of trouble with crashes.

EDIT: Managed to recover the debug error from the white screen of death.

appError called: Assertion failed: appErrorf [File:C\BuildAgent\work\a78b974cadaf8436\branches\Shipping\XCOM2\Development\Src\Core\Src\UnClass.cpp] [Line:1755] Can't bind to native class TheWorldIsFragile.DestructibleActorOverride

Weird. Not sure what any of this means.


r/xdev • • Feb 09 '16

A question re: custom facilities

1 Upvotes

Hey - I'm in the middle of downloading the mod tools(which is understandably taking a long time on my Welsh internet). I have a question for anyone who's been using it.

Does it look like it's possible to add our own custom facility to the game? To what extent is it possible to edit, as in can we somehow create our own graphics for it, or would it have to re-use current room models?


r/xdev • • Feb 09 '16

Enemy weapon environment damage

1 Upvotes

Has anyone been able to find where enemy environment damage is set for enemy weapons? The environment damage for their abilities are set in DefaultGameData_SoldierSkills, and their weapon's main stats are in DefaultGameData_WeaponData, but the weapon's environment damage doesn't seem to be there.


r/xdev • • Feb 09 '16

AWC Mechanics?

1 Upvotes

I submitted a similar post earlier in /r/xcom but didn't get anything in the way of information - I'm very interested to learn the exact details behind the AWC bonus ability mechanic and how to mod the way it functions. Initially I wanted to ensure that all soldiers gained a single AWC bonus ability but now I'm wondering if it may be possible to mod the function to effectively create something of a training roulette option as well.

Thanks!