abeclancy Posted November 15, 2016 Share Posted November 15, 2016 Just thought I'd make a little post regarding the couple of most recent XCOM 2 patches. The patch from November 8th made numerous changes to many of the SDK .uc files regarding controller stuff, making information more visible, button prompts, etc. Anyone overriding core packages would need to compare against the approximately 264 updated files. But the BIG thing from that patch is that mod loading was finally fixed after being broken for over 4 months. Mods can override UPK files in the game's /mods/ directory, AND can override UPK files when downloaded via the Steam Workshop. The latter was promised in the June 2016 patch but never correctly functioned, and the former was broken in that same patch. It looks like there was another XCOM 2 patch on November 15th, but as far as I can tell this one does not change any of the UC files. This looks like a pure EXE-related patch. Link to comment Share on other sites More sharing options...
robojumper Posted November 15, 2016 Share Posted November 15, 2016 The November 15th patch actually fixed the targeting bug, but they forgot to update the Script files. https://www.reddit.com/r/xcom2mods/comments/5d5e99/psa_latest_patch_15112016/ <-- there's an example of changed stuff. Link to comment Share on other sites More sharing options...
abeclancy Posted November 15, 2016 Author Share Posted November 15, 2016 Nice sleuthing! But, poop. Was there just the one change in the UPK, or are there significant changes? It's quite possible that they don't consider the missing scripts that important, and they might not push an update just to fill in the missing files. It might be worth it to compile a list of all the changes if there's no update soon. Link to comment Share on other sites More sharing options...
robojumper Posted November 15, 2016 Share Posted November 15, 2016 (edited) I didn't check for other changes, as I knew where to look for this change... I don't have any experience in cooking, but in order to make the comparison easier, you could cook XComGame.u, then decompress your cooked upk and the original one both with umodel / decompress.exe, and export them using UE Explorer. This should avoid hitting all the differences due to stripped out log statements and assertions. Edited November 15, 2016 by robojumper Link to comment Share on other sites More sharing options...
abeclancy Posted November 15, 2016 Author Share Posted November 15, 2016 I have a repository of the previous SDK versions, so I already have both XComGame packages. How would I go about decompressing and comparing them? Link to comment Share on other sites More sharing options...
robojumper Posted November 15, 2016 Share Posted November 15, 2016 You can decompress cooked XComGame.upk files with Gildor's decompress.exe http://www.gildor.org/downloads You can then open these decompressed upk files with EliotVU's UE explorer http://eliotvu.com/portfolio/view/21/ue-explorer This has an option to export scripts (Tools->Export->Classes). They automatically land in the installation directory/Exported, so you have to copy them out. Link to comment Share on other sites More sharing options...
abeclancy Posted November 16, 2016 Author Share Posted November 16, 2016 Took a look with your instructions, worked just fine. There are other changes to other .uc files, but unfortunately it's hard to determine exactly where the changes are because the official UPK files contain comments and logging calls, while the ones that I cooked do not. It's 2300+ files that are different, so either someone's going to have to look through them all individually or I need to figure out how to either get a cooked package with comments/cpptext/logging functions intact or strip them out of the official packages. Link to comment Share on other sites More sharing options...
robojumper Posted November 16, 2016 Share Posted November 16, 2016 /u/FXS_MisterKevin said that the SDK should now have up-to-date sources here http://www.reddit.com/r/xcom/comments/5d515t/_/da2r751 Link to comment Share on other sites More sharing options...
abeclancy Posted November 16, 2016 Author Share Posted November 16, 2016 Nice! Yeah, looking at the updated SDK it's clear that only the UITacticalHUD and *_AbilityContainer files changed. It's difficult comparing UPK files unless you know what you're looking for, I should keep copies of the old UPKs in case it's needed for some reason or another. Turns out I didn't keep them previously, and comparing an official build UPK to one that I made is just a plain old mess. Link to comment Share on other sites More sharing options...
Recommended Posts