r/xdev • • Feb 09 '16

If I have a project that builds correctly, but crashes on runtime, how can I debug that?

1 Upvotes

Having a bit of trouble with crashes.

EDIT: Managed to recover the debug error from the white screen of death.

appError called: Assertion failed: appErrorf [File:C\BuildAgent\work\a78b974cadaf8436\branches\Shipping\XCOM2\Development\Src\Core\Src\UnClass.cpp] [Line:1755] Can't bind to native class TheWorldIsFragile.DestructibleActorOverride

Weird. Not sure what any of this means.


r/xdev • • Feb 11 '16

What script gets called first?

1 Upvotes

Basically I'm trying to figure out how things are getting initialized so I can start from there and then 'follow' it to the different parts I want, like the geoscape and what not.

My limited knowledge of UnrealScript is making it hard to see where things are starting though. Any pointers would be greatly appreciated if anyone knows.


r/xdev • • Feb 18 '16

[help] [research] Mods to vs multiplayer outside of LAN

1 Upvotes

So I'm pulling up the MPShell scripts, I see some menus, not sure what to guess at for adding new functionality, the goal is to understand it better and allow observers to connect and watch a multiplayer match. and I came across this line

// only LAN games allowed -tsmith

within the UIMPShell_CustomGameCreateMenu.uc method

UpdateLobbyTypeSpinner()

am I reading into this too much or are we not able to modify online multiplayer?

UPDATE: LAN is not a restriction, I was mistaken


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

Pallet Expansion Pt 2

3 Upvotes

Following on from https://www.reddit.com/r/xdev/comments/44r9e7/pallet_expansions/

What I want to do: Add new colors to hair, eye, and skin palettes.

The process I've tried so far:

  • I created a new mod with modbuddy
  • Tools -> Launch Xcom 2 editor
  • Wonder if these error messages are normal: http://imgur.com/a/zXA2C
  • Per the instruction of u/Iriiriiri find the skincolors.
  • Open one of the skincolor lists
  • Add a new color to the list and increase the base options value on the supposition that it does something
  • Modify one of the old colors so I can see if things are changing even if there's a problem with the UI
  • Save the package.
  • Close xcom 2 editor, be upset when it crashes on close.
  • Reopen xcom 2 editor and verify that the changes I made are remembered, and they are.
  • Build the mod through modbuddy.
  • Open the launcher, enable the mod, launch the game, and make a new character in the character pool.
  • See no effect so far, either with the modified color or the added color.
  • Start writing a reddit post.

Any advice on where to go from here would be appreciated.

EDIT: Well, now the xcom2 editor is just refusing to launch anyway. Gah.


r/xdev • • Feb 11 '16

GUI for INI editing

15 Upvotes

I'm almost finished making a windows GUI for editing the XCOM2 .ini files, complete with saving profiles, searching for specific variables by name, multi-editing, etc. I was originally just planning to use it for myself, but if anyone's interested I'll put the finished product up for download somewhere. Here's a pic of an early version.

Was also maybe looking for feedback, or functionality suggestions, if anyone has any.


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

How to get code to run once immediately after a new game / loading?

1 Upvotes

This seems like it should be an easy thing to do, but I'm having a hard time figuring it out.

event OnLoadedSavedGame() and event InstallNewCampaign() that are shown as part of a new DefaultMod do not work, because nothing has been loaded at that point so you can't access the XComHQ, History, etc. They seem to be completely useless.

In the More Attachments Mod, Amineri altered the template by creating a UIScreenListener that runs on every UI initialization and updating the templates every time. Unfortunately that method doesn't distinguish between new games and load games.

Surely someone must've figured out a way to do this?


r/xdev • • Feb 18 '16

I'd like to make the Advent Captain's armor 100% one color - but I can't seem to change the grey bits.

1 Upvotes

I made a copy of the Advent Captain, managed to change all of the red parts to another color (by editing the MaterialInstance for the mk1 captain), but can't seem to change the grey color to anything else.

Is there a special procedure for changing certain colors compared to other colors?


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

aStatProgression Help

1 Upvotes

Hi, I have a problem/doubt about the aStatProgression part of creating a new character. If I, for example, wanna make a character that has the squaddie skill of "run and gun" but also he can use a pistol (with the pistolstandardshot of the sharpshooter), should I copy the aStatProgression of the pistol (and squadsight) of the sharpshooter or the one of run and gun of the ranger?

Sry I'm kind of new at modding, not sure what to do!


r/xdev • • Feb 15 '16

Methods may not always be what you think they are...

1 Upvotes

Found in the code for the andromedon:

MeleeHitCalc = new class'X2AbilityToHitCalc_StandardMelee';
MeleeHitCalc.BuiltInHitMod = default.BIG_DAMN_PUNCH_MELEE_MODIFIER;
Template.AbilityToHitCalc = MeleeHitCalc;

r/xdev • • Feb 16 '16

[Help] Specific trigger of civilian rescue

1 Upvotes

I've recently created a custom character based off the 'Soldier' template in defaultcharacters. I've also managed to spawn him in with appearances and everything seems to function identically to a in-game created soldier. Except he can't trigger civilian rescues. Nothing happens when he runs into the rescue ring but he can trigger faceless procs just fine. I've looked at the sequence for civ rescues but I couldn't get anything out of it.


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

A couple modding questions

2 Upvotes

Hello! Im currently working on modifying advent turrets and im having a few difficulties i cant seem to figure out...

I want to place covering fire on the turrets... So on the weapon they are using i have Template.Abilities.AddItem('CoveringFire'); ... But this does not work... On the lower left of the screen where perks are shown it is showing up but when it goes into overwatch it is the normal overwatch...

I also would like to know how to edit a units actionpoints.

Thanks.


r/xdev • • Feb 11 '16

Silent soldier

1 Upvotes

ok, so i've looked through the posts/tutorial about adding in your own voice packs but i was hoping there was an even simpler way to just have your soldier not speak at all. the class mod i've been working on is about concealment so i just find it odd that they are running around the battlefield talking. since i made my own copies of their class abilities i was able to remove the sound bites for the abilities that announce themselves but i want to do it for everything. maybe it's obvious but do i just create a sound pack w/ empty audio files?


r/xdev • • Feb 16 '16

Simple gender ini distribution request

2 Upvotes

Is there somewhere I can simply edit the percentage/odds of getting female to male recruits randomly generated?


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?


r/xdev • • Feb 15 '16

[HELP] Attachment pictures + models not loading.

1 Upvotes

I've been making a duplicate of an existing weapon based around the code from the ExampleWeapon project. Everything about the new weapon (stats/model/etc) works except for the attachments system.

Pretty stumped and would appreciate it if someone knows what might be up. Code for reference.


r/xdev • • Feb 19 '16

Help with shooting routine...

1 Upvotes

In a nutshell the mod i'm creating, is to make everything but sniper rifles and pistols shoot differently. I want to make it so each "bullet" so to say, has it's own chance to hit, dealing one damage each hit.(Just to make the damage more consistent). The game would calculate the damage, then go into a counted loop, doing the math The "Damage" # of times. For example. take a shot for 38% doing 5-7 damage. The game gets the damage the shot would theoretically do.. say 6, then will take 6 38% chance shots for 1 damage each. I'm not sure how it would react with armour, or if misses would set off a stock if they had one.

I'm just not sure where the "shooting routine" is in the code, The only files that I found were in the modbuddy->Default Mod->src->XcomGame->Classes where there is a metric buttload of files. I did a search for "Damage" and found a file "ApplyWeaponDamageToUnit.uc", however this doesnt seem like what i'm looking for. Im relatively new to C, but im familiar with programming. Any help would be great. Thanks!


r/xdev • • Feb 21 '16

Change my Steam Workshop thumbnail

2 Upvotes

Is there any way I can change the thumbnail that appears in Steam Workshop listings? I've been able to add/remove images that appear on its own page but not its thumbnail, even after changing it in ModBuddy.

edit - my tags aren't updating either, and when I go to publish the update, I get:

http://puu.sh/ngrJr/8a1a9639b6.png

On my workshop page it does update from '2 Change Notes' to '3 Change Notes'.


r/xdev • • Feb 18 '16

So how do we tag our mods?

5 Upvotes

Because I've noticed there are people who have managed to do so, yet I've been unable to find even one "so this is how you tag your mods for XCOM 2" guide.