Thread: [[ - Player Save Going To Desktop - ]]

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [[ - Player Save Going To Desktop - ]] 
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    Thanks to, "Thee Omar" I was able to fix my issue. [PLEASE DELETE THIS POST]
    Reply With Quote  
     

  2. #2  
    Typical Swede


    Join Date
    Jul 2008
    Posts
    1,162
    Thanks given
    204
    Thanks received
    154
    Rep Power
    217
    Just check wherever it saves and loads the char information.

    'Strange things did happen here no stranger would it be'
    ______________________________________________
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by Matt' View Post
    Just check wherever it saves and loads the char information.
    The player files don't save the player, like I said. The files don't go anywhere and even when I change the directory for him it doesn't seem to work. I'm obviously doing something wrong.
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    [BUMP] - I Really Need Help With This
    Reply With Quote  
     

  5. #5  
    Registered Member Mr Jason's Avatar
    Join Date
    Dec 2013
    Posts
    384
    Thanks given
    37
    Thanks received
    113
    Rep Power
    0
    PlayerSave.java

    Search for the saveGame method, Scroll a bit down until you see something like

    Code:
    characterfile = new BufferedWriter(new FileWriter
    And you should know what you should do.
    Reply With Quote  
     

  6. #6  
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by JasonRTM View Post
    PlayerSave.java

    Search for the saveGame method, Scroll a bit down until you see something like

    Code:
    characterfile = new BufferedWriter(new FileWriter
    And you should know what you should do.
    Here is the code shown:

    Code:
    		try {
    		String desktop = System.getProperty("user.home") + "/Desktop";
    			characterfile = new BufferedReader(new FileReader(""+desktop+"/characters/"+playerName+".txt"));
    			File1 = true;
    		} catch(FileNotFoundException fileex1) {
    		}
    And, what should I change it too? Again I couldn't fix it myself and to busy to fully work on it.
    Reply With Quote  
     

  7. #7  
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    Dat Bump Doe!
    Reply With Quote  
     

  8. #8  
    Registered Member
    Mimi's Avatar
    Join Date
    Feb 2011
    Age
    28
    Posts
    860
    Thanks given
    253
    Thanks received
    91
    Rep Power
    195
    Code:
    characterfile = new BufferedReader(new FileReader("./data/characters/" + playerName + ".txt"));
    Edit: Here you go

    Code:
     
                         try {
    			characterfile = new BufferedReader(new FileReader(
    					"./data/characters/" + playerName + ".txt"));
    			File1 = true;
    		} catch (FileNotFoundException fileex1) {
    		}
    "Simplicity is elegance"
    "Peace & Love"
    Reply With Quote  
     

  9. #9  
    Member
    Join Date
    Jul 2013
    Age
    25
    Posts
    379
    Thanks given
    81
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by Thee Omar View Post
    Code:
    characterfile = new BufferedReader(new FileReader("./data/characters/" + playerName + ".txt"));
    Nope didn't work. Still couldn't save the player file. Regardless of what code I kept or deleted.

    P.S. Don't worry it can be fixed occording to the Owner of the server:

    There is no anti leech. characters might be loading from desktop but you can change that easily
    Reply With Quote  
     

  10. #10  
    Registered Member
    Mimi's Avatar
    Join Date
    Feb 2011
    Age
    28
    Posts
    860
    Thanks given
    253
    Thanks received
    91
    Rep Power
    195
    Quote Originally Posted by Killapkz View Post
    Nope didn't work. Still couldn't save the player file. Regardless of what code I kept or deleted.
    post the whole class? and btw do a folder in data called "characters"
    "Simplicity is elegance"
    "Peace & Love"
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [508] Base, just up to player saving?
    By 'Conner in forum Help
    Replies: 1
    Last Post: 09-25-2010, 05:40 PM
  2. Replies: 7
    Last Post: 07-28-2010, 11:47 AM
  3. Replies: 6
    Last Post: 09-26-2009, 12:08 AM
  4. Replies: 8
    Last Post: 04-16-2009, 03:47 PM
  5. Replies: 6
    Last Post: 08-22-2008, 12:11 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •