Skip to content

SqlGetObject and SqlBindObject question related to new patch

I just want to make sure I'm understanding this correctly. Prior to 8193.32 these functions would store and restore local variables on objects by default. Now, after the patch, they only do so if you flip a flag which also causes them to store other aspects as well? I tested this out on code compiled before the patch and code compiled after the patch and that seems to be the case, but I want to make sure. I'm surprised you made it default to FALSE because that breaks a ton of things in persistent worlds.

Comments

  • WilliamDracoWilliamDraco Member Posts: 175
    Other way around. Those functions did not handle those things (hence why it defaults false) and now can if set to true.
  • n00bdragonn00bdragon Member Posts: 11
    I did some really thorough testing yesterday and you are correct. When set to FALSE it still transports local variables as it did before. I got confused by this line:
    // If bLoadObjectState is TRUE, local vars, effects, action queue, and transition info (triggers, doors) are read in.
    
    This makes it sound like local variables only go if set to TRUE. That's incorrect though. Local variables get transported regardless. This is good because this is the functionality it had before.

    I'm all set.
Sign In or Register to comment.