Call of Duty 5: FastFile Study

From COD Modding & Mapping Wiki
Revision as of 14:06, 3 January 2012 by Zeroy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

*** 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....