Call of Duty 5: FastFile Study: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(Created page with "Image:Under Construction Small.png‎ '''*** Article and investigation in early progress ***'''<br> {{Note|Article looking at how fast files are made and how the process is c...")
 
mNo edit summary
Line 12: Line 12:
}
}
</syntaxhighlight>
</syntaxhighlight>
 
<br><br><br>
 
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
private void CompileLevelMoveFastFilesDelegate(Process lastProcess)
private void CompileLevelMoveFastFilesDelegate(Process lastProcess)
Line 28: Line 27:
}
}
</syntaxhighlight>
</syntaxhighlight>
 
<br><br><br>
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
public static void CreateZoneSourceFiles(string mapName)
public static void CreateZoneSourceFiles(string mapName)
Line 36: Line 35:
WriteLine("col_map_mp,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("sound,common," + writer.WriteLine("sound,generic," + writer.WriteLine("sound,voiceovers," + writer.WriteLine("sound,multiplayer," + string GetRawDirectory();
WriteLine("col_map_mp,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("sound,common," + writer.WriteLine("sound,generic," + writer.WriteLine("sound,voiceovers," + writer.WriteLine("sound,multiplayer," + string GetRawDirectory();
</syntaxhighlight>
</syntaxhighlight>
 
<br><br><br>
What I believe this means, with the little coding I know, I think in the fast file, they combine the d3dbsp with the "launcherCS.launcher" file, and they also combine the zone source directory with the d3dbsp, what i'm I missing?
What I believe this means, with the little coding I know, I think in the fast file, they combine the d3dbsp with the "launcherCS.launcher" file, and they also combine the zone source directory with the d3dbsp, what i'm I missing?
 
<br>
The more I look into it, the more I realize the launcher.cs.launcher file is mostly just calling every string
The more I look into it, the more I realize the launcher.cs.launcher file is mostly just calling every string
 
<br><br><br>
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
public static string GetRawMapsDirectory();
public static string GetRawMapsDirectory();

Revision as of 14:07, 3 January 2012

*** Article and investigation in early progress ***

Article looking at how fast files are made and how the process is coded, hope this is useful to people who want to know a little bit more on how the fast file process is handled.
private void ModBuildFastFileDelegate(Process lastProcess)
{
if (this.LauncherModBuildFastFilesCheckBox.Checked)
{
Launcher.CopyFileSmart(Path.Combine(Launcher.GetModDirectory(this.modName), "mod.csv"), Path.Combine(Launcher.GetZoneSourceDirectory(), "mod.csv"));
}
this.LaunchProcessHelper(this.LauncherModBuildFastFilesCheckBox.Checked, new ProcessFinishedDelegate(this.ModBuildMoveModFastFileDelegate), Launcher.GetLanguage() + " -moddir " + this.modName + " mod");
}




private void CompileLevelMoveFastFilesDelegate(Process lastProcess)
{
string zoneDirectory = Launcher.GetZoneDirectory();
string str2 = Launcher.mapSettings.GetBoolean("compile_modenabled") ? Launcher.GetModDirectory(Launcher.mapSettings.GetString("compile_modname")) : Path.Combine(Launcher.GetUsermapsDirectory(), this.mapName);
string str3 = this.mapName + ".ff";
string str4 = this.mapName + "_load.ff";
Launcher.MoveFile(Path.Combine(str3), Path.Combine(str3));
Launcher.MoveFile(Path.Combine(str3), Path.Combine(str3));
Launcher.MoveFile(Path.Combine(str4), Path.Combine(str4));
Launcher.Publish();
this.CompileLevelRunGameDelegate(lastProcess);
}




public static void CreateZoneSourceFiles(string mapName)
{
using (StreamWriter writer = new StreamWriter(GetZoneSourceFile(IsMP(writer.WriteLine("ignore,code_post_gfx_mp");
WriteLine("ignore,common_mp");
WriteLine("col_map_mp,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("rawfile,maps/mp/" + writer.WriteLine("sound,common," + writer.WriteLine("sound,generic," + writer.WriteLine("sound,voiceovers," + writer.WriteLine("sound,multiplayer," + string GetRawDirectory();




What I believe this means, with the little coding I know, I think in the fast file, they combine the d3dbsp with the "launcherCS.launcher" file, and they also combine the zone source directory with the d3dbsp, what i'm I missing?
The more I look into it, the more I realize the launcher.cs.launcher file is mostly just calling every string


public static string GetRawMapsDirectory();
public static string GetRootDirectory();
etc....