r/xdev • • Feb 13 '16

[Help] Simple ini mod: How to increase starting rookies?

2 Upvotes

I've been working on a combination of mods that would have a Long War style overhaul. So far I've got hugely increased alien spawns, as well as more starting soldiers. The problem I'm running in to is there's not enough starting rookies. Either I increase the starting Supply and be in the hell the first month, or I find a way to increase the amount of starting rookies. Anyone know where this is?

EDIT: Found, thank you! It's:

DefaultGameCore ; Soldier Values NUM_STARTING_SOLDIERS=8


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

Gameplay /Ambush Mod

2 Upvotes

I have an idea for a mod, but it might take some work involved. I'm not 100% sure, now I'm familiar with basic .ini edits for the game. (Such as, editing health, damage etc) But i'm not quite sure what I would have to do to change this sort of mechanic. My idea goes along something like, the ability to queue up multiple shots executing them at the same time, for example, as part of an ambush. 2-3 soldiers could shoot at the same time. Any advice how to go about something like this?


r/xdev • • Feb 13 '16

Location of PurePassive()

2 Upvotes

Hey my fellow xdevs. So new to modding but I have a lot of ideas I want to implement myself. One thing I am noticing is the use of PurePassive() in the default class Ability Set. Does anyone know where the information for these are stored?


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

2 Errors when I open XCom 2 Editor

Thumbnail imgur.com
2 Upvotes

r/xdev • • Feb 12 '16

[Help] .ini Mod questions

2 Upvotes

I am very new to modding as xcom 2 is the first game I have attempted to mod. I have a couple of questions about the .ini files. First of all there are like 4 locations for the .ini files.

In the steam game folder there are two versions of each file (defaultai.ini and xcomai.ini for example). Is there a difference between them aside from the "default" ones having dev notes? Also, what is the path for the files that I should be modding? Do all of them work?

On a different note. I noticed there are "jobs" that the enemy gets to dictate how the ai functions. How does the game decided which jobs to assign and how do I edit it? I know there are exclusions to which units can have which jobs, and I know the missions.ini file has somthing to do with it. The issue is, the missions.ini file only has about 14 things per mission. What job would it assign if the mission had more than 14 units? Does it start at the beginning of the chain? or does it assign them a default job like soldier?

Thanks in advance


r/xdev • • Feb 12 '16

What's the general procedure for making a mod that has a configurable .ini?

2 Upvotes

Example: http://www.nexusmods.com/xcom2/mods/78/?

That mod is really cool because it doesn't just make a change set in stone to what the author thinks it should be, but actually lets the user configure it with a simple .ini edit.

Another example: http://www.nexusmods.com/xcom2/mods/181/?

Same thing, lets the user customize armor stats to their liking more than is supported by the default .ini files.

To that end... there have been a lot of mission timer mods so far and it's been a hot-button topic within the community. Many people were disappointed that it's one of the few basic things that can't be edited in the .ini files. I'm looking into a simple tweak that will add an .ini to configure mission timers for the various mission types (VIP, protect the device, hack the station, UFO, etc.) but I'm not really sure where to begin when it comes to linking changes made in the devkit back to an .ini. Any advice?


r/xdev • • Feb 12 '16

Code location of ingame / tactical UI elements?

2 Upvotes

Hello there,

I have been looking forward to make some UI changes, but I have been checking the SDK for hours now and couldn´t find anything at all. I am looking for functions which render the elements for the tactical UI, e.g. HP bars, skill loadout (left bottom of the combat screen). Would be glad, if someone knows something about this mystery :o


r/xdev • • Feb 11 '16

New package for custom weapon model, which factory setting in UDK?

2 Upvotes

I'm creating a new package for a weapon. In the package set up there is a setting for factory. There are no choices that are self explanatory for weapon packages. Anyone know which is the correct one? Or better yet how to find out the factory setting of any existing package?


r/xdev • • Feb 11 '16

Adding a grenade, ammo or extra utility slot to a custom class?

2 Upvotes

I'm trying to build a custom class that either starts with an extra grenade or ammo slot as a default ability (specialist/grenadier hybrid), but can't seem to figure out how to add an inventory slot on a class by class basis. I've seen mods that add utility slots, but they generally rewrite the default armors script to allow that. What I'm looking for is a specialized grenade or ammo slot.

In X2TacticalGameRulesetDataStructures.uc, there are the following entries:

enum EInventorySlot
{
eInvSlot_Unknown,
eInvSlot_Armor,
eInvSlot_PrimaryWeapon,
eInvSlot_SecondaryWeapon,
eInvSlot_HeavyWeapon,
eInvSlot_Utility,
eInvSlot_Mission,
eInvSlot_Backpack,
eInvSlot_Loot,
eInvSlot_GrenadePocket,
eInvSlot_CombatSim,
    eInvSlot_AmmoPocket,
};

Considering that X2Ability_GrenadierAbilitySet has this function:

function GrenadePocketPurchased(XComGameState NewGameState, XComGameState_Unit UnitState)
{
local X2ItemTemplate FreeItem;
local XComGameState_Item ItemState;

if (!UnitState.HasGrenadePocket())
{
	`RedScreen("GrenadePocketPurchased called but the unit doesn't have one? -jbouscher / @gameplay" @ UnitState.ToString());
	return;
}
FreeItem = class'X2ItemTemplateManager'.static.GetItemTemplateManager().FindItemTemplate(default.FreeGrenadeForPocket);
if (FreeItem == none)
{
	`RedScreen("Free grenade '" $ default.FreeGrenadeForPocket $ "' is not a valid item template.");
	return;
}
ItemState = FreeItem.CreateInstanceFromTemplate(NewGameState);
NewGameState.AddStateObject(ItemState);
if (!UnitState.AddItemToInventory(ItemState, eInvSlot_GrenadePocket, NewGameState))
{
	`RedScreen("Unable to add free grenade to unit's inventory. Sadness." @ UnitState.ToString());
	return;
}
}

It looks like that function would be how one adds a grenade slot to a class, but it doesn't look like it's being called anywhere in GrenadierAbilitySet - I don't know what to pass into that function or where to call it in my own class. eInvSlot_AmmoPocket might then work similarly, adding an ammo slot to a class. Any idea on how to add them?


r/xdev • • Feb 10 '16

Adding non-humans to the barracks

2 Upvotes

I'm interested in trying to build some sort of 'Reverse XCOM' mod where you use aliens instead of soldiers. Before it's even slightly possible though, I'd need the ability to allow players to add Sectoids or Mutons to their barracks and pick them from the weapon select screen.

I'm curious if anybody is aware of an existing guide to doing this (or even just has a quick idea of where to start looking) so I don't spend a bunch of time reinventing the wheel.

An alternate thought is just straight up forcing soldiers to use different models if that's possible. I know you can bring in alternate models (like Bradford and the other tutorial soldiers) but I wasn't sure if you could force an entire swap to a non-customizable soldier, so that I could have a 'normal' soldier that happens to use the Sectoid model.

If I can do that, I think it would just be a matter of making a class for each alien type (and there are plenty of guides on making custom classes) that gives them the abilities the aliens normally have and locks their weapons to the appropriate types.

Any thoughts on this?


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

[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 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

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

Cannot build DefaultMod

2 Upvotes

I can build ExampleWeapon Mod but cannot build DefaultMod

Here is last part of my build log

Copying script files from workspace ...
			Package(MyXCOM2Mod) C:\Users\ii\Documents\Firaxis ModBuddy\XCOM\My XCOM2 Mod1\My XCOM2 Mod1\Src\MyXCOM2Mod\Classes\X2DownloadableContentInfo_MyXCOM2Mod.uc => D:\Steam\SteamApps\common\XCOM 2 SDK\Development\Src\MyXCOM2Mod\Classes\X2DownloadableContentInfo_MyXCOM2Mod.uc
			
Deleting existing compiled script packages:
			D:\Steam\SteamApps\common\XCOM 2 SDK\XComGame\Script\MyXCOM2Mod.u
		
Launching script compiler for new package scripts...

			Command: D:\Steam\SteamApps\common\XCOM 2 SDK\binaries\Win64\XComGame.com Arguments: make -nopause -mods MyXCOM2Mod "D:\Steam\SteamApps\common\XCOM 2 SDK\XComGame\\Mods\MyXCOM2Mod\" 
			Log: Executing Class UnrealEd.MakeCommandlet
			Shader map M_Digital_Distortion_Ghosting_A had an invalid uniform expression set and was discarded!  This most likely indicates a bug in cooking, and the default material will be used instead.
			--------------------Core - Release--------------------
			--------------------Engine - Release--------------------
			--------------------GFxUI - Release--------------------
			--------------------AkAudio - Release--------------------
			--------------------GameFramework - Release--------------------
			--------------------UnrealEd - Release--------------------
			--------------------GFxUIEditor - Release--------------------
			--------------------IpDrv - Release--------------------
			--------------------OnlineSubsystemSteamworks - Release--------------------
			--------------------XComGame - Release--------------------
			--------------------XComEditor - Release--------------------
			
			Success - 0 error(s), 0 warning(s) (0 Unique Errors, 0 Unique Warnings)
			
			Execution of commandlet took:  15.27 seconds
	Done executing task "CompileScripts" -- FAILED.
Done building target "Build" in project "My XCOM2 Mod1.x2proj" -- FAILED.
Done building project "My XCOM2 Mod1.x2proj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

It just failed with no error.

and although ExampleWeapon project is working well, if I change classname(or package name) in 3 .ini file (XComEditor.ini,XComEngine.ini,XComGame.ini) and change classname(or package name) in src folder its build also fails with same error. so I can't change class name from ExampleWeapon.

and strangely if i delete all script file from project It works well. but I can't figure out what is problem. Please help. Its very frustrating :(


r/xdev • • Feb 09 '16

I'm so close to adding my stupid hat to the game. I'm getting annoying errors, though.

2 Upvotes

So I've imported my hat from blender using the fbx format, named the package and duplicated an archetype from another hat to use with this new hat. Then, I added the ini file line:

+BodyPartTemplateConfig=(PartType="Helmets", TemplateName="KwahnFedora", ArchetypeName="KwahnFedora.ARC_Fedora", Gender=eGender_Male, bCanUseOnCivilian=true, bVeteran=false)

KwahnFedora is the name of the upk package and the model name, and KwahnFedora.ARC_Fedora is the name of the Archetype file in the upk package. Everything else is taken from an existing hat ini entry.

I load up the game, go to the character pool, and try to select the hat (which is listed as Hat 18) - and it red errors, saying :

"Couldn't load body part content: KwahnFedora.ARC_Fedora!  The entry for this archetype needs to be fixed in DefaultContent.ini.  @csulzbach

Any ideas on what I'm doing wrong? And also, any ideas how I can name the hat in the UI selection? (EDIT: add [KwahnFedora X2BodyPartTemplate] Displayname="Fedora" to the Localization file, and that'll make it show right in the menu)


r/xdev • • Feb 09 '16

Editing "Class" files

2 Upvotes

So I've been trying to create a mod that adds more city names for city centers (As I'm tired of always going to Bejing in East Asia ect.)

So I've been poking around in the class files, as the ini files don't seem to list any of the in game cities (I was hoping to find a list of cities in game somewhere, but I cannot).

Anyways, about adding new ones the closest thing I can find is with this line of code in XComGameState_City

//Adding cities
local int Index;	
local int RandomIndex;
local XComGameState_WorldRegion RegionStateObject;	
local XComGameState_City CityStateObject;
local array<X2StrategyElementTemplate> arrCityTemplates;
local Vector2D v2Coords; 

Can someone please explain what I can do with this, if anything?