Skip to content

Commit

Permalink
Add info about fileIds.txt, update version num
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Feb 16, 2017
1 parent 21aee7b commit 7ee4c50
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions DOOMExtract/DOOMResourceIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ public void Rebuild(string destResourceFile, string replaceFromFolder = "", bool
}

var file = Entries.Find(s => s.GetFullName() == fileName);
if (file == null)
file = Entries.Find(s => s.GetFullName().Replace("\\", "/") == fileName);

if (file != null)
file.ID = id;
else
Expand Down
15 changes: 11 additions & 4 deletions DOOMExtract/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,35 @@ static void PrintUsage()
Console.WriteLine(" If destFolder isn't specified a folder will be created next to the index/pindex file.");
Console.WriteLine(" Files with fileType != \"file\" will have the fileType appended to the filename.");
Console.WriteLine(" eg. allowoverlays.decl;renderParm for fileType \"renderParm\"");
Console.WriteLine(" A list of each files ID will be written to [destFolder]\\fileIds.txt");
Console.WriteLine();
Console.WriteLine("Repacking: DOOMExtract.exe [pathToIndexFile] --repack [repackFolder]");
Console.WriteLine(" Will repack the resources with the files in the repack folder.");
Console.WriteLine(" Files that don't already exist in the resources will be added.");
Console.WriteLine(" To set a new files fileType append the fileType to its filename.");
Console.WriteLine(" eg. allowoverlays.decl;renderParm for fileType \"renderParm\"");
Console.WriteLine(" Note that you should only rebuild the latest patch index file, as patches rely on the data in earlier files!");
Console.WriteLine(" To set/change a files ID, add a line for it in [repackFolder]\\filesIds.txt");
Console.WriteLine(" of the format [full file path]=[file id]");
Console.WriteLine(" eg. \"example\\test.txt=1337\"");
Console.WriteLine(" (Note that you should only rebuild the latest patch index file,");
Console.WriteLine(" as patches rely on the data in earlier files!)");
Console.WriteLine();
Console.WriteLine("Patch creation: DOOMExtract.exe [pathToLatestPatchIndex] --createPatch [patchContentsFolder]");
Console.WriteLine(" Allows you to create your own patch files.");
Console.WriteLine(" Works like repacking above, but the resulting patch files will only contain the files you've added/changed.");
Console.WriteLine(" Works like repacking above, but the resulting patch files will");
Console.WriteLine(" only contain the files you've added/changed.");
Console.WriteLine(" Make sure to point it to the highest-numbered .pindex file!");
Console.WriteLine(" Once completed a new .patch/.pindex file pair should be created.");
Console.WriteLine();
Console.WriteLine("Deleting files: DOOMExtract.exe [pathToIndexFile] --delete [file1] <file2> <file3> ...");
Console.WriteLine(" Will delete files from the resources package. Full filepaths should be specified.");
Console.WriteLine(" If a file isn't found in the package a warning will be given.");
Console.WriteLine(" This should only be used on the latest patch file, as modifying earlier patch files may break later ones.");
Console.WriteLine(" This should only be used on the latest patch file, as modifying");
Console.WriteLine(" earlier patch files may break later ones.");
}
static void Main(string[] args)
{
Console.WriteLine("DOOMExtract 1.6.1 by infogram - https://github.com/emoose/DOOMExtract");
Console.WriteLine("DOOMExtract 1.7 by infogram - https://github.com/emoose/DOOMExtract");
Console.WriteLine();
if (args.Length <= 0)
{
Expand Down
2 changes: 1 addition & 1 deletion DOOMModLoader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static void Main(string[] args)
string modDir = "mods";
string exeName = "DOOMx64.exe";

Console.WriteLine("DOOMModLoader 0.1 by infogram - https://github.com/emoose/DOOMExtract");
Console.WriteLine("DOOMModLoader 0.2 by infogram - https://github.com/emoose/DOOMExtract");
Console.WriteLine();

for (int i = 0; i < args.Length; i++)
Expand Down

0 comments on commit 7ee4c50

Please sign in to comment.