Thread: 508 Object Dumps

Results 1 to 10 of 10
  1. #1 508 Object Dumps 
    Registered Member The Killer18's Avatar
    Join Date
    Oct 2008
    Posts
    155
    Thanks given
    3
    Thanks received
    8
    Rep Power
    68
    After messing up like 10 times by carelessly forgetting things, I finally got the dumper to work right. I compressed all the xml files into dat files using Graham's method. The total size of all the files are 21.8mbs. These files contain 918 regions of valid mapdata that I compiled from different revisions using dragonkk's [Only registered and activated users can see links. ].

    EDIT: If you want the xml dump you can download [Only registered and activated users can see links. ] or [Only registered and activated users can see links. ]. I compressed the rar with the best compression. The size of the rar is about 5.6mbs, unpacked its about 497mbs.

    XML Format:
    Code:
    <region>
      <id>6234</id>
      <objects>
        <entry>
          <worldObject>
            <id>28127</id>
            <type>22</type>
            <face>1</face>
            <location>
              <x>1536</x>
              <y>5760</y>
              <z>0</z>
            </location>
          </worldObject>
          <int>28127</int>
        </entry>
      </objects>
    </region>
    Compress Code:
    Code:
           public static void compress(int region) {
                try {
                    int i = 0;
                    int size = regions.get(region).getObjects().size();
                    RandomAccessFile raf = new RandomAccessFile(new File("./dump/compressed/"+ region + ".dat"), "rw");
                    raf.writeInt(region);
                    raf.writeInt(size);
                    for(WorldObject object : regions.get(region).getObjects().keySet()) {
                        raf.writeShort(object.getId());
                        raf.writeShort(object.getType());
                        raf.writeShort(object.getFace());
                        raf.writeShort(object.getLocation().getX());
                        raf.writeShort(object.getLocation().getY());
                        raf.writeShort(object.getLocation().getZ());
                        i++;
                    }
                    raf.close();
                    System.out.println("Saved " + i);
                    System.out.println("Done.");
                } catch (Exception e) {
                    e.printStackTrace();
                }            
           }
    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  2. #2  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    2,549
    Thanks given
    192
    Thanks received
    761
    Discord
    View profile
    Rep Power
    1332
    thanks man, your like a goddess.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  3. #3  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    raf.writeShort(object.getType());
    raf.writeShort(object.getFace());

    Should be

    raf.writeByte((object.getType() << 2) | (object.getFace() & 3));

    Btw, why save this on a xml file, if you have an average or below computer, fucking XStream will rape your cpu and the memory will throught the roof lol.

    Anyways good job tho (altho I won't use since I have my own dump )

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  4. #4  
    Registered Member The Killer18's Avatar
    Join Date
    Oct 2008
    Posts
    155
    Thanks given
    3
    Thanks received
    8
    Rep Power
    68
    thanks lol

    Reply With Quote  
     

  5. #5  
    Ed
    Ed is offline
    AKA Edvinas
    Ed's Avatar
    Join Date
    Jun 2009
    Age
    28
    Posts
    4,504
    Thanks given
    523
    Thanks received
    512
    Rep Power
    2659
    Awesome, could you please dump this in text files as well in this format?:

    objectId type face height objectX objectY objectZ
    obj = 559 22 0 0 2061 3906 0
    obj = 559 22 1 0 2062 3917 0
    obj = 559 22 1 0 2063 3925 0
    obj = 559 22 3 0 2064 3910 0
    obj = 559 22 2 0 2072 3935 0
    obj = 559 22 1 0 2076 3937 0
    obj = 559 22 2 0 2078 3936 0
    Those spaces are actually tabs, not spaces. Tabs as in you press TAB key in a text editor and it does this bigger space.
    Or if you're not bothered running around the regions to dump again, you could borrow me the dumper. I'd love to dump some more maps to test my 3d map editor

    Thanks
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jan 2009
    Age
    28
    Posts
    2,662
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    wtf is this shit?
    Code:
                        raf.writeShort(object.getId());
                        raf.writeShort(object.getType());
                        raf.writeShort(object.getFace());
                        raf.writeShort(object.getLocation().getX());
                        raf.writeShort(object.getLocation().getY());
                        raf.writeShort(object.getLocation().getZ());
    your client will not be able to normally read that.

    raf.writeByte((object.getType() << 2) | (object.getFace() & 3));
    That's wrong.

    its

    Code:
    raf.writeByte((object.getType << 2) | object.getFace());
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Sep 2009
    Posts
    402
    Thanks given
    73
    Thanks received
    425
    Rep Power
    0
    All the coordinates in the dump are wrong =/
    They're all the same depending what mapregion.
    Reply With Quote  
     

  8. #8  
    Ed
    Ed is offline
    AKA Edvinas
    Ed's Avatar
    Join Date
    Jun 2009
    Age
    28
    Posts
    4,504
    Thanks given
    523
    Thanks received
    512
    Rep Power
    2659
    Quote Originally Posted by misanthropy View Post
    All the coordinates in the dump are wrong =/
    They're all the same depending what mapregion.
    Yup, he's right..
    Reply With Quote  
     

  9. #9  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    Quote Originally Posted by digistr View Post
    wtf is this shit?
    Code:
                        raf.writeShort(object.getId());
                        raf.writeShort(object.getType());
                        raf.writeShort(object.getFace());
                        raf.writeShort(object.getLocation().getX());
                        raf.writeShort(object.getLocation().getY());
                        raf.writeShort(object.getLocation().getZ());
    your client will not be able to normally read that.



    That's wrong.

    its

    Code:
    raf.writeByte((object.getType << 2) | object.getFace());
    Look at the post above that I made lol ..

    Edit:

    Wait, nvm

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Feb 2010
    Posts
    715
    Thanks given
    133
    Thanks received
    364
    Rep Power
    550
    Quote Originally Posted by digistr View Post
    wtf is this shit?
    Code:
                        raf.writeShort(object.getId());
                        raf.writeShort(object.getType());
                        raf.writeShort(object.getFace());
                        raf.writeShort(object.getLocation().getX());
                        raf.writeShort(object.getLocation().getY());
                        raf.writeShort(object.getLocation().getZ());
    your client will not be able to normally read that.



    That's wrong.

    its

    Code:
    raf.writeByte((object.getType << 2) | object.getFace());
    Nothing wrong with & 3

    That will even help some problems when you use face 4 or negative faces for example face 4 will be 0 after & 3, which is the same, whereas yours will overwrite some bits of the type
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 582 Object Info Dumps
    By Richard1992 in forum Configuration
    Replies: 20
    Last Post: 09-26-2010, 11:20 PM
  2. 508 and 317 Object Dumps
    By Kenshin1388 in forum Requests
    Replies: 6
    Last Post: 05-30-2010, 01:05 PM
  3. 508 Object Dumps.
    By Vastiko in forum Snippets
    Replies: 23
    Last Post: 06-09-2009, 06:34 PM
  4. Item + [377]Object Model Dumps!
    By Luke in forum Configuration
    Replies: 2
    Last Post: 08-13-2008, 01:32 PM
  5. [req]!! npc and object dumps [req]!!!
    By Mikey` in forum Tutorials
    Replies: 0
    Last Post: 02-08-2008, 05:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •