Thread: Cant read .dat files

Results 1 to 9 of 9
  1. #1 Cant read .dat files 
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    I can't read .dat files. I tried opening them up with notepad++ and wordpad. I have a Japanese PC if that makes a difference(the fonts are little bit different).

    Any help/tips would be appreciated.
    Reply With Quote  
     

  2. #2  
    Member Cant read .dat files Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    whats supposed to be in them? if they were supposed to be editable like a cfg then they wouldnt be .dat

    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Luke132 View Post
    whats supposed to be in them? if they were supposed to be editable like a cfg then they wouldnt be .dat
    Just my character info. I want to edit my player to make him admin.
    Reply With Quote  
     

  4. #4  
    Member Cant read .dat files Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Quote Originally Posted by Aleka View Post
    Just my character info. I want to edit my player to make him admin.
    in your server change it to .txt where it says .dat when it saves, if that doesnt work just rip text loading and saving from another server, sorry if im being a bit vague ive not coded in years

    Attached imageAttached image
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Luke132 View Post
    in your server change it to .txt where it says .dat when it saves, if that doesnt work just rip text loading and saving from another server, sorry if im being a bit vague ive not coded in years
    Yeah I tried saving it to .txt and it still comes out bad. Could be something to do with my unicode settings on my PC. I'll try it on my other computer and see if it works.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2010
    Posts
    269
    Thanks given
    44
    Thanks received
    13
    Rep Power
    23
    Quote Originally Posted by Aleka View Post
    Yeah I tried saving it to .txt and it still comes out bad. Could be something to do with my unicode settings on my PC. I'll try it on my other computer and see if it works.
    lol no that's the way its written
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Fridder View Post
    lol no that's the way its written
    Then how do I edit my characters?
    Reply With Quote  
     

  8. #8  
    Member Cant read .dat files Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Quote Originally Posted by Aleka View Post
    Then how do I edit my characters?
    when java saves a dat file it doesnt write it as "text" that we can read, it saves it as bytes (the strings are converted to bytes also) hence the unreadability, you have to change your saving to write to text instead of data using BufferedWriter, 90% of servers use text saving so just use another server as a reference. its easily c+p'able the only time consuming thing is adding all your servers variables to it

    edit : a quick google search of "write java text file" and "write java data file" will show you the differences im talking about - yes i just searched it myself

    Attached imageAttached image
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Aug 2014
    Posts
    82
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Luke132 View Post
    when java saves a dat file it doesnt write it as "text" that we can read, it saves it as bytes (the strings are converted to bytes also) hence the unreadability, you have to change your saving to write to text instead of data using BufferedWriter, 90% of servers use text saving so just use another server as a reference. its easily c+p'able the only time consuming thing is adding all your servers variables to it

    edit : a quick google search of "write java text file" and "write java data file" will show you the differences im talking about - yes i just searched it myself
    Thanks alternatively though I just edited my player.java to make anyone with my name Admin.
    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. No raw folder so i cant add .dat files?
    By Relentless in forum Help
    Replies: 6
    Last Post: 07-24-2013, 04:24 PM
  2. I cant use .dat files?
    By Deception-pkz in forum Help
    Replies: 0
    Last Post: 11-24-2012, 01:52 PM
  3. .jar read .dat file
    By Vazz in forum Application Development
    Replies: 0
    Last Post: 05-01-2012, 08:22 PM
  4. how to change .dat files so i can read them
    By garrydowling2011 in forum Help
    Replies: 7
    Last Post: 12-05-2011, 08:59 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
  •