Thread: [RuneSource] PlayerSave nulling characters?

Results 1 to 3 of 3
  1. #1 [RuneSource] PlayerSave nulling characters? 
    Registered Member

    Join Date
    Jan 2011
    Posts
    1,940
    Thanks given
    1,217
    Thanks received
    547
    Rep Power
    607
    Having some interesting issues and can't quite get my head around it... I'm saving a couple of new ints and booleans, and it seems to cause the weirdest issues. The int will be set to 151 for example upon logging out, and when you log back in it'll be something like 19512895. The boolean will also causing another boolean to randomly be set to true.

    It seems that the order they're put in in PlayerSave has as an impact on this. Anyone have any experience with this and could give some information?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2016
    Posts
    148
    Thanks given
    46
    Thanks received
    30
    Rep Power
    19
    You're correct the order needs to be exactly the same in both load and save. If you don't load all of the information correctly from the playerfile, bugs like this will happen because chunks of data are going to be loaded incorrectly for other variables e.g.

    you have an array of integers you are loading for something like quests, if you don't load all of the data available in that code chunk it will corrupt/give incorrect data for the next variable you're loading. I would take time to revise anything you've added.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Jan 2011
    Posts
    1,940
    Thanks given
    1,217
    Thanks received
    547
    Rep Power
    607
    Quote Originally Posted by Deadman World View Post
    You're correct the order needs to be exactly the same in both load and save. If you don't load all of the information correctly from the playerfile, bugs like this will happen because chunks of data are going to be loaded incorrectly for other variables e.g.

    you have an array of integers you are loading for something like quests, if you don't load all of the data available in that code chunk it will corrupt/give incorrect data for the next variable you're loading. I would take time to revise anything you've added.
    Thanks for the info. Played around with it a bit and got it working as it should, but still wasn't sure exactly what's causing it.

    Guess I'll just be extra careful with adding these things.
    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. Replies: 17
    Last Post: 01-05-2013, 02:45 PM
  2. Runesource- Adding to character save file
    By Chelsea Grin in forum Help
    Replies: 2
    Last Post: 11-03-2012, 03:46 PM
  3. [PI][DSPK]Character Nulling[DSPK][PI]
    By CommunityX in forum Help
    Replies: 4
    Last Post: 04-08-2011, 12:36 AM
  4. character null?
    By 12igon8 in forum Help
    Replies: 4
    Last Post: 12-24-2010, 06:46 PM
  5. Character Nulled
    By CrazyPanda in forum Help
    Replies: 5
    Last Post: 06-01-2009, 12:57 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
  •