Thread: Hyperion loading and saving not working :/?

Results 1 to 6 of 6
  1. #1 Hyperion loading and saving not working :/? 
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    Code:
                                    for (int i = 0; i < 200; i++) {
    				Long friend = is.readLong();
    				if (friend != null) {
    					player.getFriends().addFriend(friend);
    				}
    when i use this it dont let me login and gives random return codes

    and here is my saving code

    Code:
    for (int i = 0; i < 200; i++) {
    				Long friend = player.getFriends().getFriends(i);
    				if (friend == null) {
    					os.writeLong(-1);
    				} else {
    					os.writeLong(friend);
    				}
    			}
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,074
    Thanks given
    2,625
    Thanks received
    3,579
    Discord
    View profile
    Rep Power
    5000
    Give the whole WorldLoader class and the addFriend method.
    .
    Reply With Quote  
     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    it wouldnt be != null
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jun 2009
    Posts
    146
    Thanks given
    0
    Thanks received
    1
    Rep Power
    245
    This happens whenever you add anything to the loading and saving code in GenericWorldLoader. That's why I've switched my specific one to MySQL. (Not working on it atm though)
    Reply With Quote  
     

  5. #5  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    Fixed already, i was sending packets during login, which is not possible

    thanks to graham for helping
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,074
    Thanks given
    2,625
    Thanks received
    3,579
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Belkar View Post
    This happens whenever you add anything to the loading and saving code in GenericWorldLoader. That's why I've switched my specific one to MySQL. (Not working on it atm though)
    If you mean it is backwards incompatible, you can add compatibility checks in.

    E.g.

    Code:
    if(is.available() > 0) {
        // load something
    } else {
        // load default
    }
    .
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •