Thread: Player saving problem - quest related [pi]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Player saving problem - quest related [pi] 
    Donator
    Mr Faris's Avatar
    Join Date
    Oct 2013
    Posts
    26
    Thanks given
    8
    Thanks received
    0
    Rep Power
    0
    Heya, Hopefully their some kind experience people out their to assist me as much as i would assist to them.

    So the problem is..

    I am starting to add tutisland for 2007 custom remake.. (not the problem)
    But...
    I started 3 steps..

    -- talk to tut guide
    -- go to make over mage
    -- go back to tut guide to do survival tasks.

    not a problem, Logged out

    --tutisle =3

    But.
    When i log back in, it will reset it self,
    So i log out to see what tutisle save is,
    and its

    --tutisle =0

    im using original PI with clips etc etc.. took loads of time to make,
    But i don't want to throw this project away as it took me week to do it.

    here is my tut isle player saves snippets.

    Player.java.
    Code:
    public int tutisle;
    Code:
    //start quests						
    					} else if(token.equals("tutisle")) {
    						p.Incantation = Integer.parseInt(token2);
    					} else if(token.equals("Incantation")) {
    						p.Incantation = Integer.parseInt(token2);
    				
    					} else if(token.equals("dt-kill")) {
    						p.lastDtKill = Integer.parseInt(token2);
    					
    					} else if (token.equals("quest-points")) {
    						p.questPoints = Integer.parseInt(token2);
    
    //endo quests
    and

    Code:
    //start quests
    			characterfile.write("dt-kill = ", 0, 10);
    			characterfile.write(Integer.toString(p.lastDtKill), 0, Integer.toString(p.lastDtKill).length());
    			characterfile.newLine();
    			characterfile.write("quest-points = ", 0, 15);
    			characterfile.write(Integer.toString(p.questPoints), 0, Integer.toString(p.questPoints).length());
    			characterfile.newLine();
    			characterfile.write("tutisland = ", 0, 11);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();

    Hopefully you can help me.

    __________________
    Faris
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Your load and save values are different.. They have to be the same..

    tutisle & tutisle = or tutisland & tutisland =
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Sep 2013
    Posts
    142
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    + its 12 characters not 11
    Reply With Quote  
     

  5. #4  
    Donator
    Mr Faris's Avatar
    Join Date
    Oct 2013
    Posts
    26
    Thanks given
    8
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Karma_K View Post
    Your load and save values are different.. They have to be the same..

    tutisle & tutisle = or tutisland & tutisland =
    If you were looking at this:
    Code:
    characterfile.write("tutisland = ", 0, 11);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();
    they're meant to be different.
    Tutisland = represents when player logs out, its on the player file.
    I do not have problem with that,
    Its all connected fine,

    As i said.
    When doing the tasks and got tutisland = 3
    but when relogging
    It resets.
    Thanks for trying anyway

    Ill check what you mean steen, but I don't think that is the problem
    Reply With Quote  
     

  6. #5  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Quote Originally Posted by Mr Faris View Post
    If you were looking at this:
    Code:
    characterfile.write("tutisland = ", 0, 11);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();
    they're meant to be different.
    Tutisland = represents when player logs out, its on the player file.
    I do not have problem with that,
    Its all connected fine,

    As i said.
    When doing the tasks and got tutisland = 3
    but when relogging
    It resets.
    Thanks for trying anyway

    Ill check what you mean steen, but I don't think that is the problem
    He's right. They have to be the same, otherwise it will reset.

    Also to what another guy said, you have 12 characters total, not 11. You have to change that "11" to a "12".
    Reply With Quote  
     

  7. #6  
    Donator
    Mr Faris's Avatar
    Join Date
    Oct 2013
    Posts
    26
    Thanks given
    8
    Thanks received
    0
    Rep Power
    0
    As i said..

    http://prntscr.com/25197u

    Must be different - it deleted every p.save in player char....

    I tried just adding the 12,
    it does nothing, its like when it was 11, nothing happened, relog back to 0

    As i also said.
    When its completed the tasks and log out,
    It says tutisle = 3 (what i wanted)
    but when you log (in)
    it will reset,,

    So i am thinking it might be something to do with client.java when something reseted..
    Last edited by Mr Faris; 11-18-2013 at 06:54 PM. Reason: Reposted the picture, It was spamming me so i had to change it to tutisland before the lag hit me
    Reply With Quote  
     

  8. #7  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Quote Originally Posted by Mr Faris View Post
    As i said..

    Screenshot by Lightshot

    Must be different - it deleted every p.save in player char....

    I tried just adding the 12,
    it does nothing, its like when it was 11, nothing happened, relog back to 0

    As i also said.
    When its completed the tasks and log out,
    It says tutisle = 3 (what i wanted)
    but when you log (in)
    it will reset,,

    So i am thinking it might be something to do with client.java when something reseted..
    ...

    Do this.

    Code:
    } else if(token.equals("tutisland")) {
    						p.tutisle = Integer.parseInt(token2);
    Code:
    characterfile.write("tutisland = ", 0, 12);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();
    Reply With Quote  
     

  9. #8  
    Donator
    Mr Faris's Avatar
    Join Date
    Oct 2013
    Posts
    26
    Thanks given
    8
    Thanks received
    0
    Rep Power
    0
    That just crashed the player character.
    So it resets the account.


    Error shows like this
    http://prntscr.com/25197u
    Reply With Quote  
     

  10. #9  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Mr Faris View Post
    That just crashed the player character.
    So it resets the account.


    Error shows like this
    Screenshot by Lightshot
    You'll have to play with this number until it works.

    Code:
    characterfile.write("tutisland = ", 0, 12);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();
    Reply With Quote  
     

  11. #10  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Quote Originally Posted by Mr Faris View Post
    That just crashed the player character.
    So it resets the account.


    Error shows like this
    Screenshot by Lightshot
    Try this then:

    Code:
    } else if(token.equals("tutisle")) {
    						p.tutisle = Integer.parseInt(token2);
    Code:
    characterfile.write("tutisle = ", 0, 10);
    			characterfile.write(Integer.toString(p.tutisle), 0, Integer.toString(p.tutisle).length());
    			characterfile.newLine();
    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. [RIOTSCAPE] Binary player-saving problem
    By Haskell Curry in forum Help
    Replies: 4
    Last Post: 05-01-2012, 01:14 AM
  2. [508] Player Save Problem
    By -Harrison in forum Help
    Replies: 5
    Last Post: 02-17-2012, 06:47 PM
  3. [PI] Player save - problem
    By Magic in forum Help
    Replies: 4
    Last Post: 09-29-2011, 04:18 AM
  4. [PI] Quest related problem
    By TGWCam in forum Help
    Replies: 6
    Last Post: 12-22-2010, 09:26 PM
  5. [pi] player log problem.
    By hontiris1 in forum Help
    Replies: 1
    Last Post: 08-16-2010, 09:00 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
  •