Thread: Character saving coords

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 Character saving coords 
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    so when a player logs out it changes the coords to
    Code:
    character-posx = -1
    character-posy = -1
    and teleports the player to varrock
    does anyone know how to fix?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2013
    Posts
    158
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    What base are you using? If you ask for help, please put what base you use in the Title.
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    Quote Originally Posted by brutally View Post
    What base are you using? If you ask for help, please put what base you use in the Title.
    pi, sorry
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2013
    Posts
    158
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    Did you add them to PlayerSave.java?
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    Quote Originally Posted by brutally View Post
    Did you add them to PlayerSave.java?
    yes.

    characterfile.write("character-height = ", 0, 19);
    characterfile.write(Integer.toString(p.heightLevel ), 0, Integer.toString(p.heightLevel).length());
    characterfile.newLine();
    characterfile.write("character-posx = ", 0, 17);
    characterfile.write(Integer.toString(p.absX), 0, Integer.toString(p.absX).length());
    characterfile.newLine();
    characterfile.write("character-posy = ", 0, 17);
    characterfile.write(Integer.toString(p.absY), 0, Integer.toString(p.absY).length());
    characterfile.newLine();
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    bump
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Aug 2013
    Age
    27
    Posts
    1,128
    Thanks given
    373
    Thanks received
    754
    Rep Power
    0
    Quote Originally Posted by Hi im 1 3 3 7 View Post
    bump
    Look in your Player.java, maybe the ints being defined as =-1;

    Show me your player.java ints, and if you having any error show it too sir.
    Reply With Quote  
     

  8. #8  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    Quote Originally Posted by Ardi Rizal View Post
    Look in your Player.java, maybe the ints being defined as =-1;

    Show me your player.java ints, and if you having any error show it too sir.
    public int teleportToX = -1, teleportToY = -1;

    im not getting errors in eclipse, what do i need to change the -1 to?
    Reply With Quote  
     

  9. #9  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    bump
    Reply With Quote  
     

  10. #10  
    Donator

    Join Date
    Jun 2012
    Posts
    637
    Thanks given
    129
    Thanks received
    87
    Rep Power
    57
    bump
    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. Replies: 2
    Last Post: 10-10-2009, 10:18 PM
  2. Character Saving/Loading fail?
    By Koâk in forum Help
    Replies: 2
    Last Post: 02-28-2009, 05:18 PM
  3. Replies: 7
    Last Post: 11-21-2008, 07:54 PM
  4. Ftp character saving!
    By The Lemon in forum Tutorials
    Replies: 28
    Last Post: 07-18-2008, 08: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
  •