This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TaylorMouse

Pages: [1]
1
Random / Re: new file system CASC
« on: July 29, 2014, 11:18:57 am »
Yeah, the casc viewer only works with one version of WoD not for HotS :/

T.

2
Random / Re: new file system CASC
« on: July 22, 2014, 03:50:48 pm »
It only worked once for me, but with the new beta version, it is not working anymore for me :/


I know it is not MD5, but I tried to use the hash algorithm from CASC code but I got noting...

T.

3
Random / Re: new file system CASC
« on: July 14, 2014, 08:12:55 pm »
How did he make that listfile anyway ??

I already tried several stuff to do it, no success: example:

from the listfile I took this line:

CharacterBloodElfFemaleBloodElfFemaleFaceLower18_08.blp

calculated the Hash for it, which gives me this: 493C128A4B90E96DE0A5B0229ECCE19A

but there is no file with that hash value ... also tried without the extension... still no luck

hlp plz...

T.

4
Random / Re: new file system CASC
« on: July 01, 2014, 09:51:47 pm »
Btw is there a listfile for Heroes Of the storm ?

T.

5
Random / Re: new file system CASC
« on: June 18, 2014, 11:15:40 pm »
Alright !!

I got this workin !!

Thnx

T.

6
Random / Re: new file system CASC
« on: June 17, 2014, 09:23:36 am »
Hey, I have the dbc files, and a dbc reader, but nothing in compare to the hash codes of the file for renaming them :/

T.

7
Random / Re: new file system CASC
« on: June 14, 2014, 11:16:55 pm »
Anyone found out how to map the hash file names to a decent file name ?

I only succeeded in doing this for the m2 files, since the name of the file is actually in the file itself...

but for all the rest... I got nothing :/

Any help or idea is welcome

T.

8
Random / Re: new file system CASC
« on: June 04, 2014, 08:58:56 pm »
Hey, I used the BLTE code to extract the M2 files and it worked

I did add some source code that it automatically extracted all of the data.xxx file

The result was that all of the files had these GUIDs as filenames

Here is a piece of code that reads in the M2 file and extracts the name of the model and replaces the GUID of the name with its correct name.

For all of the m2 files ( about 45000 files) the process takes about 3 minutes ( give or take)

Code: [Select]
using System;
using System.IO;

namespace RenameM2Files
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] files = Directory.GetFiles(@"D:Warlords Of Draenor\Extracted", "*.m2");

            int currentFile = 1;
            string nbrFiles =  files.Length.ToString();
            foreach (string file in files)
            {
                string newName = "";
                using (var br = new BinaryReader(File.OpenRead(file)))
                {
                    br.ReadBytes(8);
                    var nameLen = br.ReadUInt32();
                    var nameOff = br.ReadUInt32();

                    br.BaseStream.Seek(nameOff, SeekOrigin.Begin);

                    var name = br.ReadString((int)nameLen);

                    newName = name.Substring(0, name.Length - 1);
                    br.Close();
                }
               
                var info = new FileInfo(file);
                newName = info.Directory.FullName + "\" + newName + ".m2";
               
                if(!File.Exists(newName))
                    info.MoveTo(newName);
               
                if (File.Exists(file))
                    File.Delete(file);

                Console.WriteLine(currentFile.ToString() + " / " + nbrFiles);

                currentFile++;
            }
            Console.WriteLine("DONE");
            Console.ReadKey();

        }

       
    }
}

here is the extension method for the binaryReader:

Code: [Select]
using System;
using System.IO;


namespace System.IO
{
    public static class Extesions
    {
        public static string ReadString(this BinaryReader br, int nbrChars)
        {
            string ret = "";
            for (int i = 0; i < nbrChars; i++)
            {
                ret = string.Concat(ret, br.ReadChar());
                if (ret == "")
                    return null;
            }
            return ret;
        }
    }
}

Hope this can help someone :)

T.

Pages: [1]