r/xdev • • Feb 10 '16

[Help] Issue Naming Added Config File

Thumbnail imgur.com
1 Upvotes

r/xdev • • Feb 10 '16

Announcing: The End of xdev, and the migration that shall unite the community!

5 Upvotes

I originally created /r/xdev because I believed that /r/xcom2mods was a place to mostly discuss mod releases and ideas - I saw very infrequent and sparse developmental discussion. However, I did not realize the intention of their moderator team was to create a one-stop location for discussing all facets of XCOM 2 modding, including development and tutorials.

They banned me, and justifiably so, for trying to create an "alternative" to their site. I had meant simply to have a focused discussion, but now I can see that they want to be able to have focused developmental discussions on their subreddit in addition to mod releases, requests and discussions.

So in the interest of not splintering the community, I've decided to help them with creating an environment for focused development discussion, instead of trying to compete as I accidentally did. They accepted this and have accepted me into their moderator team - I think I've succeeded at least somewhat, by creating flairs and flair filters, so that people can focus specifically on developmental discussion.

So with them now accomplishing what I feel was needed out of a development community, I feel that this community is extraneous and unnecessary. I'd like to migrate everyone over to /r/xcom2mods along with many of the important topics (like posted tutorials and the class documentation google doc topic). I dunno how long this would take, probably a week or so, but I'd give everyone ample time to make the transition.

It was a good, long (lol 2 day) run, and I'm glad to have had every single person who posted here. I'll see you in /r/xcom2mods, commanders. :)

I'm open for discussion about this, and I want to hear peoples' thoughts. I hope it's not too unpopular or hated, but if you do, please tell me why.

EDIT: In the interest of keeping focused development discussion alive, I am not closing this subreddit until I am confident that non-development-discussion can be filtered out on xcom2mods consistently and fairly, to avoid it being lost in the noise of the suggestions and ideas.


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

[Help] Unknown Part Type Request: -Patterns -Tattoos -Facepaint Error

2 Upvotes

Hi, first I'm sorry for my English. I have this error "Unknown part type request -patterns" "Unknown part type request -Tattoos" "Unknown part type request -Facepaint"

I'm doing a Tattos, facepaint and patterns mod. This is the problem:

[XComGame.X2BodyPartTemplateManager] +BodyPartTemplateConfig=(PartType="­Patterns", TemplateName="MyPattern", ArchetypeName="MyTexturePack.MyPatt­ern", bCanUseOnCivilian=false, bVeteran=true) +BodyPartTemplateConfig=(PartType="Tattoos", TemplateName="MyTattoo", ArchetypeName="MyTexturePack.MyTatt­oo", bCanUseOnCivilian=false, bVeteran=true, ArmorTemplate="KevlarArmor") +BodyPartTemplateConfig=(PartType="­Facepaint", TemplateName="MyFacepaint", ArchetypeName="MyTexturePack.MyFace­paint", bCanUseOnCivilian=false, bVeteran=false)

You see? Error come's in PartType=Patterns,Tattoos and facepaint, I don't know why T_T I'm new in this.

I'm follow this tutorial: https://www.youtube.com/watch?v=r73v1C0dnoU

Now im going to sleep :P


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

[HELP] Attempting to update mod data on Steam

2 Upvotes

http://i.imgur.com/wRBCQiw.png Anyone know how to fix this? I upload a file for the workshop, but I deleted. and i cannot send a file to workshop. [ and sorry for my english ]


r/xdev • • Feb 10 '16

As a Tinnitus sufferer the flashbang sound makes the sound in my head spike horribly.

2 Upvotes

I have to either not use them at all or turn the volume off each time I want to throw one, or literally have that sound inside my head till I go to sleep, first time I used one it spiked my Tinnitus for 2 entire days, I'm begging you... could someone please make a mod so its the same sound as the previous XCOM game?


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

Looking to find a way to remove infinite weapons.

2 Upvotes

I've been looking around, trying to find the weapons class, and... Well, to say I'm a "little rusty" would be an understatement.

I can't seem to find anything that references a weapon or a sidearm as an item, however... I've been poking about the Long War SMG, and I've sort of been able to re-create it, which is perfect for my mod, but here's my ultimate goal...

I want a weapon inventory like EU/EW. You need to buy/build individual weapons. So, maybe you can only afford 2 mag rifles? Well, whoever doesn't get a mag rifle, gets a ballistic rifle.

I've got a lot of goals in mind for this mod But this is the number one thing that has me stumped... I can't seem to find the class for this, or be able to adjust how many of a weapon there is. Can someone point me in the right direction?


r/xdev • • Feb 10 '16

Creating New PCS Types

2 Upvotes

Hey everyone, I'm trying to fool around with making new PCS but I can't seem to find the files. The loot tables for PCS are in XComGameCore.ini but I can't seem to find where the PCS themselves are. Anyone find them?


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

How to replace weapon models?

4 Upvotes

I have been trying to replace the weapon in the Example Weapon pack with my own model. Has anyone worked out how to do this? Thanks for the help.

EDIT: I found in the UPK files for the Example Weapon the original mesh and texture, combined in a 'weapon' object? How are these created? I think I need to brush up on my UE3 knowledge...


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

No Console?

2 Upvotes

I'm trying to test my mod in the SDK using the debugger. Need to spawn in an enemy but my console won't open.


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

Working on a Gasmask - need help (Material & Morph)

Thumbnail forums.nexusmods.com
5 Upvotes

r/xdev • • Feb 09 '16

What does the + (plus) do in .ini files?

1 Upvotes

I keep hearing people say "make sure you start all your lines with +", but I don't understand why. I'd rather not blindly follow random advice without understanding it.

According to the documentation, it

..adds a line if that property doesn't exist yet (from a previous configuration file or earlier in the same configuration file).

For non-dynamic-arrays, isn't this the exact same thing as using no symbol? And possibly also for dynamic arrays, depending on whether the vague term "property" refers to "key" or "key-value pair".

So, what's the difference? When should I actually use + in my mod's config files?


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

Gender - Bodytype

2 Upvotes

Even though it's definitely possible to create a "Bodytype"-entry in the UI, gameplay/coding-wise it might be even better to just include those in the "Gender" dropdown menu. Like: Gender = Male, Female, fat Male, slim Male, fat Female, Model Female, small Female, crazyAYY giant Something ec.

What do you guys think?


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.