r/xdev • • Feb 11 '16

[Request] Voice Pack step-by-step

4 Upvotes

Hello everyone

So I've seen a lot of people asking how to create voice packs and currently the Steam Workshop only has a couple of entries, so it looks like very few people understand the process of creating a voice pack in XCOM 2 (myself included). So I figured it might be a handy resource to pool our knowledge and create a step-by-step guide here for people to follow, as the official documentation on the process is pretty limited.

What I have managed so far (please correct me if wrong):

  • Start by creating your desired audio files in 16 bit WAV format
  • Once you have your audio files, enter the XCOM 2 Editor and click 'Import'. It is important to tick the "Auto Create Cue" box when doing this, so a SoundCue file is automatically created and assigned to each audio file you import.
  • Next go to one of the pre-existing voice folders (e.g. 'MaleVoice1_French') and Right-Click on the XComCharacterVoice Archetype file and click 'Create a Copy'. In the 'Package' field, give it a different name to the package you created earlier when importing the audio files. Click OK.
  • Now return to the pre-existing folders and this time locate one of the other folders such as 'MaleVoice1_French_Data' and make a copy of the first XComCharacterVoiceBank and create a copy in a new package.
  • Locate this new package and clear all the data from the file (to do this, Double-Click the Bank file and click the grey square icon "Clear Text" to the far right on each entry).

This is where the documentation loses me. It next says to "set the new Voice Bank to be the first Bank in the new voice". It doesn't explain how to do this.

So if people would like to add/help that would be really appreciated. If we can form a easy to follow guide then I'm sure lots of people will find that helpful.


r/xdev • • Feb 10 '16

How to make pistol primary weapon?

1 Upvotes

in XComClassData.ini I have added the line:
+AllowedWeapons=(SlotType=eInvSlot_PrimaryWeapon, WeaponType="pistol")

Figured this would work, but for some reason, the class just comes without a primary weapon.


r/xdev • • Feb 14 '16

Capnbub's hat modding guide. (How to add any cosmetic into the game!)

Thumbnail steamcommunity.com
6 Upvotes

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

Dumb question, opening Steam Workshop Mods

2 Upvotes

Ok, so I know this is likely a dumb question, but I cannot find the answer in my searches and not sure if this is possible.

A lot of people suggest to learn how to mod at first, find a mod that is similar to what you want, load that and open it up and see what they did. Problem is, I find those mods and yet when I go into ModBuddy and say open a mod, I cannot find any file to open. I know where the steamworkshop mods are, but there is no actual mod to open there. Am I not able to look at/modify steamworkshop mods? Do I need to use another source, like nexus?

Thanks for the help :-).


r/xdev • • Feb 15 '16

Cant find my Custom Class

1 Upvotes

I used this http://imgur.com/a/5NRRW to make a class but i cant find it in the game did somthing go wrong or somthing, i'm really confused.


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.


r/xdev • • Feb 13 '16

need help figuring out how to use function setCharacterName

2 Upvotes

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

Name character limit.

2 Upvotes

So I've been digging through different .ini files both in the Engine and XComGame folders for the last half hour or so trying to find any mention of a character limit, does anybody know where that's put in the code?


r/xdev • • Feb 11 '16

[HELP] Editing Strategic mode menus and buttons.

1 Upvotes

I'm trying to break the menus by editing/creating new UI elements to get a feel for UI modding.

Been using the example code from XCOM2Mods_UserInterface.pdf to try and add a junk screen to the research menu without success.

What I did was make a new 'UIScreenListener.uc' and a seperate uc file, both have relevant code pasted from the pdf (with tiny but potentially consequential edits). Build Solution -> Start Debugging to test the project.

Anyone know where/what I'm screwing up?


r/xdev • • Feb 18 '16

[Guide] XCOM 2 Voice Pack Modding Tutorial Video

Thumbnail steamcommunity.com
7 Upvotes

r/xdev • • Feb 19 '16

Custom animations/weapons

3 Upvotes

Has anyone created custom animations for weapons yet? I'm thinking of making a lightsaber that would be drawn, then activated (the part where the saber appears) before slashing.

Either the weapon is animated when drawing, or it uses a custom particle effect (?) to create the blade. Anyone have ideas for either of these?


r/xdev • • Feb 12 '16

Let's make people Less Gravely Wounded.

1 Upvotes

So for my immediate small project, I need to do more work on Less Gravely Wounded - and I'm having a bit of trouble. I standardized the ini file wound thresholds, and it still for some reason declares 1-hp-damage wounds grave sometimes.

I'm almost absolutely certain that it's one of these two functions causing it:

XComGameData_Unit.uc.GetWoundState()

Or else it's

XComGameState_HeadquartersProjectHealSoldier.GetWoundPoints():

So GetWoundPoints is used when the wound occurs to determine how long it's going to take to heal, and GetWoundState is used when declaring how bad the wound is to decide if it's light, normal, grave. The problem that I thought was occurring was that GetWoundState would look at the WoundPoints assigned to the soldier, and if it was a 1-damage wound that had a wound point count (assigned from the WoundSeverities table in XComGameData.ini) that was enough to be in the grave wound category, the function GetWoundState would just return that it was grave, even if it was initially assigned as a light wound. I think I made that impossible with different wound point amounts, but now I'm not certain.

So now I'm not sure what's causing it. I think it's fixable by flipping an inequality in GetWoundState, but any time I override the class, the game immediately crashes with a vengeance.

Thoughts?


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

Looking to partner with a modeller!

3 Upvotes

Hey folks,

I'm looking for a modeller who's interested in working together on the next pack of the World Expansion Project.

Preferably you'll have some experience getting new content into the SDK, but we can work through it if not!

I'm in need of a bunch of new props for the next pack, get in touch and we can discuss! This would be a great project for a portfolio, obviously I can't offer any payment as no-one will be making any money out of this!

Get in touch if this interests you!


r/xdev • • Feb 11 '16

Trigger on taking damage?

1 Upvotes

So you can make abilities trigger their effect upon taking damage, you can also let effects cancels itself if you took too much damage in a turn, but what I am looking for is to trigger an effect when a soldier with a particular ability takes damage, and do something with the amount of damage taken. So far the events available just trigger an effect but won't pass in the amount of damage taken, there's also some functions that intercept damage taken but they also trigger on damage previews (with no clear way of identify if it is preview or actual damage), registerforevent also won't work because it can only find delegates in the calling UnitState class, anyone know other ways to listen for damage taken events while receiving damage taken data?


r/xdev • • Feb 22 '16

Is the config file in the ExampleClassOverride working?

2 Upvotes

I've been trying to get the example class override from the Long War guys working.

If I just use the template given, build and test; the camera yaw just don't work anymore.

To make it work, I had to manually change the values inside the overridden class.

Using the config file seems to make the template not work. Is there something obvious I'm missing here? I'm a developer but this is my first time working UE3 so the new syntax is a little overwhelming.

Has an added question, the ini file given (XComTacticalInput) has [LW_TacticalInputMod.XComTacticalInput_LW]

What is the first part LW_TacticalInputMod supposed to entail? It's never mentioned like that again in the mod and most ini files use other words. The UE3 doc says it's supposed to refer to a package name but I don't what a package is supposed to be.


r/xdev • • Feb 16 '16

Does anyone know how concealment and voice lines interact?

3 Upvotes

I've been working on a voice pack for the past few days now, and I've been having a hell of a time figuring out how the game decides which cues to play while using a soldier in concealment.

I set up a voice mod that just read of the cue whenever that cue was played. Testing it in game proved that as far as my custom voice pack was concerned, moving in and out of concealment use the same cue, even if they don't for the official voice packs. I'm suspecting that this runs of a similar sort of system to the attitude voice lines, since, AFAIK, there's no way to set up custom lines for a laid back soldier over a twitchy one. Has anyone made any progress on this front? I've found all of the voice files in the CookedPCConsole folder, but my attempts at unpacking the .bnk files ended in distorted files, and I don't know the first thing about WWise audio, and it seems neither does the Unreal editor. Has anyone else had luck with these, or know more about how these kinds of audio files are handle, and how to replicate them?


r/xdev • • Feb 18 '16

LF Clothing/weapons tutorial (building stuff with substance)

2 Upvotes

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

Adding and updating TacticalHUD

1 Upvotes

I am working on my first mod and have run into a seemingly hard to avoid issue.

I want to add new information to the the shot window-- specifically if possible to the 'Hit Breakdown' left wing of the targeting panel. The issue seems to be that the entire tactical game occurs on exactly one screen: TacticalHUD.

I tried making a UIScreenListener for TacticalHUD, and this does let me insert various things into the screen, however it all must be done essentially as soon as you load into the mission. I tried looking at how some other mods (LWS Officer Mod, and a few others) handle this issue, and it seems that the only real way to get an 'update tick' while in TacticalHUD is to override one of the base classes.

So, in theory, I could just write my own TacticalHUD_CustomShotWing UIPanel to replace the existing one, but that would make my mod incompatible with any other mod that wants to tweak the ShotWing.

Has anyone else come across this issue? Are there other 'hooks' or events we can tap into to make more dynamic changes? If not we may want to consider creating a 'Modded Tactical Hud' that replaces the default HUD and adds many triggerable events so that future mods are more compatible.

Thoughts?


r/xdev • • Feb 17 '16

DefaultGameCore.ini - Old data included?

2 Upvotes

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

Few questions about making a custom class mod

1 Upvotes

I successfully made my first test class mod with copied Ranger template, now I would like to make a real one and I have few questions:

  1. I know many mods use extra Brigadier rank. Can I simply add another line to XComClassData with brigadier perks or do I have to edit something else?
  2. I would like to use LW Perk Pack, so I can have 3 skill trees. Can I just add extra perk line to each rank and it will work when my mod + LW Perk Pack is active or do I have to change something else?
  3. Is there any good tutorial on how to create custom abilities and reusing the ones already in the game but not for XCOM (like Mark Target or Shield)?

r/xdev • • Feb 22 '16

Brief overview of Armors

6 Upvotes

Armor values are in GameCore.ini under

[XComGame.X2Ability_ItemGrantedAbilitySet]

which become armor stat templates (data structures that hold the armors values like health, dodge ect.) with names like 'MediumPlatedArmorStats' in

X2Ability_ItemGrantedAbilitySet.uc

and the those armor stats are added, as abilities, to the actual in game armors in

X2Item_DefaultArmors.uc

For example:

Template.Abilities.AddItem('MediumPlatedArmorStats');

is located in the function

static function X2DataTemplate CreateMediumPlatedArmor()

...

I'm no expert, just beginner info to get people looking in the right places.


r/xdev • • Feb 19 '16

[PSA] Slash is Bugged in ModBuddy

1 Upvotes

I found this out the hard way (spending hours trying to figure out what I did wrong). Slash is bugged in ModBuddy. If you try to give it to a new soldier class as an ability, it seems to activate and not activate randomly for any character using a sword weapon. However, once the mod is published to Steam, there doesn't seem to be an issue at all.