Thread: Quest points and quest progress not saving

Results 1 to 5 of 5
  1. #1 Quest points and quest progress not saving 
    Rise Against
    Jurassic's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    364
    Thanks given
    44
    Thanks received
    46
    Rep Power
    21
    I have this in playersave.java
    Code:
    					} else if (token.equals("wrong-side")) {
    						p.wrongSide = Integer.parseInt(token2);
    					} else if (token.equals("quest-points")) {
    						p.questPoints = Integer.parseInt(token2);
    Code:
    			characterfile.write("questPoints = ", 0, 14);
    			characterfile.write(Integer.toString(p.questPoints), 0, Integer.toString(p.questPoints).length());
    			characterfile.newLine();
    			characterfile.write("wrongSide = ", 0, 12);
    			characterfile.write(Integer.toString(p.wrongSide), 0, Integer.toString(p.wrongSide).length());
    			characterfile.newLine();
    I have this in player.java
    Code:
    	wrongSide,
    	questPoints,
    I get the points and quest progress, but as soon as I log out they reset. Help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2013
    Posts
    65
    Thanks given
    25
    Thanks received
    16
    Rep Power
    17
    When writing the variable you use a hyphen instead of a capital letter.
    Reply With Quote  
     

  3. #3  
    Rise Against
    Jurassic's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    364
    Thanks given
    44
    Thanks received
    46
    Rep Power
    21
    Everything else is set up like those ones, but these ones don't work. Its confusing.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2013
    Posts
    65
    Thanks given
    25
    Thanks received
    16
    Rep Power
    17
    Quote Originally Posted by Faytality View Post
    Everything else is set up like those ones, but these ones don't work. Its confusing.
    If it tries to read something that hasn't been written I don't know how it could work. Try replacing your first part of code with this;

    Code:
    } else if (token.equals("wrongSide")) {
    		p.wrongSide = Integer.parseInt(token2);
    } else if (token.equals("questPoints")) {
    		p.questPoints = Integer.parseInt(token2);
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Rise Against
    Jurassic's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    364
    Thanks given
    44
    Thanks received
    46
    Rep Power
    21
    I'll attempt it soon.

    EDIT: Thank you
    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. Lost Legacy Quest not saving???
    By Kaiser Btw in forum Help
    Replies: 22
    Last Post: 05-03-2011, 02:00 AM
  2. Quest is not saving?
    By 1337 pow3r in forum Help
    Replies: 5
    Last Post: 10-17-2009, 08:12 PM
  3. Sending quest points
    By peterbjornx in forum Configuration
    Replies: 3
    Last Post: 08-27-2008, 10:23 PM
  4. [REQ] Quest Cape and hood
    By Dark Claw in forum Models
    Replies: 0
    Last Post: 06-05-2008, 11:13 PM
  5. [req] Quest cape and questcape hood[req]
    By Dark Claw in forum Models
    Replies: 1
    Last Post: 05-18-2008, 06:31 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
  •