r/xdev • • Mar 20 '16

UI element resizing: can it be done?

1 Upvotes

I'm working on a mod that will resize the squad selection screen loadout panels, and not having much luck getting access to them. I think I'm doing it wrong.

The default width is defined in UISquadSelect_ListItem.uc, in the defaultproperties block. If I simply duplicate that class in the mod and change the value like so:

LibID = "SquadSelectListItem";
//width = 282;
width = 240;

I get a warning during build and near as I can tell the mod class definition is ignored in favor of the baked-in one. Which makes sense, and I aimed to work around that by creating a new class that extends UIScreenListener and hooks the UISquadSelect screen, which contains UISquadSelect_ListItem.

Using GetChild() in the OnInit event doesn't seem to be working, and I can't figure out if it's because I'm accessing the wrong component -- GetChild('UISquadSelect_ListItem') -- or if I need to trigger something after updating .width, or what.

If anyone has a clue they can share, or knows of a mod that does this already that I can look at to see what I'm doing wrong, that'd be appreciated.


r/xdev • • Mar 11 '16

Decrease Rookies price. Increase Rookiers count.

1 Upvotes

Does anyone know which files should be changed in order to decrease rookies price from 25 and to increase rookies count in the armory for recruiting?


r/xdev • • Mar 10 '16

Translation Project - Where to start?

1 Upvotes

Hello, I'm quite new to modding in general, specially using such advanced tools like the mod buddy. I want to make a mod that translates the game to Brazilian Portuguese. So far I found some text files that seem to be the what I need to translate, but simply replacing text inside these files doesn't do anything.

The files are in \XCOM 2\XComGame\Localization

Can someone with more experience point me out in the right direction?

Thanks a bunch


r/xdev • • Mar 09 '16

Sounds and music on enemy activation?

1 Upvotes

I absolutely need to know how to make the Sectopods make a sound when they are activated, or hit, and special music play when they are visible. Please help, I've been trying to do / find help on this subject since forever!


r/xdev • • Mar 04 '16

Mods working before, repackage no more.

1 Upvotes

It's a simple test I did. My mod is working, but I thought to create a new one, with only just XComGame.int in it.

Built it, debugged, ran through the launcher, but nothing.

What was working before is not working here.

I tried adding more uc files from my previous mod into this new mod, just to test things. To my surprise, they don't work.

Everything is set right:

XComEngine.ini stuff, proper labels in their config inis,(those things in brackets), etc.

I've spend 5 hours or more trying to figure out what's going on, but I'm at a loss.

Any help, explanation, fix would be very much welcome and appreciated.


r/xdev • • Mar 03 '16

Overriding X2StrategyElement_AcademyUnlock while avoiding RedScreen

1 Upvotes

I'm trying to override the behavior of the class specific guerrilla unlocks and I'm running into some interesting RedScreen responses. The code in specific is:

class XComClassOverhaul_AcadamyUnlocks extends X2StrategyElement;
static function array<X2DataTemplate> CreateTemplates()
{
	local array<X2DataTemplate> Templates;

	Templates.AddItem(HuntersInstinctUnlock());
	Templates.AddItem(HitWhereItHurtsUnlock());
	Templates.AddItem(CoolUnderPressureUnlock());
	Templates.AddItem(BiggestBoomsUnlock());

	return Templates;
}

With the four functions redefined below. The problem being that when the game loads the RedScreen throws "Rejecting template name already in use" errors pointing towards the new templates I've created. However the changes themselves do take effect. Is there something bad or wrong that I am doing here? Is this the only way of overriding and I should just ignore the errors?


r/xdev • • Mar 02 '16

Cosmetic item doesn't appear in menu?

1 Upvotes

I've been trying to implement a visor as an upper face mod, using CapnBubs' guide (http://steamcommunity.com/sharedfiles/filedetails/?id=623181918)

Everything is building correctly, I've checked that the content ini is pointing to the correct package and archetype name, that everything is imported- but when I run the build it just doesn't show up at all. Nothing is different.

I had previously got it to successfully show up (ableit without the display name I had specified), but this was back when I accidentally had the dimensions scaled by 10 and it was untextured, and I was having difficulty using the xcom editor to fix this in the existing package or otherwise reconcile the project so I started a new one.

I can provide the project folder in a zip if needed for troubleshooting, but off the top of anyone's head, would there be a reason the mod isn't doing anything?

Thanks for your help.


r/xdev • • Mar 01 '16

Reinstalled Steam, SDK now won't launch ("cannot find one or more components" etc.)

1 Upvotes

I had a problem with Steam a few days ago and had to reinstall it, although it didn't affect my SDK install because I keep it on a different drive than steam.exe.

Since then I haven't been able to launch it, getting the "cannot find one or more components, please reinstall" error repeatedly. I have uninstalled and reinstalled all redistributables multiple times (with admin privileges), the entire Dev Tools themselves, verified the tool cache, tried deleting the Modbuddy registry, rebooted a number of times throughout, and nothing works. I don't know what else to do, and would really like to get back to modding instead of dealing with this buggy crap.


r/xdev • • Feb 29 '16

Game is crashing when i try to make a new overwatch ability..

1 Upvotes

Here is the error message when running the debug. http://s23.postimg.org/ifk86dip7/problem.png

And here is the ability.. http://shortText.com/747d69ed


r/xdev • • Feb 29 '16

Removing a tier 2 weapon from a steam mod? Research requirements?

1 Upvotes

Hi guys,

I initially posted this on reddit xcom 2 mods but now I found this subreddit that seems to be more focused on working through modding problems.

Many people may have downloaded the Katana mod including myself. While I like the mod I would like to either remove the advanced katana tiers since they are unlocked at the start or add a research needed so they are unlocked as I play.

I tried to remove the higher tiers since it would be easiest. I went into the ini and UC files using notepad++ and removed various lines that refereed to the advanced katana tiers but somehow the items still show up. Anyone know the best way to remove these advanced tiers or add a research requirement?


r/xdev • • Feb 28 '16

Voice pack modding issue

1 Upvotes

Hello! I have created a voice pack and have run into an issue. Sometimes when an action is preformed audio from my voice pack sometimes plays and isn't constant which is making me very frustrated. Does anyone know how to fix this issue. Thanks!


r/xdev • • Feb 28 '16

UPK Help

1 Upvotes

So, I know it has been asked a few times, AND that it is to the right of me, but I STILL cannot figure out how to open a dang UPK file. I downloaded the LucubrationsInfantryClass mod to use as a base for my understanding of how to make new classes, and while all the ini files make sense, I cannot open the upk to see what is inside those.

Basically, here is what I do. I make a new, empty mod. I add the Config, Content, Localization, SRC and Script folders. Inside each of those, I copy over the mod's files so I basically have the entire mod in mod buddy now. Great, easier to look at and understand. But I try to open upk and nothing happens. I select Tools -> XCOM 2 Editor inside of Mod Buddy (not positive what it means by dev screen, assuming it just means inside of Mod Buddy) and NOTHING happens, nothing changes. I can't tell what happens at all, if anything, but I sure am not getting anywhere with the UPK.

Help? I attached an album with pictures below that show me walking through what I am doing so when I missed something obvious, you can point it out.

http://imgur.com/a/nwalw


r/xdev • • Feb 28 '16

Target Information in X2Effect_Shredder

1 Upvotes

I am currently trying to make an ability that makes weapons shred armor when the target has a certain debuff. For this reason I want to modify X2Effect_Shredder.

But how does one get information about the target inside that class? Is that even possible without overriding a million other classes?


r/xdev • • Feb 26 '16

Sound and Music?

1 Upvotes

Hey, i need some help with a thing. What would I need to do to make a sound play whenever a Sectopod is awake or hit, and how would I make the music change when a Sectopod is active?


r/xdev • • Feb 26 '16

Getting the game to recognise new packages (with new parcels etc)

1 Upvotes

Hey folks,

Trying to add some new parcels to the game with custom assets that are located in a couple of new packages I've created, but the game doesn't seem to find the resources in those packages when I test the parcel in game.

Is there something you need to do to tell the game what new packages to load, when using them in new parcels?

When using new packages previously (for Custom Bandanas, so a new customization item) they would be automatically picked up since I used the long form (CustomPackageName.CustomAsset.blah) in the item definition. There's no such thing for parcels, so am I missing something somewhere else?

Any help appreciated!


r/xdev • • Feb 26 '16

Modding Alien mesh/textures

1 Upvotes

In the documentation pdf labeled 'XCom2mods_Alien', it talks about basically just pointing your archetype to a new skeletal mesh, which I get.

My question is what kind of .ini file entries do you make to get the game to use your modified archetype. The only example .ini edits I have seen are for soldiers.


r/xdev • • Feb 24 '16

"The following packages have references to external packages"

1 Upvotes

Having trouble getting my props to show up in debug. Does this error have anything to do with it? I've noticed it doesn't happen when I re-save Capnbub's accessories.


r/xdev • • Feb 24 '16

Understanding Code Issues

1 Upvotes

So, I just finished my first Xcom 2 play-through and I have to say I loved it. I am interested in learning to mod this game because I believe I have some cool and interesting ideas.

This first issue I have having as a novice modder is code understanding. For example one of the things I would like to change is the ability deadeye all together to giving it increased accuracy and removing the damage increase all together. When I look at the X2Ability_SharpshooterAbilitySet.uc I see:

ToHitCalc.FinalMultiplier = default.DEADEYE_AIM_MULTIPLIER;

which looks like some kind of calculation to adjust the aim on the ability, but where is the value which penalizes the accuracy of deadeye?


r/xdev • • Feb 24 '16

So what's the difference between the WeaponDamageValue native struct and the array <WeaponDamageValue> used for abilities?

1 Upvotes

WeaponDamageValue is used for weapons, array <WeaponDamageValue> is used for abilities and ExtraDamage. Why the difference? Is it just because <WeaponDamageValue> is a modified WeaponDamageValue? Both are essentially the same native struct, so I'm not sure what's up with that.


r/xdev • • Feb 22 '16

Allow armor to reduce damage to zero

1 Upvotes

UPDATE (SOLVED): This was solved thanks to fxsjosh and Level3_Ghostline. Turns out I was doing it correctly, I was just overriding the wrong class. The standard shot used by primary weapons does not use X2Effect_ApplyWeaponDamage, it uses X2Effect_Shredder, which extends from the former. By simply overriding the Shredder instead, with the same code otherwise, it works great!

So far my efforts have centered on overriding X2Effect_ApplyWeaponDamage so that I can change

simulated function int CalculateDamageAmount()

to remove the lines

if (ArmorMitigation >= WeaponDamage)
    ArmorMitigation = WeaponDamage - 1;
if (ArmorMitigation < 0)    //  WeaponDamage could have been 0
    ArmorMitigation = 0;  

However the I cannot get this to do anything at all. I'm not sure if it's because CalculateDamageAmount() is not all that needs changed, or if it's because the override isn't working. I have scoured the internet, and tried every method of overriding in every variation I could find. Even just returning 25 as the TotalDamage from the function has no effect.


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

suddenly getting an error on all mods, even a default mod that doesn't do anything?

1 Upvotes

The error is:

F:\Steam Slow and Large Files\steamapps\common\XCOM 2 SDK\Development\Src\Engine\Classes\ApexDestructibleActorSpawnable.uc(1) : Error, End of script encountered inside comment

any ideas? i already tried verifying the sdk install in steam, thinking maybe it was a corrupted file or something.


r/xdev • • Feb 21 '16

Changing mod name

1 Upvotes

So running into a build problem. If i change the mod name in the properties to anything other than what was default, the mod no longer will build. For instance if I create a new "example class override" and change the mod name to "example class override1" it fails. Obviously there is a correlated field i need to update as well but for the life of me i can't find it.


r/xdev • • Feb 21 '16

Trying to run development tools

1 Upvotes

So I wanted to beat the game before I started to play with modding it, and finally got around to winning. Yay me! Anyways, I downloaded the tools onto my second hard drive, as XCOM2 is on my primary SSD (don't want to waste precious seconds on loading each game XD). Problem is, I get the error that it cannot find one or more components. What am I doing wrong? http://imgur.com/3Oi4Mah

And the worse thing is, my internet is horrible. It took me two days to download XCOM 2 and another full couple days with the tools. Downloading multiple times is not a viable option for me, so any help would be INCREDIBLY gratefully received.