XCOM 2
Skulljack and EMP Tweaks
Opposing Farce  [developer] 8 Feb, 2016 @ 4:12pm
How to remove Src Folder when building in SDK?
So, when I try to build the mod in the SDK without the 15mb Src folder it wont build, but I see a bunch of mods without the bloat of the Src folder. How do I build this mod without it? I would like to make it a lighter download.
< >
Showing 1-10 of 10 comments
The Iron Rose 8 Feb, 2016 @ 4:57pm 
Honestly you should just be able to delete everything in the src folder and have it build properly. Unless you've extended an unreal class in which case you of course need your custom script.

Then again the build function in the SDK is... tricky, let's say. Debugging the debugger and the build process is a gigantic pain due to a lack of verbose error logging. Perhaps ask around on the nexusmods forums? The LW developers hang around there and might have more answers for you, if only for the purpose of debugging the build process since there's absolutely no reason why you'd need the source folder. It's a bad idea to include it anyways, as it contains the entirety of XComGame's unrealscript classes and that makes compatibility tricky. Though unless someone's running an uncooked game (incredibly unlikely) since the process of editing unrealclasses is to extend them compatibility will probably be okay for now. Good practice to keep your downloads slim in any event though I suppose.

tl;dr no idea, it should work without the source folder, there are potential issues with leaving it in beyond a bloated download size but none that should materially effect most end users.
Opposing Farce  [developer] 8 Feb, 2016 @ 5:03pm 
Thanks! Ok, so when I deleted the src folder using the SDK it would spit errors, but then I tried deleting it outside the SDK and then within the SDK it compiled/built successfully. Now the question is how I update this mod... I don't see an update option.

Nvm, its via the SDK.
Last edited by Opposing Farce; 8 Feb, 2016 @ 5:09pm
Peewi 8 Feb, 2016 @ 5:10pm 
Build the mod and go into the publish menu. It'll update it. If for some reason you want a mod update to be a separate Workshop item, there's a file with the Workshop ID you can delete.

In my experience so far deleting/removing files in Modbuddy is very unreliable with lots of errors.
Opposing Farce  [developer] 8 Feb, 2016 @ 5:12pm 
Thanks! I did figure it out! And now the mod size is successfully .2 mb, rather than 10!
The Iron Rose 8 Feb, 2016 @ 5:14pm 
You wanna be really careful with your project files by the way. If you accidentally delete them there doesn't appear to be a way to update your workshop files. That's why I had to do two separate uploads for my No Avatar Progress mod.
Peewi 8 Feb, 2016 @ 5:20pm 
Originally posted by The Iron Rose:
You wanna be really careful with your project files by the way. If you accidentally delete them there doesn't appear to be a way to update your workshop files. That's why I had to do two separate uploads for my No Avatar Progress mod.

The number in the PublishedFileId.ID is exactly the same as the ID in the URL, so you could probably change that manually to overwrite any of your mods.
Opposing Farce  [developer] 8 Feb, 2016 @ 6:33pm 
Good to know. Yeah this stuff is super obtuse. I'll get my stuff on Nexus eventually. I greatly prefer NMM for most games. I imagine they'll make this compatible with NMM sometime.
The Iron Rose 8 Feb, 2016 @ 6:36pm 
Originally posted by Peewi:
Originally posted by The Iron Rose:
You wanna be really careful with your project files by the way. If you accidentally delete them there doesn't appear to be a way to update your workshop files. That's why I had to do two separate uploads for my No Avatar Progress mod.

The number in the PublishedFileId.ID is exactly the same as the ID in the URL, so you could probably change that manually to overwrite any of your mods.
Unfortunately editing PublishedField.ID doesn't work - it gets overwritten when you open or publish your solution.

It's actually a crazy huge oversight.
BlueRaja 13 Feb, 2016 @ 5:26pm 
The editor is broken, it craps out if you try to delete a file while you have it open.

Close all open files in the editor, then delete the /src directory.
Opposing Farce  [developer] 15 Feb, 2016 @ 12:34pm 
Wow, thanks! That makes a lot more sense.
< >
Showing 1-10 of 10 comments
Per page: 1530 50