Jump to content


Photo

C&C3 Mod SDK - Manifest Fix / Mod Crash Fix


  • Please log in to reply
No replies to this topic

#1 Bibber

Bibber
  • Members
  • 69 posts
  • Location:Germany

Posted 18 September 2008 - 11:10 PM

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:
@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"

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

Edited by Bibber, 18 September 2008 - 11:11 PM.

sig_bibbersurft.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users