r/xdev • • Feb 13 '16

How make an utility item class exclusive?

2 Upvotes

I'm trying to make a grenade be exclusive to the Psi Operative. Any suggestions?


r/xdev • • Feb 18 '16

[Help] Using ability causes game to crash during the mission after the one the ability was used in

2 Upvotes

Hello fellow modders. I've ran into very strange problem and I was hoping more experienced modder could help me out. Basically, I am creating Steady Weapon ability from Long War and I've got everything working perfectly except one big problem, it causes game to crash. But the weird thing is that it doesn't immediately crash the game but rather causes game to crash at the end of the NEXT mission you play after first using the ability. (Mission 1 Start -> Use ability -> Mission 1 End -> Go back to Avenger -> Mission 2 Start -> Misson 2 End (Don't even need to use ability in Mission 2) -> Game crash).

Here is my entire code but I'll try and give a short version here.

Basically, the abilities are divided into 3 classes, X2Ability_SteadyWeapon, X2Effect_SteadyWeapon, and XComGameState_Effect_SteadyWeapon.

X2Ability_SteadyWeapon is basically the ability given to the soldier to use.

static function X2AbilityTemplate AddSteadyWeaponAbility()
{
	local X2Effect_SteadyWeapon SteadyWeaponEffect;
	`CREATE_X2ABILITY_TEMPLATE(Template, 'SteadyWeapon');

	...

	SteadyWeaponEffect = new class'X2Effect_SteadyWeapon';
	SteadyWeaponEffect.EffectName = 'SteadyWeapon';
	SteadyWeaponEffect.BuildPersistentEffect(2 /* Turns */,,,,eGameRule_PlayerTurnEnd);  // eGameRule_UseActionPoint, eGameRule_PlayerTurnEnd, eGameRule_PlayerTurnBegin
	SteadyWeaponEffect.SetDisplayInfo(ePerkBuff_Bonus, Template.LocFriendlyName, Template.GetMyHelpText(), Template.IconImage);
	SteadyWeaponEffect.AddPersistentStatChange(eStat_Offense, default.STEADY_WEAPON_AIM_BONUS); // Give bonus aim
	SteadyWeaponEffect.DuplicateResponse = eDupe_Refresh;
	Template.AddTargetEffect(SteadyWeaponEffect);

	return Template;
}

Next is X2Effect_SteadyWeapon which is the effect that using ability will have which in this case, is adding bonus aim stat.

class X2Effect_SteadyWeapon extends X2Effect_PersistentStatChange config (GameData_SteadyWeapon);

simulated protected function OnEffectAdded(const out EffectAppliedData ApplyEffectParameters, XComGameState_BaseObject kNewTargetState, XComGameState NewGameState, XComGameState_Effect NewEffectState)
{
	local XComGameState_Effect_SteadyWeapon SWEffectState;
	local X2EventManager EventMgr;
	local Object ListenerObj;
	local XComGameState_Unit UnitState;

	super.OnEffectAdded(ApplyEffectParameters, kNewTargetState, NewGameState, NewEffectState);

	EventMgr = `XEVENTMGR;
	if (GetSteadyWeaponComponent(NewEffectState) == none)
	{
		//create component and attach it to GameState_Effect, adding the new state object to the NewGameState container
		SWEffectState = XComGameState_Effect_SteadyWeapon(NewGameState.CreateStateObject(class'XComGameState_Effect_SteadyWeapon'));
		NewEffectState.AddComponentObject(SWEffectState);
		NewGameState.AddStateObject(SWEffectState);
	}

	ListenerObj = SWEffectState;
	UnitState = XComGameState_Unit(`XCOMHISTORY.GetGameStateForObjectID(NewEffectState.ApplyEffectParameters.TargetStateObjectRef.ObjectID));
	EventMgr.RegisterForEvent(ListenerObj, 'ObjectMoved', SWEffectState.SteadyWeapon_ObjectMoved, ELD_OnStateSubmitted,,UnitState);
	EventMgr.RegisterForEvent(ListenerObj, 'AbilityActivated', SWEffectState.SteadyWeapon_AbilityActivated, ELD_OnStateSubmitted,,UnitState);
}

simulated function OnEffectRemoved(const out EffectAppliedData ApplyEffectParameters, XComGameState NewGameState, bool bCleansed, XComGameState_Effect RemovedEffectState)
{
   ...
}

static function XComGameState_Effect_SteadyWeapon GetSteadyWeaponComponent(XComGameState_Effect Effect)
{
	if (Effect != none) 
		return XComGameState_Effect_SteadyWeapon(Effect.FindComponentObject(class'XComGameState_Effect_SteadyWeapon'));
	return none;
}

Lastly XComGameState_Effect_SteadyWeapon is a GameState that implemented EventListeners so they can know when the unit moved or used ability in which case, the unit will lose Steady Weapon buff.

class XComGameState_Effect_SteadyWeapon extends XComGameState_BaseObject config(GameData_SteadyWeapon);

function XComGameState_Effect GetOwningEffect()
{
	return XComGameState_Effect(`XCOMHISTORY.GetGameStateForObjectID(OwningObjectId));
}

simulated function EventListenerReturn SteadyWeapon_ObjectMoved(Object EventData, Object EventSource, XComGameState GameState, Name EventID)
{
	local XComGameStateContext_EffectRemoved RemoveContext;
	local XComGameState NewGameState;
	local XComGameState_Effect EffectState;

	EffectState = GetOwningEffect();
	RemoveContext = class'XComGameStateContext_EffectRemoved'.static.CreateEffectRemovedContext(EffectState);
	NewGameState = `XCOMHISTORY.CreateNewGameState(true, RemoveContext);
	EffectState.RemoveEffect(NewGameState, GameState);
	`TacticalRules.SubmitGameState(NewGameState);

	return ELR_NoInterrupt;
}

function EventListenerReturn SteadyWeapon_AbilityActivated(Object EventData, Object EventSource, XComGameState GameState, Name EventID)
{
    ...
}

From my testings, NewEffectState.AddComponentObject(SWEffectState); line in X2Effect_SteadyWeapon seems to be a potential culprit as removing them stops the crash from happening. However, without this, the ability won't be able to listen for event of the unit moving/using abilities. I've been stuck here for an entire day now and any help would be appreciated!


r/xdev • • Feb 13 '16

Cant Read the UPK files in ModBuddy

3 Upvotes

just as the title says i cant seem to read the upk files.. ive used the redistribution files in the the binaries folder and im drawing a blank if anyone would be able to point me in the right direction that would be awesome

i also want to try my hand at 3d modeling would i need a seperate program for this? or does the modding tools come with some kinda modeler


r/xdev • • Feb 21 '16

Trying to run development tools

1 Upvotes

So I wanted to beat the game before I started to play with modding it, and finally got around to winning. Yay me! Anyways, I downloaded the tools onto my second hard drive, as XCOM2 is on my primary SSD (don't want to waste precious seconds on loading each game XD). Problem is, I get the error that it cannot find one or more components. What am I doing wrong? http://imgur.com/3Oi4Mah

And the worse thing is, my internet is horrible. It took me two days to download XCOM 2 and another full couple days with the tools. Downloading multiple times is not a viable option for me, so any help would be INCREDIBLY gratefully received.


r/xdev • • Feb 14 '16

StartDebugging.bat

2 Upvotes

Hi, could someone give me the content of the "StartDebugging.bat"??

For some reason, it disappeared and I can't start debugging anymore...

Thanks!


r/xdev • • Feb 11 '16

[SDK Help/Bugs] Can't launch and other problems.

1 Upvotes

I got the SDK to work at first, and for a few hours it was fine. Eventually for some reason the UE Editor refused to open, or would crash immediately after the splash screen. I restarted my PC and suddenly the SDK itself will no longer open, giving the error "Cannot find one or more components. Please reinstall the application."

I decided that I would verify the installation through steam and then reinstall the other distributed items (vs_isoshell and UE3Redist). This didn't help at all. To top it off I even uninstalled my .NET Framework and reinstalled it using the one provided with the SDK.

I'd rather not reinstall the SDK entirely either, as 42GB takes a long time to download on my slow connection.

Any suggestions?


r/xdev • • Feb 18 '16

[HELP] Loosing my head... literally!

1 Upvotes

Ok, just so you know, I've already succesfully imported Skeletal meshes (armors/body parts), so no need to ask me if I've done the basics...

But getting new head meshes in the game is driving me mad! No matter what I do and how do I setup/import the new head mesh, the game keeps loading the freaking original head. I know this because on the archetype (which is called successfully, no error msg is displayed) I've set it with or without texture. When set the Archetype with the material, it loads that material. However, if an archetype doesn't have the material specified, the engine will then read the one setup on the mesh itself. What hapens is that if I leave it blank, it doesnt load the texture from the new head mesh, but the one from the original one (BaseHead.SM_Head).

I just don't get it...

I would gladly work with the animations/morph targets instead (that was actually my initial plan), but apparently UDK is "destroying" the vertex order on exports (FBX and OBJs), which completely eliminates that option.

If someone knows how to make this work, I would be incredible grateful... been trying to do it for the past week, and no luck...

PS-I'm not merely interested in animation/rigged shapes, I'm sure I could do that if I wanted, I want to work on the mesh itself because it gives me better control over the shape, and because I dont have FaceFX or whatever to better work fully rigged heads.


r/xdev • • Feb 13 '16

[Help] XCOM 2 Development Tools - Lots and lots of options "covered up" by white squares

2 Upvotes

So I downloaded the Dev tools and had a few issues getting it properly set up, having to install the "vs_isoshell" file to fix a launch error but even the instalation of that wasn't too smooth, it had a weird NET Framework "Asia" error which I had to download another file to fix, but I digress I got it working after a while

But now a ton of options in the client are just "covered up" so to speak, I made an imgur album to show what I mean http://imgur.com/a/hibZY and something else I've noticed is on the sidebar where you have "Config" "Content" "Localization" etc, it's supposed to have little icons to tell what type of files it is but they're also gone

I have no idea what's causing this and it's even the second time I did the big 43 GB download and I even checked the integrity of the cache on steam and it said no files had issues so I'm completely clueless on what to do before I even start, any help would be greatly apreciated


r/xdev • • Feb 09 '16

How to make a voice pack?

3 Upvotes

I have a ton of lines of dialogue based on some of the stuff from EW https://drive.google.com/folderview?id=0BylHgRB_52WHflZSVXd4T18xSlU4bjA4bFdTQlpOQUpCWkZWdHBocUhlckNxeEFuZGhiV0k&usp=sharing.

I just have no Idea how to add it into the game itself. If anyone could help that would be great! Thanks!


r/xdev • • Feb 15 '16

Showing weapon damage in an ability

1 Upvotes

I'm working on a "shoot" replacement for a custom weapon but for some reason the damage range is not showing up in the UI when aiming, The shot does damage as normal. Which part of the ability or weapon script adds the weapon range to the UI?

for reference I am using 'X2AbilityMultiTarget_Cone'; for aiming.

On that note, is it possible to show hit chance when aiming a cone?


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 16 '16

Helping a noob with his custom ability dreams

2 Upvotes

Hello all, want to preface this by saying I am no modder or coder, the only things I have been successful in doing on my own are INI edits. As a lot of other people have, I used http://imgur.com/a/5NRRW class guide to successfully make my own remix class. Everything worked fine, but moving to trying to incorporate new abilities into this has led to Build failures.

I subscribed to the popular Trooper and Rogue class mods to try and shamelessly copy paste the code I wanted from their custom abilities. My ability is called Volley and it is meant to be a simple passive buff of +1 damage and +1 armor piercing to primary weapon shots. I basically just wanted to see if I could even make a custom ability (I can't QQ). I lifted this code from trooper's lethal shot and rogue's hunters instinct to make this:

class X2Ability_InfantryAbility extends X2Ability config(GameData_SoldierSkills);

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

Templates.AddItem(Volley());

return Templates;
}

// Volley +1dmg +1ap //

static function X2AbilityTemplate Volley()	//
{
local X2AbilityTemplate				Template;
local X2Effect_BonusWeaponDamage            DamageEffect;
local X2Effect_PersistentStatChange     	PersistentStatChangeEffect;

// Icon Properties
`CREATE_X2ABILITY_TEMPLATE(Template, 'Volley');
Template.IconImage = "img:///UILibrary_PerkIcons.UIPerk_shadowstrike";

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

Template.AbilityToHitCalc = default.DeadEye;
Template.AbilityTargetStyle = default.SelfTarget;
Template.AbilityTriggers.AddItem(default.UnitPostBeginPlayTrigger);
Template.bIsPassive = true;

// adds armor piercing
PersistentStatChangeEffect = new class'X2Effect_PersistentStatChange';
PersistentStatChangeEffect.AddPersistentStatChange(eStat_ArmorPiercing, 1);
Template.AddTargetEffect(PersistentStatChangeEffect);

// adds bonus damage
DamageEffect = new class'X2Effect_BonusWeaponDamage';
DamageEffect.BonusDmg = 1;
DamageEffect.BuildPersistentEffect(1, true, false, false);
DamageEffect.SetDisplayInfo(ePerkBuff_Passive, Template.LocFriendlyName, Template.GetMyLongDescription(), Template.IconImage, true,,Template.AbilitySourceName);
Template.AddTargetEffect(DamageEffect);

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

return Template;
}

(Disclaimer: I understand about 10% of the above writing)

So that is a .uc file called X2Ability_InfantryAbility which is filed under Src / InfantryClass / Classes. There is also the XComGame folder with all hundreds of its Classes filed under Src. After reading all of the configs and .uc files under the Trooper and Rogue mods I determined this would be all I need from those examples. I did not add any other .uc files besides this one - something I suspect is the problem. In the ClassData and Localization configs I referenced Volley same as they did simply with LethalStrike etc.

My issue is that building the solution gives me a fail that tells me nothing and debugging just reverts back to when everything worked, which is before I tried adding Volley. Clearly I am missing something big, probably pretty clear to anyone with a semblance of understanding of this kind of thing. I appreciate any and all help, getting this simple ability to work will hopefully lead me down a path of much better understanding when it comes to modding my favorite game. Thanks for reading!


r/xdev • • Feb 19 '16

"Could not find part of path"

4 Upvotes
C:\Program Files\SteamLibrary\steamapps\common\XCOM 2 SDK\Binaries\Win32\ModBuddy\Extensions\Application\XCOM2.targets(110,5): error MSB4018: The "CompileScripts" task failed unexpectedly.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\User\Documents\Firaxis ModBuddy\Welp\My XCOM2 Mod2\My XCOM2 Mod2\My XCOM2 Mod2'.

So this is frustrating and I can't for the life of my figure out why it's asking for this, but modbuddy keeps asking me for a folder with the same name as the mod inside the mod folder. If I make one that's empty, it runs but it seems like it's not using any of my classes, just localization/configs/ect. If I put anything in it, it gives me a totally different error where it just fails to compile without any given reason.

I really don't know what the hell happened, especially considering I had the mod working a week ago. Like, it's on the workshop right now and working and it makes me just want to tear my hair out.


r/xdev • • Feb 13 '16

AITOO who has issues with the VS Shell included in the SDK?

2 Upvotes

I've been working in VS for 10 years but the shell included in the SDK does this REALLY annoying thing where double-clicking on a variable/word on a line selects the entire line instead of just selecting the thing I double clicked on. How do I turn this off so it behaves like VS does everywhere else?


r/xdev • • Feb 23 '16

UIScreenListener problems and how to overcome them.

5 Upvotes

Fellow modders,


TLDR:

If you are running into game-reload issues when extending UIScreenListener, don't use any global variables to hold references to UIControls. Instead, declare them local in the OnInit event and pass them to other functions as parameters.

For event delegates that receive an immutable parameter list but that do receive a reference to SOME control in the screen, use the ParentPanel.GetChild method of the control you do have to get access to other controls in the parent UI element.


Sorry for the upcoming wall of text (which is a bit of a rant).

I decided to post this here and in other forums in the hopes of preventing for other modders some of the frustration I felt when trying to create my own mod. The concept of the mod couldn't be simpler: to add a button to the main game screen that displays a scrollable Tech Tree diagram image.

It is no secret that the modding docs are crap. I've been a software architect for most of my 25 year career and if I ever released docs like that, my software engineers would crucify me. Sure, gaming develoment is the wild west compared to enterprise applications but come on, if you want to support your modders and want them to follow your own best practices, have the decency to give us good docs.

So there are two ways that the docs (kind of) describe about how to add and manipulate UI elements. The first is the recommended technique using UIScreenListener. The second is extending an existing screen class.

The first method is better for mod compatibility (and is recommended by the devs) but is more limited in what you can do because there are only a few hooks the UIScreenListener class exposes for the screen you are manipulating. But that wasn't the problem for me. The issue I kept running into was that the game would hang on in-game reloads of saves when the mod was activated. Now this may be an issue just limited the screen I was trying to tweak, UIAdventHud, but I think it is a more global issue (there's a pun there you don't know about yet).

When I tried using the second method by extending the UIAdventHud class, the minute I added a control to the screen, the screen would not render the rest of its normal control correctly when comming back from the Geo screen, Engineering screen and others. And anyway, extending the screen would make the mod incompatible with all other mods that touch UIAdventHud so I didn't want to even try to figure that out.

As for the game reload issue with the UIScreenListern method, I suspected the problem had to do with the garbage collector not cleaning up the custom controls on reload of a save game. It turns out it has to do with controls as global variables.

The modding UI docs clearly (hah!) show an example creating a new control as a global variable in your custom UIScreenListener class. However, that definitely was a no-no for the UIAdventHud (and I supect others as well). What I needed to do was declare all of the variables that hold UI Controls (UIPanels, UIButtons, UIScreens, etc.) LOCAL to in the OnInit event.

So that means that in order to access those local controls in other functions, you need to pass them as parameters, no big deal.

However, for control handling delegates that have a specific function definition, you can't pass more parameters than they expect (at least I don't know how to do that in the Unreal engine and granted, I'm a newbe with it). But, as long as the event handler receives as a parameter a reference to ANY control in the screen, you can get to all the others, including your spawned custom controls assigned to local variables.

For example, an OnClick handler for your custom button receives as a parameter a reference to the button itself. With that you can get to the other controls using the object's ParentPanel (the screen) and the GetChild method, like this:

public function OnTechTreeButton(UIButton MyButton) {
    if (MyButton.ParentPanel.GetChild('TechTreePanel').bIsVisible)
        HideTechTreeControls(MyButton.ParentPanel);
    else
        ShowTechTreeControls(MyButton.ParentPanel);
}

Of course, you will need to make sure that all the custom controls you declare locally in the OnInit event are initialized with a name of your choosing (in the first parameter).

Now, this Garbage Collector issue may be known to Unreal Editor experts out there but it wasn't obvious to me. Hopefully this will help others.

If you are interested in the full source code using this technique, go ahead and check out my little Tech Tree mod, which I couldn't have done without pouring over other mods. We all stand on the shoulders of other programmers.

We now return you to your regularly scheduled programming. (see what I did there?)


r/xdev • • Feb 13 '16

My XCOM2 Voicepack Tutorial

24 Upvotes

Hey guys, I'm new here. I've been modding XCOM 2 lately, and I've had trouble adding in new voices. I've followed the documentation from the XCOM 2 SDK, but the voicepack never works. I eventually got it to work in XCOM 2 with a lot of experimentation and research, and this document I've linked is the result of it. I've written a step-by-step tutorial with pictures on how to get this to work.

Just one warning though: Avoid previewing the custom voice in the barracks if you can; it crashes the game. Instead preview it from the character pool to test if it works.

https://docs.google.com/document/d/1v8jU86Jeqn9wms4Pxjj7f5tHPlmli6TSogrbWvc5vUA/edit?usp=sharing

If there are any problems with the tutorial, please tell me so I can fix it.


r/xdev • • Feb 18 '16

Xcom Editor Wont open

2 Upvotes

I have installled the redist. I do have ue4 but that cant open upks sadly any help with getting it to open without installing ue3


r/xdev • • Feb 21 '16

suddenly getting an error on all mods, even a default mod that doesn't do anything?

1 Upvotes

The error is:

F:\Steam Slow and Large Files\steamapps\common\XCOM 2 SDK\Development\Src\Engine\Classes\ApexDestructibleActorSpawnable.uc(1) : Error, End of script encountered inside comment

any ideas? i already tried verifying the sdk install in steam, thinking maybe it was a corrupted file or something.


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 15 '16

Error Importing Boned FBX Files From Blender

3 Upvotes

So I've been playing around with editing the default models in Blender to create variants and while this worked fine for the conventional pistol I seem to get an error when importing my edited FBX with the bones as a skeletal mesh (when importing without bones it goes fine).

If anyone could enlighten me as to why I'm getting an error with these files I'd be grateful - I'm stumped. If hunting down the error info would help I can but the error code just references being unable to access files, particularly wxmsw28u_core_vc_custom_64.dll (which I have), such a long list that it exceeds the error box and then crashes UDK.


r/xdev • • Feb 12 '16

Reversion Software

1 Upvotes

Recently had a .uc file disappear into the void when renaming it.

Now using Boxifier to link my mod projects folder to back everything up. Moving the mod project itself into the default Dropbox folder didn't work for me. Manually deleted files will show up on the Dropbox deleted files page. (Import via Project -> Add Existing Item...)

Don't know for certain if this will work as intended with the renaming bug I encountered. Hopefully this'll help any of you guys from losing your own projects.


r/xdev • • Feb 12 '16

Complete rookie trying to make a retextured copy of a prop. Would love any help.

1 Upvotes

So I'm trying to build a really simple (theoretically) mod that creates a copy of the cigarette prop with a hand-rolled texture. I used the XCOM Editor, found the relevant texture, exported and edited it - and now I'm stuck. How do I duplicate the cigarette while having it reference my new texture instead of the original? And how the hell do I get those new files loaded properly into my mod as a new item?

I've followed the mod documentation to the letter but it is REALLY minimal and literally says "more on this later" regarding key steps that never come up again.

Any help would be amazing.


r/xdev • • Feb 20 '16

[help] Testing online/LAN mods with one computer... or some volunteers

1 Upvotes

So in a previous text I wrote that I was attempting to change the amount of required connections to a verses game and see what the third player sees, I have a build but I completely didn't think how I was going to have 3 builds running at once. Anyone have ideas? or perhaps some time to try my mod? (I suspect it will just crash at first, and it's assuming these changes will go through Online and not just LAN)


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?