+ Reply to Thread
Results 1 to 2 of 2
  1. #1

    Default C&C3 Mod SDK - Manifest Fix

    Problem:
    Most of you know that C&C3 crashes when you run a mod and switch the graphic options from low to high (or from high to low). This is because of wrong paths to the referenced files (global.xml and static.xml) in the manifest files of your mod.

    Solution:
    You move all the content from your "CnC3Xml" folder to your Mod SDK installation directory and the global.manifest and static.manifest to the "BuiltMods\CnC3Xml" folder before you compile your mod. But this makes your Mod SDK installation directory very confusing.

    Alternative: C&C3 Mod SDK - Manifest Fix
    You can download a small fix to run from your BuildMod.bat directly before launching the MakeBig.exe. This must be done with every manifest file that has a reference to the global.xml or static.xml i.e. mod.manifest and mod_L.manifest.
    Already compiled mods can be fixed, too. Just extract the appropriate manifest files from the big files of the mod, repair them with the tool and put them back to the big file.

    Extended BuildMod.bat:
    Code:
    @echo off
    @echo Mod Name: %1
    @echo Building Mod Data...
    tools\binaryAssetBuilder.exe "%cd%\Mods\%1\data\mod.xml" /od:"%cd%\BuiltMods" /iod:"%cd%\BuiltMods" /ls:true /gui:false /UsePrecompiled:true /vf:true
    @echo Building Low LOD...
    tools\binaryAssetBuilder.exe "%cd%\Mods\%1\data\mod.xml" /od:"%cd%\BuiltMods" /iod:"%cd%\BuiltMods" /ls:true /gui:false /UsePrecompiled:true /vf:true /bcn:LowLOD /bps:"%cd%\BuiltMods\mods\%1\data\mod.manifest"
    @echo Copying str file if it exists...
    IF EXIST "%cd%\Mods\%1\data\mod.str" copy "%cd%\Mods\%1\data\mod.str" "%cd%\BuiltMods\mods\%1\data"
    @echo Copying Shaders...
    IF NOT EXIST "%cd%\BuiltMods\mods\%1\Shaders" md "%cd%\BuiltMods\mods\%1\Shaders"
    copy "%cd%\Shaders\*.fx" "%cd%\BuiltMods\mods\%1\Shaders"
    del "%cd%\Builtmods\mods\%1\data\mod_l.version"
    
    @echo Fixing manifest...
    tools\FixManifest.exe "%cd%\BuiltMods\mods\%1\data\mod.manifest" "%cd%\BuiltMods\mods\%1\data\mod_L.manifest"
    
    @echo Creating Mod Big File...
    tools\MakeBig.exe -f "%cd%\BuiltMods\mods\%1" -x:*.asset -o:"%cd%\BuiltMods\mods\%1.big"
    @echo Copying built mod...
    IF NOT EXIST "D:\Bibber\Eigene Dateien\Command & Conquer 3 Tiberium Wars\mods" md "D:\Bibber\Eigene Dateien\Command & Conquer 3 Tiberium Wars\mods
    IF NOT EXIST "D:\Bibber\Eigene Dateien\Command & Conquer 3 Tiberium Wars\mods\%1" md "D:\Bibber\Eigene Dateien\Command & Conquer 3 Tiberium Wars\mods\%1
    copy "builtmods\mods\%1.big" "D:\Bibber\Eigene Dateien\Command & Conquer 3 Tiberium Wars\mods\%1"

  2. #2

    Default

    Alternative 2:
    For those who don't want to change something on the bat files, I have some dummy files which just have to be extracted to your Mod SDK installation directory: C&C3 Mod SDK - Mod Crash Fix

Similar Threads

  1. bin, relo, manifest
    By n5p29 in forum Tiberium Wars Editing
    Replies: 10
    Last Post: 08-26-2008, 10:34 AM
  2. mod.manifest
    By SwatShark in forum Tiberium Wars Editing
    Replies: 0
    Last Post: 09-04-2007, 04:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts