Thread: Character files won't save.

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Character files won't save. 
    #Rock Chalk Jayhawks
    Rich.'s Avatar
    Join Date
    May 2012
    Age
    24
    Posts
    288
    Thanks given
    121
    Thanks received
    26
    Rep Power
    20
    EDIT: Fixed, thanks huey, it was because of what you said.
    “Life isn't about finding yourself. Life is about creating yourself.”
    ― George Bernard Shaw
    Reply With Quote  
     

  2. #2  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,437
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    base?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    #Rock Chalk Jayhawks
    Rich.'s Avatar
    Join Date
    May 2012
    Age
    24
    Posts
    288
    Thanks given
    121
    Thanks received
    26
    Rep Power
    20
    Quote Originally Posted by Water Boy View Post
    base?
    FormationX I bought it from... Chief.
    “Life isn't about finding yourself. Life is about creating yourself.”
    ― George Bernard Shaw
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jun 2012
    Posts
    248
    Thanks given
    97
    Thanks received
    58
    Rep Power
    0
    }
    PlayerSave.saveGame(this);
    Misc.println("[DEREGISTERED]: " + playerName + "");
    HostList.getHostList().remove(session);
    disconnected = true;
    session.close();
    session = null;
    inStream = null;
    outStream = null;
    isActive = false;
    buffer = null;
    super.destruct();
    World.getWorld().submit(new SendPlayersOnline());
    }
    Reply With Quote  
     

  5. #5  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,437
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    add under process(){ method in client.java

    Code:
    EventManager.getSingleton().addEvent(new Event() {
    		public void execute(EventContainer c) {
    		PlayerSave.saveGame(this);
    		}
    	}, 1);
    and add import

    Code:
    import server.event.EventManager;
    import server.event.Event;
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Respected Member

    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    24
    Posts
    2,955
    Thanks given
    1,180
    Thanks received
    753
    Rep Power
    3084
    If you are sure that your saving methods are called, it might be that saves directory has read-only permission.
    Right click the folder and check if it's read only.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,227
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    Quote Originally Posted by Water Boy View Post
    add under process(){ method in client.java

    Code:
    EventManager.getSingleton().addEvent(new Event() {
    		public void execute(EventContainer c) {
    		PlayerSave.saveGame(this);
    		}
    	}, 1);
    and add import

    Code:
    import server.event.EventManager;
    import server.event.Event;
    Save every millisecond.. sounds legit.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    Quote Originally Posted by sKyrO View Post
    If you are sure that your saving methods are called, it might be that saves directory has read-only permission.
    Right click the folder and check if it's read only.
    Wouldn't it throw an exception if it was unwritable?

    I don't have the code in front of me, but I don't remember a try-catch there.
    Reply With Quote  
     

  10. #9  
    Banned
    Join Date
    Apr 2012
    Posts
    295
    Thanks given
    14
    Thanks received
    5
    Rep Power
    0
    Or you could add a :ave command for your players.

    Code:
     if (playerCommand.equalsIgnoreCase("save")) {
    			c.SaveGame();
    			c.sendMessage("Your game has been saved.");
    		}
    Reply With Quote  
     

  11. #10  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    27
    Posts
    3,116
    Thanks given
    49
    Thanks received
    180
    Rep Power
    731
    Quote Originally Posted by adxoxocrisp View Post
    Or you could add a :ave command for your players.

    Code:
     if (playerCommand.equalsIgnoreCase("save")) {
    			c.SaveGame();
    			c.sendMessage("Your game has been saved.");
    		}
    So you'll be on the server 24/7 to save every 3 minutes for players?

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for [Only registered and activated users can see links. ]
    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)

Similar Threads

  1. [pi] character files dont save properly
    By IcEbLiTzMeHh in forum Help
    Replies: 7
    Last Post: 11-18-2012, 10:32 PM
  2. How to Save Booleans to Character files
    By Jattio in forum Tutorials
    Replies: 4
    Last Post: 10-10-2010, 03:20 AM
  3. character files wont save (317)
    By vanny in forum Help
    Replies: 2
    Last Post: 07-07-2010, 05:30 PM
  4. Character files won't safe!
    By danny94 in forum Help
    Replies: 1
    Last Post: 09-10-2009, 04:51 PM
  5. auto save like character files
    By demonnd64 in forum Help
    Replies: 0
    Last Post: 08-11-2009, 05:19 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
  •