[Help Needed] WoWDataManager menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Ravenheart's Avatar Nevermore
    Reputation
    355
    Join Date
    Oct 2007
    Posts
    549
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help Needed] WoWDataManager

    Greetings, fellow C#-coding MMOwners. I've downloaded the 'wowdatamanager' dll library ( wowdatamanager - Google Code ), that i want to use mainly for DBC and ADT editing - or atleast try to and experiment with it. But everytime i declare the variable, or try to open the file, i'm getting NullException, or the app cannot find the specified file. Could someone please help me out, how to use that lib properly? Thanks in advance

    Don't forget You're able to design your own universe.


    [Help Needed] WoWDataManager
  2. #2
    Powerking89670's Avatar Member
    Reputation
    3
    Join Date
    Jun 2009
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ravenheart View Post
    Greetings, fellow C#-coding MMOwners. I've downloaded the 'wowdatamanager' dll library ( wowdatamanager - Google Code ), that i want to use mainly for DBC and ADT editing - or atleast try to and experiment with it. But everytime i declare the variable, or try to open the file, i'm getting NullException, or the app cannot find the specified file. Could someone please help me out, how to use that lib properly? Thanks in advance
    I've never used the library so bear with me as I'm flying blind here.

    I'm guessing the null exception happens when you try to do anything with the MpqStream that is returned from MPQManager

    Here is the open file code :

    Code:
            public MpqStream OpenFile(string FileName)
    
            {
    
                foreach (MpqArchive archive in MPQArchives)
    
                {
    
                    if (archive.FileExists(FileName))
    
                    {
    
                        return archive.OpenFile(FileName);
    
                    }
    
                }
    
                return null;
    
            }
    The last line there is likely what is killing you. Add a check to see if it's null before you try to manipulate what you get back from that function.

    Also this may help :
    Code:
    "Data\\patch-2.MPQ"
    "Data\\patch.MPQ"
    
    "Data\\lichking.MPQ"
    "Data\\expansion.MPQ"
    "Data\\common-2.MPQ"
    "Data\\common.MPQ"
    "Data\\enUS\\patch-enUS-2.MPQ"
    "Data\\enUS\\patch-enUS.MPQ"
    "Data\\enUS\\lichking-locale-enUS.MPQ"
    "Data\\enUS\\expansion-locale-enUS.MPQ"
    "Data\\enUS\\locale-enUS.MPQ"
    "Data\\enUS\\base-enUS.MPQ"
    This is a list of archives that the app will actually open. If you dont input these as archive names the fuction will return null. Also the MPQPath must be correct, otherwise it will not find the file and still return null.

    In short you'll have something that looks sorta like this :
    Code:
    DataManager MahBoss = new DataManager("C:\\Program Files\\World of Warcraft\\");
    
    //this is the part i'm not sure of
    //either
    MpqStream TheStream = MahBoss.MPQLoader.OpenFile("C:\\Program Files\\World of Warcraft\\Data\\enUS\\base-enUS.MPQ");
    //or
    MpqStream TheStream = MahBoss.MPQLoader.OpenFile("Data\\enUS\\base-enUS.MPQ");
    
    if(TheStream == null)
    {
    //flip shit
    }
    else
    {
    //manage it somehow
    }
    Last edited by Powerking89670; 06-19-2009 at 01:00 PM.

  3. #3
    Ravenheart's Avatar Nevermore
    Reputation
    355
    Join Date
    Oct 2007
    Posts
    549
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, okay, i'll try, thanks

    Don't forget You're able to design your own universe.


Similar Threads

  1. Help need to have some on edit this for me!!
    By cantkill in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 11-18-2006, 11:41 AM
  2. Official MMOwned Video Archive -- HELP NEEDED!!
    By raunchy in forum Community Chat
    Replies: 9
    Last Post: 10-08-2006, 09:30 AM
  3. patch 1.10 help needed
    By AngelicKnights in forum World of Warcraft General
    Replies: 1
    Last Post: 09-21-2006, 01:37 PM
  4. some virus help needed ><
    By boblikes in forum World of Warcraft General
    Replies: 2
    Last Post: 08-21-2006, 08:18 PM
  5. Backspace scam Help needed
    By TripleShank26 in forum World of Warcraft General
    Replies: 3
    Last Post: 06-12-2006, 05:18 PM
All times are GMT -5. The time now is 02:12 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search