Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6355531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:47:02+00:00 2026-05-24T22:47:02+00:00

I have a minecraft server, and need to backup all the items people have,

  • 0

I have a minecraft server, and need to backup all the items people have, I hope to do this by editing the .dat files in world/players. In this file, there are .dat files and their names are the usernames of each player. when I open it with Notepad++, it shows me gibberish like this:

When Opened in NPP

Regular Notepad gives me this:

‹       ãb``bà
ÎIM-ÉÌM-b`àd`óÍ/ÉÌÏcc```¶ÛqæÀÉEÚ“öob=Ô£i×ý‰Ù5S  #‡ž{Q~i^
#‡GiQ   H?È46ÔÄœ’Œÿÿ™8]€byÅ@Àf¥˜3‹u88=óÊRóJò‹*AœÌùÅ`û˜Û„¥<^$çà ’apˆßñM&ðБŽ%%    ‰ÉÙ[€ÖƒÝœ™—4–Å-³(õÿV·Äœ—Ìâ’ļäTˆÉAù%‰ ï°‚\pð²±’ïÌ9L@§¥&–d€M“d  íl+  

I heard the file is Gzipped. Is this why it is like this? How can I decode this so I can actually read it. I need to decrypt this from a PHP script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:47:04+00:00Added an answer on May 24, 2026 at 10:47 pm

    You need to find out what compression it is really but try and open the file with this (gzip):

    <?php
    $fp = fopen('compress.zlib://yourfile.dat', 'r');
    if( $fp ){
        while(!feof($fp) ){
            echo fread($fp, 2048);
        }
        fclose($fp);
    }
    ?> 
    

    Check out http://www.php.net/manual/en/wrappers.compression.php for more info.

    EDIT:
    You may want to try this:

    <?php
    $dat = file_get_contents('yourfile.dat');
    echo gzdecoder($dat);
    
    function gzdecoder($d){
        $f=ord(substr($d,3,1));
        $h=10;$e=0;
        if($f&4){
            $e=unpack('v',substr($d,10,2));
            $e=$e[1];$h+=2+$e;
        }
        if($f&8){
            $h=strpos($d,chr(0),$h)+1;
        }
        if($f&16){
            $h=strpos($d,chr(0),$h)+1;
        }
        if($f&2){
            $h+=2;
        }
        $u = gzinflate(substr($d,$h));
        if($u===FALSE){
            $u=$d;
        }
        return $u;
    }
    ?>
    

    Also its not encrypted, its compressed. 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small Minecraft server where people can upload their skins. Minecraft skins
If you have never played Minecraft, then this is how the mechanics of the
I got 12 .php files with this code: if($_GET['u']){ $srcp = imagecreatefrompng(http://www.minecraft.net/skin/.$_GET['u']..png); $destp =
I have a domain which is being used as my Minecraft Server. I'm using
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you managed to get Aptana Studio debugging to work? I tried following this,
Background: I'm running a Minecraft server for friends on a VPS, and I'm attempting
I'm have an issue with running the built in Python server that comes with
I am designing a Minecraft Classic server written in Python, but I don't know
I have a big array of voxels, a la Minecraft. The player/enemies are in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.