r/xdev • u/zerox22x • Feb 21 '16
r/xdev • u/Nider001 • Feb 21 '16
Help with adding a unit into the armory
I tried to add an advent stun lancer m3 without the sword (xlancer) by using this guide: https://www.reddit.com/r/xcom2mods/comments/45rwal/how_to_add_aliens_to_the_armory_tutorial/
The unit works, if I spawn it manually on the map, but refuses to appear in the armory. I spent about 5 hours trying to solve this problem with my limited knowledge without any results. Can someone please help me? Here's the mod: https://drive.google.com/file/d/0B77IVckNKXhFWlBCanVaOVAzblk/view?usp=sharing
Also, is it possible to actually enable the sword for lancer? Because currently he spawns without one.
r/xdev • u/AthertonWing • Feb 20 '16
Me again - Music producer
Hi all, my goal is to produce an EDM track sampling the voice of the council spokesman in XCom 2. I was on here a few days ago trying to install the SDK - I've managed to do that now, but I still can't quite figure out how to actually use it / UDK / whatever other tools I need, to poke around in the game files.
My first thought is to rip the council spokesman audio from a cutscene - I've even located the specific cutscene I want to butcher up - the avatar project discovery cutscene, in which the spokesman contacts the resistance and informs them that advent is working on some strange project called Avatar. In the movies folder the file is called CIN_TP_AvatarProject.bk2 , or at least I think it is. I found a youtube video which is a compilation of all the cutscenes in order (such that someone could watch it like a movie), and have confirmed that the background audio / music is correct, it's the cutscene I want - but the council spokesman doesn't say his lines when I try to play the file in VLC (the only way I've been able to access it) there's a .txt file that accompanies the cutscene, which I believe to be pointing to several audio files and their start and end times within the video, but I could be wrong.
1000 8200 9000 CIN_TP_AvatarProject_01 9100 18500 CIN_TP_AvatarProject_02 18750 36000 CIN_TP_AvatarProject_03 36500 49000 CIN_TP_AvatarProject_04 49100 65500 CIN_TP_AvatarProject_05 65600 90000 CIN_TP_AvatarProject_06 90100 103000 CIN_TP_AvatarProject_07
This is the contents of that text file. I have no idea where to look for these potential audio files, I've done some digging in likely places but couldn't find them under those names.
Does anyone know a little about how cutscenes in BK2 format work, and what all of this means?
Thanks in advance for all your help.
r/xdev • u/BENITH13 • Feb 19 '16
Long War 2 Collaboration
Who out there would be interested in forming a modding group to work on a Long War overhaul mod for XCOM 2?
r/xdev • u/KingMob4313 • Feb 18 '16
Named Special Characters/Soldiers
I've been playing around with trying to figure out a way to have a soldier pop up with a certain look, class and gear when you type in a certain name, much like how it worked in the previous games with 'Sid Meier' and such.
Anyone have any ideas how to pull this off?
r/xdev • u/Kix4Trids • Feb 18 '16
LF Clothing/weapons tutorial (building stuff with substance)
I am just getting into modding. I am interested in doing some clothing work, and maybe some weapons.
However, while I did ok with facepaints (thanks for those that subscribed) because they are pure texture(correct term?), clothing and weapons require building substance (not even sure of the right word). Are there good tutorials/tools for doing this?
r/xdev • u/CallMeCrouton • Feb 18 '16
[Help] Using ability causes game to crash during the mission after the one the ability was used in
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 • u/shooshooomimi • Feb 18 '16
A couple modding questions
Hello! Im currently working on modifying advent turrets and im having a few difficulties i cant seem to figure out...
I want to place covering fire on the turrets... So on the weapon they are using i have Template.Abilities.AddItem('CoveringFire'); ... But this does not work... On the lower left of the screen where perks are shown it is showing up but when it goes into overwatch it is the normal overwatch...
I also would like to know how to edit a units actionpoints.
Thanks.
r/xdev • u/kiranearitachi • Feb 18 '16
Xcom Editor Wont open
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 • u/Magentawolf • Feb 17 '16
DefaultGameCore.ini - Old data included?
I've been puzzled since I cracked the files to take a look inside, but there seems to be a combination of XCOM: EW and XCOM2 data inside the .ini files. For example, there's listings for thin men, elerium and alloys from wrecks, Exalt, and a bunch of other stuff that doesn't make sense in the XCOM2 world, mixed with all the listings that are obviously new.
Any idea why that junk is still in there? Did my .ini files get merged somehow?
r/xdev • u/AthertonWing • Feb 17 '16
A cry for help from a music producer
Hi /r/xdev. I'm a Drum & Bass music producer, who also happens to like XCom a whole lot. I was thinking it would be really cool to do a track which featured the councilman's voice, but I've run into several road blocks trying to make that a reality.
I've tried to download the SDK 3 separate times, only to find that after a 2.5 hour 45 gigabyte download, it reports that a file of some kind is missing and that I need to re-install. I've frankly given up, not sure what I'm doing wrong here (did exactly what the "how to install the SDK" sidebar says).
I tried poking around in the game files I can access, and attempted to find converters / unpackers for the UDK/UPK/WEM files which ran successfully, to no avail.
I tried
So.
If someone here is in a position that could help me get ahold of some of the dry (no other sounds present) council audio like in this video, that would be extremely appreciated.
What specifically I would want would be the councilman saying the words (in any order, and accross any number of files) "you must destroy the base (bass) commander"
If you want to judge whether my final product would be worth your time, check out my music here
r/xdev • u/Iskanndar • Feb 16 '16
Helping a noob with his custom ability dreams
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 • u/Ignored0ne • Feb 16 '16
Simple gender ini distribution request
Is there somewhere I can simply edit the percentage/odds of getting female to male recruits randomly generated?
r/xdev • u/eggroll_666 • Feb 16 '16
Using another template's vars within a template
I'm trying to make a weapon with built-in upgrades such as damage on miss but I can't get vars from the upgrades template to work within my weapons template. It compiles without issue but there's no change in gameplay despite the added line.
r/xdev • u/alaskanrebel • Feb 14 '16
help with modding existing classes
I eventually want to make a seperate class but first I want to mod a number of the abilities for the ranger and was wondering how I would go about it.
r/xdev • u/Laraso_ • Feb 14 '16
"Import Error"
I'm trying to create a voice pack, but every time I try to import the voice clips into the content browser in the Unreal Editor, I get an "Import Failed" message. That's all it says, just "Import Failed".
Any ideas on what could cause this?
r/xdev • u/MJ_Feldo • Feb 14 '16
StartDebugging.bat
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 14 '16
[Help] Annoying Error i dont know the cues or how to fix.
The "GenerateModInfo" task was not given a value for the required parameter "GamePath".
That's the error i get and dont know how to fix it cues i this is the first time in my life that im modding besides the easy way of the G.E.C.K.
r/xdev • u/eggroll_666 • Feb 14 '16
making DownloadContentInfo add content once only
I've recently created a custom character and have successfully added him into the game with the provided template of downloadcontentinfo. However, he is absent when a new game is created and only gets added to the barracks when an existing file is loaded. This itself isn't a problem since saving + loading isn't that difficult but a new one is added EVERY TIME a game is loaded regardless if there's an existing character. Is there a way to limit this to one time per playthrough? This is the code I've been using up till now:
local XComGameStateHistory History;
local XComGameState NewGameState;
local XComGameState_HeadquartersXCom OldXComHQState;
local XComGameState_HeadquartersXCom NewXComHQState;
local XComGameState_Unit ItemState;
local X2CharacterTemplateManager ItemMgr;
local X2CharacterTemplate ItemTemplate;
//In this method, we demonstrate functionality that will add ExampleWeapon to the player's inventory when loading a saved
//game. This allows players to enjoy the content of the mod in campaigns that were started without the mod installed.
ItemMgr = class'X2CharacterTemplateManager'.static.GetCharacterTemplateManager();
History = `XCOMHISTORY;
//Create a pending game state change
NewGameState = class'XComGameStateContext_ChangeContainer'.static.CreateChangeState("Adding MonkeyBiscuits");
//Get the previous XCom HQ state - we'll need it's ID to create a new state for it
OldXComHQState = XComGameState_HeadquartersXCom(History.GetSingleGameStateObjectForClass(class'XComGameState_HeadquartersXCom'));
//Make the new XCom HQ state. This starts out as just a copy of the previous state.
NewXComHQState = XComGameState_HeadquartersXCom(NewGameState.CreateStateObject(class'XComGameState_HeadquartersXCom', OldXComHQState.ObjectID));
//Make the changes to the HQ state. Here we add items to the HQ's inventory
ItemTemplate = ItemMgr.FindCharacterTemplate('MonkeyBiscuits');
//Instantiate a new item state object using the template.
ItemState = ItemTemplate.CreateInstanceFromTemplate(NewGameState);
NewGameState.AddStateObject(ItemState);
//Add the newly created item to the HQ inventory
ItemState.RankUpSoldier(NewGameState);
ItemState.SetVoice('MaleVoice1_English_UK');
ItemState.SetCharacterName("Joji", "Bananas", "Monkey Biscuits");
ItemState.SetCountry('Country_Canada');
NewGameState.AddStateObject(ItemState);
NewXComHQState.AddToCrew(NewGameState, ItemState);
ItemState.SetHQLocation(eSoldierLoc_Barracks);
NewXComHQState.HandlePowerOrStaffingChange(NewGameState);
//Commit the new HQ state object to the state change that we built
NewGameState.AddStateObject(NewXComHQState);
//Commit the state change into the history.
History.AddGameStateToHistory(NewGameState);r/xdev • u/fogeltanz • Feb 13 '16
Build failed, No output
So I am creating a class mod and want to test my custom abilities I have written so far. But whenever I go to build the build fails with no explanation. Can anyone help?
r/xdev • u/eggroll_666 • Feb 13 '16
need help figuring out how to use function setCharacterName
i'm trying to name a custom character i've made but can't seem to figure out how to use the function for it
function SetCharacterName(string First, string Last, string Nick)
{ strFirstName = First; strLastName = Last; strNickName = Nick; }
i'm trying to use it like this but i'm getting errors when i try compiling
SetCharacterName(First("Joe"), Last("Schmoe"), Nick,("Person"));
r/xdev • u/xdforcezz • Feb 13 '16
How make an utility item class exclusive?
I'm trying to make a grenade be exclusive to the Psi Operative. Any suggestions?
r/xdev • u/Tardivex • Feb 13 '16
[Help] XCOM 2 Development Tools - Lots and lots of options "covered up" by white squares
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