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!

Menu

Author Topic: new file system CASC  (Read 35812 times)

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #135 on: April 12, 2014, 06:37:58 pm »
[attachment=0:3i39g7qr]WoWScrnShot_041214_161552.jpg[/attachment:3i39g7qr]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

AgeofCraft

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 69
    • View Profile
Re: new file system CASC
« Reply #136 on: April 12, 2014, 07:04:12 pm »
Quote from: "MR. Farrare"
Ogre problem
[attachment=0:j3rst6jx]WoWScrnShot_041114_131019.jpg[/attachment:j3rst6jx]

You need to export the model from MV to your Model Editor and then you need to delete or repositioning the geosets, after this you need to get the bones with animations from the new model to your 3.3.5 model.
I think thats the only way, but only from my sight ^^
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #137 on: April 12, 2014, 07:37:12 pm »
Quote from: "AgeofCraft"
Quote from: "MR. Farrare"
Ogre problem
[attachment=0:3flytks6]WoWScrnShot_041114_131019.jpg[/attachment:3flytks6]

You need to export the model from MV to your Model Editor and then you need to delete or repositioning the geosets, after this you need to get the bones with animations from the new model to your 3.3.5 model.
I think thats the only way, but only from my sight ^^

if you see the pic above you I fix it alogn time ago but ty for trying to help
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #138 on: April 21, 2014, 04:06:12 pm »
Iron horde cannon with anim
[attachment=0:3cdz7tq6]WoWScrnShot_042114_170852.jpg[/attachment:3cdz7tq6]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: new file system CASC
« Reply #139 on: April 21, 2014, 04:28:04 pm »
Quote from: "MR. Farrare"
Iron horde cannon with anim
Yes, we know that you can copy files. Sorry to disappoint you, but there is nothing special about it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #140 on: April 22, 2014, 03:55:25 pm »
Quote from: "schlumpf"
Quote from: "MR. Farrare"
Iron horde cannon with anim
Yes, we know that you can copy files. Sorry to disappoint you, but there is nothing special about it.

don't care I find it  special   :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akspa420

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 65
    • View Profile
Re: new file system CASC
« Reply #141 on: May 04, 2014, 06:02:48 am »
I find it odd that no one has mentioned that the extractor is able to extract a 'signature' file from the CASC files, of which lists a bunch more resources that aren't listed in the extractor's listfile. Maybe I'm wrong. The signature file appears to use a ";" to delimit the text contained in it, making it easy to pull out the embedded listfile.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: new file system CASC
« Reply #142 on: May 04, 2014, 12:45:04 pm »
Quote from: "akspa420"
I find it odd that no one has mentioned that the extractor is able to extract a 'signature' file from the CASC files, of which lists a bunch more resources that aren't listed in the extractor's listfile. Maybe I'm wrong. The signature file appears to use a ";" to delimit the text contained in it, making it easy to pull out the embedded listfile.

The signature file does not contain a full file list. But yes, using that, the listfile from MoP, and extracting paths from the DBC's / file contents, you can get a listfile that is over 99% complete.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

TaylorMouse

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 8
    • View Profile
Re: new file system CASC
« Reply #143 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #144 on: June 11, 2014, 09:50:22 pm »
any body know  CASC editor or how to extract files from the newest update from WOD because the new update is on and I cant extract anything from Cromon extractor the tool is not updated for the current build
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: new file system CASC
« Reply #145 on: June 12, 2014, 03:08:22 am »
it worked by open the previus update 332 and then you will get a fatal error but still don't do nothing open the extractor and it will work
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

TaylorMouse

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 8
    • View Profile
Re: new file system CASC
« Reply #146 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: new file system CASC
« Reply #147 on: June 15, 2014, 09:00:47 pm »
Quote from: "TaylorMouse"
Anyone found out how to map the hash file names to a decent file name ?

There is none, it is a one-way function. The only possibility to reverse it is creating a lookup table. What helps most -- and how the most filenames were discovered -- is looking at patterns used in the client or references from DBCs etc. In the end, it is purely guessing, or brute-forcing.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

TheBuG

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 469
    • View Profile
Re: new file system CASC
« Reply #148 on: June 15, 2014, 09:38:55 pm »
It's rather easy getting the World M2s (Draenor) and WMOs (Again, Draenor) from just the Draenor ADTs. Iirc raid WMOs can be gathered from DBCs.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: new file system CASC
« Reply #149 on: June 15, 2014, 09:51:40 pm »
In the end, just things like
Code: [Select]
find . -type f -print0 | xargs -0 strings | grep -i "blp|adt|wmo|m2|mdx|mdl|dbc|wdt|wdl|pm4|phys|skin|anim" | sed -e s,mdl,m2,g -e s,mdx,m2,g | xargs ./extract
for i in $(seq -f "%02g" 0 3); do find . -type f -iname "*m2" | sed -e s,.m2,$i.skin, | xargs extract; done
for i in $(seq -f "%02g" 0 500); do for j in $(seq -f "%02g" 0 5); do find . -type f -iname "*m2" | sed -e s,.m2,$i-$j.anim, | xargs extract; done; done
« Last Edit: January 01, 1970, 01:00:00 am by Admin »