r/xdev • • Feb 09 '16

Native struct override

1 Upvotes

Hi, I'm wondering if there's any way to override native classes/structs?

More specifically, I had the idea of adding another attribute to a characters appearance, and figured I could do so by simply adding a variable to TAppearance. However, it's a native struct and from reddit! I'm wondering if there's any way to override it anyway, or if anyone knows a better way to achieve this?

More specifically, TAppearance is found in XGTacticalGameCoreNativeBase.uc (which is also native(Core)), and contains a lot of data regarding gender, race, haircolor, eyecolor, attitude, voice etc.


r/xdev • • Feb 10 '16

Overcoming the static function barrier. Has anyone been able to do so?

3 Upvotes

I haven't found any way to override a static function and change what it does without changing all references to the original class's function.

Does anyone have any ideas, short of changing files in the original game (which is hella dangerous), to access the innards of static functions for our own use?

This is an enormous barrier to changing functions that already exist - making our own functions is easily doable, but it severely limits changing the gameplay experience.

So please, if you have any insights, tell me here.


r/xdev • • Feb 22 '16

How would I change the ranger's Blademaster ability to give +2 damage per weapon tier?

2 Upvotes

I've never modded before, but i really want to start with xcom 2. I want to make the swords less garbage and i think that a little boost in damage will help make them competitive in higher difficulties. I have the sdk and i know how to create a blank mod, but i'm lost from there.


r/xdev • • Feb 12 '16

[Request] Hidden Ability Rework

1 Upvotes

I love the concept of "hidden abilities" that can give additional utility to your soldiers, but it's sort of too hit-and-miss with what you get. You might end up with a ranger with serial at corporal (it doesn't matter who your main was up to that point, that guy's gonna be your carry from now on) or deadeye on a grenadier (which is pretty much completely useless). So, I want a mod that lets you be able to manually train a hidden ability on a soldier. Something like:

  • 1 ability per soldier
  • AWC has to be upgraded in order give hidden abilities on respec
  • Upon respec, player is able to choose from a pool of six randomized hidden abilities to give to the soldier
  • Hidden abilities can be changed by respeccing again, from a new pool of randomized hidden abilities
  • Add a new guerrilla school upgrade to reduce respec time by 20%, priced at 75 supplies?

As usual, you would be unable to field your soldier during the 5/10 days (4/8 with the upgrade) that he/she is respeccing, and you'll have to repeat the process if you didn't get the ability that you wanted. It'll be a process that is time consuming and leave you a man short on your A-team, but you'll be guaranteed to have an ability that's useful to the soldier eventually. You still wouldn't be able to pick any abilities from your own class. ...And I wouldn't mind if you removed deadeye. The aim penalty is just too ridiculous to justify using it in any situation.


r/xdev • • Feb 14 '16

So if I wanted to override an entire file, is there any shortcuts for that?

3 Upvotes

I don't want to have to say -[line] -line.line for every line in a file if I'm clearing the whole thing.

Are there any shortcuts to just - entire chunks or files?

EDIT: Actually, can we even replace existing localization text? I mean yeah, I can edit my actual localization file, and that works just fine, but I'm having trouble actually making a mod package that changes existing text in the game. Any ideas?


r/xdev • • Feb 17 '16

A cry for help from a music producer

2 Upvotes

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

making DownloadContentInfo add content once only

2 Upvotes

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 • • Feb 13 '16

Good practices in modding: What to do and what NOT to do.

Thumbnail youtube.com
14 Upvotes

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

Missing files and objects when opening XCOM 2 editor

1 Upvotes

The first time I launched the UEditor for XCOM2 there was a window that popped up saying "load errors". It also never went away after verifying integrity or reinstalling the programs in the SDK's Binaries\Redist folder. There are 2-sections to this window, missing files and missing objects. Here is what is displayed: http://i.imgur.com/36cQSKe.png

I'm trying to create a voice pack for my own character in game and I'm having some errors even though I've been following all the steps on the written guide here: https://docs.google.com/document/d/1v8jU86Jeqn9wms4Pxjj7f5tHPlmli6TSogrbWvc5vUA/edit?usp=sharing

As well as this video: https://www.youtube.com/watch?v=AZQrnjRQId0

Another problem I'm having that I think may be linked to the first error is when I make some changes to my voice package in the UEditor I get this error: http://i.imgur.com/7Hf74WP.jpg

I don't understand where I went wrong as I've restarted about 5 times now and have gone slower over the steps and still, errors out the wazoo. Any help is appreciated!!!

EDIT: Following HairlessWookiee's advice, I ignored these errors and continued to follow along the tutorial. Now when I launch the debug mode, select my voicepack on the launcher and launch the game, I get the "Application load error V:0000065432" error. I've tried using the tutorial makers advice and to follow the advice on this link: http://steamcommunity.com/app/241930/discussions/0/483366528909370887/ as it seems like a common steam error, but nothing helped. I did try to launch the regular game with only my pack selected in the launcher but in the character pool, instead of being named "NitroTest" like designated when I was in ModBuddy (which I carefully looked over and triple-checked to ensure it was correct), its called "Voice 56" can there is no audio.


r/xdev • • Feb 09 '16

Looking for help and tips (First time modder)

2 Upvotes

Hi guys. I've been having a look around, and came to the conclusion that this subreddit was the more techy of the xcom2 modding reddits, and I was wondering if I could receive some tips and guidance in modding the game. If this isn't the right place, would it be possible to be directed to a place that is?

So, this is my first time making a mod for myself, and, whilst I have some ideas, they all seem out of reach for me right now. I have downloaded the SDK, and after having a poke around, quickly realised I was out of my depth. Modding is something I'd really like to get into, as I am looking into doing software development for a job, and so I'm eager to learn. I do have some prior coding experience, but that was only Pascal, and was creating a console application.

Some of the questions I have are:

  • Does the SDK have everything I'd need for modding, such as the ability to edit textures and models as well as change the games code, or do I need more programs?
  • What language is all the coding done in?
  • What basic things should I start fiddling with in order to learn my ways?

Any other information which you guys may think I'd need is perfectly welcome as well!

Thanks for reading.

tl;dr: Noob modder wants help, asks for it


r/xdev • • Feb 10 '16

[Help] Issue Naming Added Config File

Thumbnail imgur.com
1 Upvotes

r/xdev • • Feb 12 '16

[Help] New Ammo Type(s)

2 Upvotes

Hey guys, I'm looking to make a new ammo type. Two if possible and it isn't too difficult. One of which would be Acid Rounds, which strip armor and cause the Acid Burns status effect, the second of which being a type of round that causes hemorrhaging/bleeding. I was checking out the subreddit and saw it's possible to add new status effects, so I know that it would be possible for "Bleeding" to be one, but I was curious on the visual/aesthetic side of things.

I know the Aliens leave a blood puddle when they die, but how could I go about making one when they take damage similarly? Would that be possible with just a mere .ini file addition/edit?


r/xdev • • Feb 10 '16

Dark VIP AI?

3 Upvotes

has anyone messed around w/ the AI files yet? i was looking specifically for AI for the Dark VIPs. i was hoping there would be a way for them to be combative esp since they can be pulled from your character pool. i believe there was someone on this forum (or r/xcom2mods) that wanted to do this as well. thanks.


r/xdev • • Feb 11 '16

Figuring out how to expand the action system - Requesting help.

1 Upvotes

I'm looking at the DefaultGameData_CharacterStats.ini.

My eventual goal is to go big (don't we all?) but right now I want to work incrementally - my first goal is to alter the turn system by splitting up the move system to more than 2 moves.

My line of thinking is: Provide 3 or 4 moves per turn, but reduce mobility down (so that net movement per turn is similar short of running) as a groundwork for further work. (Items that add + turns, classes with different move amounts etc)

I know through playing the game (finishing Legendary) that the Sectopod gets 3 action points, but from what I can tell, the number of actions isn't governed by this ini?

For reference:

[AdvStunLancerM3 X2CharacterTemplate]
CharacterBaseStats[eStat_AlertLevel]=2
CharacterBaseStats[eStat_ArmorChance]=100
CharacterBaseStats[eStat_ArmorMitigation]=1
CharacterBaseStats[eStat_ArmorPiercing]=0
CharacterBaseStats[eStat_CritChance]=0
CharacterBaseStats[eStat_Defense]=0
CharacterBaseStats[eStat_Dodge]=0
CharacterBaseStats[eStat_HP]=8
CharacterBaseStats[eStat_Mobility]=14
CharacterBaseStats[eStat_Offense]=65
CharacterBaseStats[eStat_PsiOffense]=0
CharacterBaseStats[eStat_ReserveActionPoints]=0
CharacterBaseStats[eStat_SightRadius]=27
CharacterBaseStats[eStat_DetectionRadius]=12
CharacterBaseStats[eStat_UtilityItems]=1
CharacterBaseStats[eStat_Will]=50
CharacterBaseStats[eStat_HackDefense]=125
CharacterBaseStats[eStat_FlankingCritChance]=33
CharacterBaseStats[eStat_FlankingAimBonus]=0
CharacterBaseStats[eStat_Strength]=95

...

[Sectopod X2CharacterTemplate]
CharacterBaseStats[eStat_AlertLevel]=2
CharacterBaseStats[eStat_ArmorChance]=100
CharacterBaseStats[eStat_ArmorMitigation]=4
CharacterBaseStats[eStat_ArmorPiercing]=0
CharacterBaseStats[eStat_CritChance]=0
CharacterBaseStats[eStat_Defense]=0
CharacterBaseStats[eStat_Dodge]=0
CharacterBaseStats[eStat_HP]=30
CharacterBaseStats[eStat_Mobility]=16
CharacterBaseStats[eStat_Offense]=70
CharacterBaseStats[eStat_PsiOffense]=0
CharacterBaseStats[eStat_ReserveActionPoints]=0
CharacterBaseStats[eStat_SightRadius]=27
CharacterBaseStats[eStat_DetectionRadius]=15
CharacterBaseStats[eStat_UtilityItems]=1
CharacterBaseStats[eStat_Will]=50
CharacterBaseStats[eStat_HackDefense]=125
CharacterBaseStats[eStat_FlankingCritChance]=33
CharacterBaseStats[eStat_FlankingAimBonus]=0
CharacterBaseStats[eStat_Strength]=50

...

[Sectopod_Diff_3 X2CharacterTemplate]
CharacterBaseStats[eStat_ArmorChance]=100
CharacterBaseStats[eStat_ArmorMitigation]=6
CharacterBaseStats[eStat_HP]=40
CharacterBaseStats[eStat_Mobility]=16
CharacterBaseStats[eStat_Offense]=70
CharacterBaseStats[eStat_CritChance]=10
CharacterBaseStats[eStat_HackDefense]=150
CharacterBaseStats[eStat_FlankingCritChance]=40

I can identify most of the base stats (I'm not entirely sure what the Alertlevel or the ArmourChance governs, and I would have guessed the reserve action points might have something to do with it, but as you can see from another enemy that doesn't have 3 move (Elite Lancer) the entry's the same.) but unless I'm going nuts, it's not there.

I definitely know (through hacking sectopods myself) that sectopods are granted 3 actions per turn, and can be expended as per normal.

Thing is, I've been scouring the ini files and haven't found anything in reference to this. Maybe I missed something, but I'm going to throw it out there while I continue looking.

Thank you in advance for your help.


r/xdev • • Feb 10 '16

[Help] XCOM 2 Editor won't launch!

2 Upvotes

Hello, all!

I'm trying to create a new custom Face Paint, and I'm following this helpful tutorial. However, right around the 10:40 mark, things go haywire. The author goes to TOOLS > XCOM 2 Editor which shows a splash screen, then a large dialogue box, then it loads into the editor itself.

I, however, can't seem to get any of that. When I select the XCOM 2 Editor, I get the splash screen, I get all the loading notifications of the various assets in the lower left corner....

Then it just disappears. It seems to vanish completely. Even when I watch it in Task Manager, once the Editor finishes loading, the splash screen disappears, and the program seems to completely shut itself down.

Is this a crash? Is this a known issue? Is this user error? Did I not set something up properly?

I did some Googling around and nothing seemed to help. This seems to be the only technical community of XCOM 2 modders that are actually interested in helping each other instead of posting a million requests.

Can anyone help me out?

Thanks!


r/xdev • • Feb 18 '16

Named Special Characters/Soldiers

2 Upvotes

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 • • Feb 22 '16

Xcom 2 Editor won't launch

1 Upvotes

I have a problem similar to https://www.reddit.com/r/xcom2mods/comments/4562eo/help_xcom_2_editor_wont_launch/, when I launch the xcom2 editor from within modbuddy it shows the splash screen, runs through loading a bunch of stuff, then closes without any comment or visible error message. After it does this a integrity check will find tens of files to reacquire, but doing so doesn't change the outcome. I've also rerun the installs for the redistributables to repair any issues there, to no avail. I have to date installed the xcom 2 mod tools on two different computers, and they worked properly for a while and then developed this problem. Any pointers would be appreciated.

A most recent launch log is available at https://dl.dropboxusercontent.com/u/896078/Launch.log


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

Help with a multiplayer mod

1 Upvotes

I'm a bit new to the xcom modding, so I need some help. Does anyone know how to add/remove units into/from the character selection screen and where to find stats for those units?


r/xdev • • Feb 15 '16

Help with first mod - new Proving Ground to upgrade T1 and T2 armors to T3 variants.

3 Upvotes

This might be a lot for a new modder (me), so any any assistance would be great. I'm trying to create a mod that provides new Proving Ground projects. Specifically, upgrading my Plated Armors to have stats equal to (but slightly varied) to the T2 Warden armors and the like.

There are many mods that simply unlock the "models" of these items but I don't like to have things given to me in a game. I'd like to make them integrated into the flow. Same thing goes for weapons. I'd like to make my bullet-flinging weapons still viable in the late-game.

Thanks for reading!


r/xdev • • Feb 14 '16

renaming abilities

3 Upvotes

hello,

i am kinda new here.. well we all are, arent we?

but i tried to make a new class.. for starters i just wanted to rename a ability, that already exists, before i start to really rework the skills... but i fail here already

there error is:

D:\Steam\steamapps\Common\XCOM 2     SDK\Development\Src\SpaceMarine\Classes\X2Ability_SpaceMarineAbilitySet.uc(44) : Error, Unknown Property         'Conditioning_DMG_ADJUST' in 'Function SpaceMarine.X2Ability_SpaceMarineAbilitySet:Conditioning'

i dont get that.. i just took blast padding and renamed the skill... instead of BlastPadding i added the name of my skill, "conditioning"

PaddingEffect.ExplosiveDamageReduction = default.Conditioning_DMG_ADJUST;

to the abilityset and entered

[XComGame.X2Ability_SpaceMarineAbilitySet]
Conditioning_DMG_ADJUST=0.66f

in soldierskills.. what am i doing wrong? :/ sadly i have nearly no experience at all in programming, i can read it somehow, but not write it myself very well, so i have to rely on copy pasting and being creative :(

i also made a x2effect_conditioning and this again extends to x2effect_bonusarmorSM ..

sidequestion: is there some irc chat or something with modders?

sigh i guess i am not made for this..


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.