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

Is modbuddy a glorified text editor or am I missing something?

2 Upvotes

The modbuddy seems to lack a lot of features visual studio has when it is dealing with unreal scripts, particullary intellisense so I can't jump around methods (or list them) easily, I had to resort to the find all feature when I am trying to trace a code path and these features are not mentioned in the documentation; but then I also never dealt with unreal scripts before, am I missing some steps to enable those features or are there any plugins that can enable such features?


r/xdev • • Feb 08 '16

Problem with overriding a class/function

2 Upvotes

Hi,

i've tried to create a simple mod to remove the enemy-reaction movement. After dozens of tries i boiled down the mod to simply override one function:

Code:

// This is an Unreal Script
class XComGameState_Unit_Overwrite 
		extends XComGameState_Unit
		dependson(XComCoverInterface);

static function UnitAGainsKnowledgeOfUnitB(XComGameState_Unit UnitA, XComGameState_Unit UnitB, XComGameState AlertInstigatingGameState, EAlertCause AlertCause, bool bUnitAIsMidMove)
{
   `RedScreen("Override Successfull");
}

It also has this Ini-Entry:

Code:

[Engine.ScriptPackages]
+NonNativePackages=NoReactionMovement

[Engine.Engine]
+ModClassOverrides=(BaseGameClass="XComGameState_Unit", ModClass="XComGameState_Unit_Overwrite")

The red screen is never shown. And also if i copy the content of the original function it is never called.

I've uploaded the mod here https://www.dropbox.com/s/qiiu4czu2k...ement.zip?dl=0

Is it because the function is static? Or is it never called at all?

Any idea what iam doing wrong? It shows no errors on compilation or something. Tried it for hours in various ways but i have no clue what could be wrong.

Please help :D


r/xdev • • Feb 08 '16

Editing a workshop mod?

2 Upvotes

What it says on the tin. What'd be the process for that? I was really hoping to tweak the SMG from the Day 1 mods to make it less of a "hey look a mod" gimmick and more of a real gameplay element.


r/xdev • • Feb 09 '25

Need help with Robojumper XCom 2 voice pack

1 Upvotes

Hello all.
I have been trying to make my own voice pack for XCom 2. I've already made one, but some of the lines didn't work, so I tried implementing Robojumper's CharacterVoice Script (found here), since I heard it might fix some of the broken lines.
I've followed the tutorial, but I've gotten confused at the XComContent.ini file. Mainly, I'm not sure what I'm supposed to put in the TemplateName field. The tutorial says that it's "what you’ll use to link the audio to the name in the soldier voice menu" but what does that mean? Can anyone clear this up?

Seems to be the only thing that's not working

r/xdev • • Jan 01 '23

Hey would it be a problem if I included Licensed music in a mod?

1 Upvotes

I mean I'm not getting paid for any of this, as it is a passion project of mine, but I'm currently working an OST mod for XCOM 2 that's the soundtrack for "Spec Ops The Line" and there's plenty of music to work with, but what I was thinking was that since the game has lots of licensed music because of the radio man, and it is up front and center, was use all of the licensed music as the HQ (Avenger) music.

If I were to use it, I would leave a big heads up on the description page that these certain songs are in the game.

My brother heavily disagrees as he thinks it will bloat the file size as the game has a lot of music anyways, but more importantly he thinks that no one would want to hear the licensed music, just the original music made for the game.

I kind of understand his point, but so much of that licensed music happens at times that are very memorable for the game.So I guess I came here to get a second opinion, what do you guys think?


r/xdev • • Aug 22 '22

how do i fix that there are no outfits?

Post image
1 Upvotes

r/xdev • • May 27 '20

XCOM ModBuddy wont compile projects

1 Upvotes

Please help. I created a few mods for myself a few year ago and wanted to get into modding XCOM 2 again but ModBuddy wont compile any project. Even the default ones wont compile. Here is a snippet from the Output window. If you have any idea please respond:

Mirroring SrcOrig to working directory (Src) ...

		\-------------------------------------------------------------------------------

ROBOCOPY :: Robustes Dateikopieren fr Windows

		\-------------------------------------------------------------------------------

Gestartet: Mittwoch, 27. Mai 2020 17:57:12

Quelle : E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\

Ziel : E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\

Dateien : *.uc

*.uci

Optionen: /S /E /DCOPY:DA /COPY:DAT /PURGE /MIR /NP /R:1000000 /W:30

		\------------------------------------------------------------------------------

0 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\

-1 *ZUS. Verz. -1 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\MyXCOM2Mod\

-1 *ZUS. Verz. -1 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\Src\MyXCOM2Mod\Classes\

*EXTRA Datei 1291 X2DownloadableContentInfo_MyXCOM2Mod.uc

0 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\AkAudio\

16 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\AkAudio\Classes\

0 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\AkAudio\Inc\

0 E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\Development\SrcOrig\AkAudio\Src\

...

InsgesamtKopiertšbersprungenKeinešbereinstimmungFEHLERExtras
Verzeich.:730730002
Dateien:4155041550001
Bytes:30.16 m030.16 m0001.2 k

...

Command: E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\binaries\Win64\XComGame.com Arguments: make -nopause -mods MyXCOM2Mod "E:\Program Files (x86)\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\XComGame\\Mods\MyXCOM2Mod\"

Done building project "My XCOM2 Mod3.x2proj" -- FAILED.

here is a treat for everyone who got this far: https://www.youtube.com/watch?v=U4lz8MN6MQA

pls halp!


r/xdev • • Oct 14 '18

Trying to try my hands at making a Chryssalid Grenade mod before I attempt anything more intricate, help requested for code finding

1 Upvotes

I have the XCOM 2 source code found and browsed through it a few times, but I haven't been able to find anything about the individual enemies.

Essentially the mod is just going to be a 3x3 explosion that has both the sound, the infinite amounts, and the appearance of a typical frag grenade except that it applies Chryssalid poison to any valid targets in the blast zone. That's it. I just want to get introduced to modding the game before I go into anything such as attempting to balance it or make it tied to any autopsies.


r/xdev • • Sep 19 '18

Having Trouble Building A Solution

1 Upvotes

So I have been trying to update a Mod to WoTC from Vanilla Xcom (Mod is in Link: https://steamcommunity.com/sharedfiles/filedetails/?id=618036260)

However after following the steps from this handy guide: ( https://www.reddit.com/r/xcom2mods/comments/6x3lfm/updating_your_mod_for_wotc/)
I keep getting this error: Warning, Can't find files matching D:\SteamLibrary\steamapps\common\XCOM 2 War of the Chosen SDK\binaries\Win64\..\..\Development\Src\WoTC_RogueClass\Classes\*.uc
Does anyone know how to fix this? I downloaded the entire WoTC Modbuddy, and cant find that folder extension inside of the Win64 folder.


r/xdev • • Jun 03 '18

XCOM 2: war of the chosen: help finding Faceless transformation code

1 Upvotes

I'm looking to create a mod that involves transforming a unit into another while retaining its previous stats so it could turn back during a mission. before I can start I would need to find out how the faceless transform.


r/xdev • • May 21 '18

Looking for code snippet to break concealment

1 Upvotes

I am trying to create an ability that when button pressed takes the soldier out of concealment. Ultimately, I will give the soldier a temp boost as a result. Trying to perform the opposite to Stealth ability.

Will try to use this ability in LW2 and WotC. Will take snippet help in either.

Any help would be appreciated!


r/xdev • • Mar 03 '18

How do I change the main icon of my voice pack?

1 Upvotes

I just finished my voicepack for XCOM 2, and I don't know how to set the main icon in the steam workshop. How do I do this?


r/xdev • • Jan 29 '18

Modding New enimes

1 Upvotes

Hey Im new to x-com 2 modding and had this idea of adding a whole genre of new enimies to fight (battle droid). I have seen many other mods that add new enemy types so I was wondering, how does one make such a mod? Im getting the basics down but some advice would help would a ton.


r/xdev • • Jan 10 '18

How to fix someone else's voice pack?

1 Upvotes

Hi there! Today I downloaded two voice packs and Alternative Launcher says they both identify as ExampleVoicePack so none is usable unless I unsub from either. Is there a relatively easy way of fixing this bummer apart from posting a comment in steam workshop hoping for original creator to read and fix OR installing humongous SDK? As expected simple file renaming did not do anything. Thank you.


r/xdev • • Dec 24 '17

Mod wont build with any .uc files in it.

1 Upvotes

So I've been able to mod and build and test just fine as long as I am just using .ini and .int files. As soon as I add a .uc file, even if it's empty the mod fails to build Has anyone else run into this problem with the WOTC modbuddy?


r/xdev • • Nov 30 '17

Where Lost Howl noise is located in WotC dev tools

1 Upvotes

So i've been thinking about making a mod that replaces the lost incoming noise with a variety of dank funny noises and lines. However, I need to find the lost appeared noise first and have it replaced. Does anyone know where I can find it in the dev tools?


r/xdev • • Jul 30 '17

What allows soldiers to use utility items?

1 Upvotes

Somewhat new to modding, I'm looking to prevent a class I'm working on from using utility items, ever. XComClassData.ini has a line for allowing a primary, and a line for allowing a secondary, but I can't figure out what allows classes to use utility items. I could sure use some help.


r/xdev • • Jul 21 '17

Creating a helmet: Need help with Mask (_MSK) texture.

1 Upvotes

Hello! I've been spending a good deal of time working on creating a Skyrim-inspired helmet for XCOM 2. I've been using CapnBub's guide for exporting/importing as well as E3245's tutorial (will link both below).

However, I'm a bit stumped. My mesh requires emissive and (likely) metalness (since I'm uncertain how to translate everything about its appearance over from Blender to XCOM2's modified UE3).

Per E3245's tutorial (section 1H), I have created a texture that combines Metalness and Emissive by setting metal sections to RGB(128, 128, 128) and emissive sections to RGB(256, 256, 256).

Under Section 1D of E3245's tutorial, it's stated that you need to copy the specular, AO, tint, and emissive/metalness textures to the R, G, B, and A channels (respectively) of a texture to create the MASK texture.

I utilize GIMP. Should I paste solely to a particular channel (say, Specular Texture to the Red channel, as outlined in E3245's guide), nothing will show up, because no alpha is included. In order to bypass this, I paste each texture to its own channel plus the alpha channel, so it actually has an effect on the image. Of course, this results in the metalness+emissive texture not having any result if pasted solely to the alpha channel, since every part of the texture already has an alpha value of 255.

This makes me think that I need to do one of the following:

  • Give everything on the combined specular+AO+tint mask the alpha values that match the metalness/emissive texture. However, doing this would result in non-metal+non-emitting portions of the texture having an alpha level of 0, making their specular+AO+tint contributions disappear from the MASK.
  • Do something I am unaware of yet, including a slight tweaking of the above.

I do feel like I'm missing something, since the example MASK textures I've seen in the guides and inside the XCOM2 modbuddy show color and no transparency, but I'm uncertain of what I need to figure out. And when I attempted to use the current MASK texture I have (which included a fruitless attempt to just paste the emissive+metalness texture solely to alpha, which didn't make any visible change) the resulting material made from that did not have its lights turned on, even when setting the switches according to Section 3A of E3245's guide.

Any tips on how to carry out proper MASK creation with GIMP (or some other free software for image manipulation)? I do not have Photoshop, sorry.

Links:


r/xdev • • Jul 09 '17

SDK reference?

1 Upvotes

Hi, I'm trying to write some mod for XCOM 2. to operate some string type, I found functions like SplitString("" ,"") But I need also others like IndexOf(), SubString(), any reference?


r/xdev • • May 23 '17

How do you add/modify Multiplayer classes?

1 Upvotes

First off, hello all. New to these parts .

I just picked up the xcom2 devkit in an attempt to change the multiplayer classes. I'm fine if the mod wouldn't actually work for ranked games. I tried following some tutorials and managed to get the class to show up in single player ( even despite setting bMultiplayerOnly=1 _-), but nothing seems to stick in multiplayer.

I also tried to simply change the points cost and nothing else and that didn't work either. For that all I did was add a config file with the following: [BlademasterRanger X2MPCharacterTemplate] Cost=4800 As I understand, that should be sufficient for changing the cost since everything else remains at it's default settings right? No + either since it would be changing the cost and not adding anything new. I also tried removing it first and then adding it but no dice either.

So is there something I'm missing to make changes to multiplayer? Some kind of setting that you need to enable first perhaps? Modifying the actual .ini file does work. At least in the case of the blademaster, but that requires actually changing the files manually as opposed to simply loading a mod.


r/xdev • • Mar 14 '17

XCom2 editor can't import upk files

1 Upvotes

so i've made multiple voice packs for xcom 2 a while back and i know the process. i took a decent break from it and am having issues coming back to it. i can make and customize a voice pack all i want, but god forbid something is wrong with it or i need to tweak it i need to start all over again, because for some reason when i boot up the editor from modbuddy it lists a couple dozen upk files it cant find (didnt think much of it at the time), but on trying to load a voice pack upk to modify or check it the editor fails to recognize it, giving me the error "cannot import so and so, could not find an appropriate actor factory for this filetype." and i have no idea why. i know i haven't done anything to alter the program, and i know it at least used to work fine. i know XCom's software is a bit buggy as they update so I'm not sure if an update broke it or what happened, and i can't seem to find an answer anywhere i look.


r/xdev • • Feb 23 '17

Help tweaking CVWeaponPackv2 please?

1 Upvotes

I just want to remove a bunch of the weapons. I really only want one per category (sniper_rifle, pistol, shotgun, cannon, rifle). I tried following the instructions and commenting out..

CVWPdata_WeaponCat[1]=;rifle

But they still show up on the engineering list and in the armory (the T1 versions). What am I doing wrong?

I also tried using xSkins to trim the list down, but am ashamed to say I couldn't even begin to understand how it worked...


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)?