diff --git a/CookCommunityHighlander.bat b/CookCommunityHighlander.bat index 7980c993b..1a7760506 100644 --- a/CookCommunityHighlander.bat +++ b/CookCommunityHighlander.bat @@ -90,12 +90,24 @@ echo Copying Engine.upk to SDK Highlander mod folder... copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Engine.upk" "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Engine.upk" copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Engine.upk.uncompressed_size" "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Engine.upk.uncompressed_size" +echo. +echo Copying Core.upk to local Highlander mod folder... +copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Core.upk" "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Core.upk" +copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Core.upk.uncompressed_size" "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Core.upk.uncompressed_size" + +echo. +echo Copying Core.upk to SDK Highlander mod folder... +copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Core.upk" "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Core.upk" +copy /Y "%SDKLocation%\XComGame\Published\CookedPCConsole\Core.upk.uncompressed_size" "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\CookedPCConsole\Core.upk.uncompressed_size" + echo. echo Cleaning up... if exist "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\XComGame.u" del "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\XComGame.u" if exist "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\XComGame.u" del "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\XComGame.u" if exist "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Engine.u" del "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Engine.u" if exist "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Engine.u" del "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Engine.u" +if exist "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Core.u" del "%GameLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Core.u" +if exist "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Core.u" del "%SDKLocation%\XComGame\Mods\X2WOTCCommunityHighlander\Script\Core.u" echo. echo. diff --git a/README.md b/README.md index ab6ab6c5c..7dcfa9e0b 100644 --- a/README.md +++ b/README.md @@ -153,18 +153,20 @@ Start by building the mod through ModBuddy, as you normally would. Then, enter t If a message like "Scripts are outdated. Would you like to rebuild now?" pops up, click "No". -The commands above create cooked files for your `XComGame` and `Engine` package replacements in +The commands above create cooked files for your `XComGame`, `Engine`, and `Core` package replacements in `%STEAMLIBRARY%\steamapps\common\XCOM 2 War of the Chosen SDK\XComGame\Published\CookedPCConsole`: ``` XComGame.upk XComGame.upk.uncompressed_size Engine.upk Engine.upk.uncompressed_size +Core.upk +Core.upk.uncompressed_size ``` Copy those files into a folder called `CookedPCConsole` inside the mod's output -folder. You will need to delete `Script\XComGame.u` and `Script\Engine.u`, now that we've put the -cooked script file in it's place. +folder. You will need to delete `Script\XComGame.u`, `Script\Engine.u` and `Script\Core.u`, +now that we've put the cooked script file in it's place. Once you've done all that, the mod should now run in vanilla XCOM. Note that all logging statements will be stripped from the Cooked version, so don't expect to