Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 57

Thread: Luigi's mansion

  1. #41
    EmuTalk Member Lunaboy's Avatar
    Join Date
    Nov 2005
    Posts
    15
    The archive-creation process of my packer can be divided into 6 steps:

    1. Scan directory recursively to get info
    2. Create headers and save them to archive
    3. Allocate memory for nametable, DirInfo-array and FileInfo-array
    4. Scan directory again to fill Info-arrays and nametable, and copy filedata to archive
    5. Write Info-arrays (DirInfo and FileInfo) to archive
    6. Free memory and quit

    The packer scans the directory twice, first time to gather information and a second time to add the files to the archive and to make a map of the filesystem. To get unlimited directory-depth it calls the scan-function recursively. First it changes to a specified directory, next it scans through all items inside the directory and before returning, it changes back to the parent directory. When the scan-function hits a directory, it simply calls itself again. Each time the function is called, it will jump one directory deeper and each time it returns, it jumps out of the directory to its parent.

    An example of how it works is shown below.
    Code:
    void DoScan(char *DirName){
      SetCurrentDirectory(DirName);
      for(Nr = 0 to NrItemsInDir){
        if(Item[Nr].IsDir){
          DoScan(Item[Nr].Name);
        }else{
          GetInfo(Item[Nr]);
        }
      }
      SetCurrentDirectory("..");
    }
    
    --------------------------------------
         Example directory-structure
    --------------------------------------
    
    TestDir
     |__Arrow.bti
     |__Bow.bti
     |__Ilia
     |   |__Yelia.bdl
     |   |__Anims
     |   |   |__Walk.bck
     |   |   |__Stand.bck
     |   |__Yelia.bti
     |__Medly
         |__Md.bdl
         |__Md.bck
    
    --------------------------------------
               Function calling           
    --------------------------------------
    
    DoScan("TestDir"){
      SetCurrentDirectory("TestDir");
      GetInfo("TestDir\Arrow.bti");
      GetInfo("TestDir\Bow.bti");
      DoScan("TestDir\Ilia"){
        SetCurrentDirectory("Ilia");
        GetInfo("TestDir\Ilia\Yelia.bdl");
        DoScan("TestDir\Ilia\Anims"){
          SetCurrentDirectory("Anims");
          GetInfo("TestDir\Ilia\Anims\Walk.bck");
          GetInfo("TestDir\Ilia\Anims\Stand.bck");
          SetCurrentDirectory("..");
        }
        GetInfo("TestDir\Ilia\Yelia.bti")
        SetCurrentDirectory("..");
      }
      DoScan("TestDir\Medly"){
        SetCurrentDirectory("Medly");
        GetInfo("TestDir\Medly\Md.bdl");
        GetInfo("TestDir\Medly\Md.bck");
        SetCurrentDirectory("..");
      }
      SetCurrentDirectory("..");
    }
    I’ve posted the main.cpp file below.
    This file alone will not compile, because it needs my cFile class (I don’t want to release the class yet).
    You can use the code as a reference to see how the packer is working.

    Because I get an 'Unable to move/copy file' error while uploading the attachment, I'm using RapidShare:
    http://rapidshare.de/files/48468383/...k_Src.zip.html



    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #42
    EmuTalk Member
    Join Date
    Oct 2005
    Posts
    27
    someone figured out how to open mdl files?

  3. #43
    EmuTalk Member
    Join Date
    Aug 2010
    Posts
    1
    sorry for bumping this old thread but does someone still have the arcpacker because all the rapidshare links are dead?

  4. #44
    EmuTalk Member
    Join Date
    Jun 2010
    Posts
    6
    I am EXTREMELY REALLY REALLY SORRY for bumping this thread, but this is very urgant... I need that new compiled rarcdump for the .szp files of Luigi's Mansion. I NEED it. Please, can someone, who still has it PLEASE put it up for me? Or if not, compile the source code into an .exe? I beg... Please, I REALLY need it. Could someone PLEASE reply?

  5. #45
    EmuTalk Member
    Join Date
    Jun 2010
    Posts
    6
    Please? Could someone compile this into an .exe for me? With a download link? Just anyone, whoever knows how to and can. I don't care who does it for me, but I NEED IT! THIS IS MY ONLY HOPE!!! PLEASE? JUST ANYONE?!?!

    http://amnoid.de/tmp/rarcdump.cpp

  6. #46
    EmuTalk Member ExtremeDude2's Avatar
    Join Date
    Apr 2011
    Posts
    212
    How much is it worth to you jk

  7. #47
    EmuTalk Member
    Join Date
    Jun 2010
    Posts
    6
    Quote Originally Posted by ExtremeDude2 View Post
    How much is it worth to you jk
    VERY much... Can you?

  8. #48
    EmuTalk Member ExtremeDude2's Avatar
    Join Date
    Apr 2011
    Posts
    212
    Quote Originally Posted by SebCroc View Post
    VERY much... Can you?
    No I was just kidding

  9. #49
    EmuTalk Member
    Join Date
    Jun 2010
    Posts
    6
    Ok, then if no one wants to, then can someone tell me how to do it? I used that Microsoft Visual c++ 2010, and when I try to compile it into an .exe, it says it needs the 'openfile.h' and shows an error. I looked at the code, and it says that at some point it needs it. What do I do then? where can I get this 'openfile.h'? Do I really need it? Where can I get it? PLEASE HELP ME!!!

  10. #50
    I like beer Anton's Avatar
    Join Date
    Apr 2002
    Location
    Kiev, Ukraine
    Posts
    196
    SebCroc, here's the tools + sources:
    http://www.megaupload.com/?d=RV5WPESD

    one is by thakis, second (with "new" in file name) is compiled by jorge_bastos
    enjoy

    also you can check my site (it's in russian) for other game cube/Wii tools that I've found:
    http://www.shedevr.org.ru/zelda64rus...#romhacking_gc
    Last edited by Anton; May 15th, 2011 at 09:52.

Page 5 of 6 FirstFirst ... 3456 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •