+ Reply to Thread
Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By ZorbaTHut

  Click here to go to the first Rift Team post in this thread.   Thread: Zorba, default SVs and global vs local

  1. #1
    Champion Lorandii's Avatar
    Join Date
    Jun 2011
    Posts
    516

    Default Zorba, default SVs and global vs local

    I can't think of a better way, and maybe there isn't, but doesn't hurt to ask. In ZBB, you have the saved variable ZorbasBuffBars_Placement and in the main lua file, you assign values. Fair enough, but that creates a global variable; I'm wondering if there is some way to make that local? Yes, you can make a local reference, but that isn't the same thing. Just colour me curious.

    On a totally different note, I was also curious if there is any plans to add "load on demand" in the toc? You could then create a seperate addon that contains an addon's option frame and choices, but have it only load if the user opens the option pane. That is just one example, but there could be other uses.

  2. #2
    jca
    jca is offline
    Rift Chaser
    Join Date
    Mar 2011
    Posts
    314

    Default

    Quote Originally Posted by Lorandii View Post
    I can't think of a better way, and maybe there isn't, but doesn't hurt to ask. In ZBB, you have the saved variable ZorbasBuffBars_Placement and in the main lua file, you assign values. Fair enough, but that creates a global variable; I'm wondering if there is some way to make that local? Yes, you can make a local reference, but that isn't the same thing. Just colour me curious.
    That's kinda bothered me as well. Without knowing the underlying code base it's hard to say for sure, but it seems to me that attaching the saved variables to the addon reference passed into each file would be a clean way to keep 'em local.

  3.   Click here to go to the next Rift Team post in this thread.   #3
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by Lorandii View Post
    I can't think of a better way, and maybe there isn't, but doesn't hurt to ask. In ZBB, you have the saved variable ZorbasBuffBars_Placement and in the main lua file, you assign values. Fair enough, but that creates a global variable; I'm wondering if there is some way to make that local? Yes, you can make a local reference, but that isn't the same thing. Just colour me curious.
    Not an easy way. I thought of a few ways to manage that and eventually concluded they weren't worth the trouble. This method is, at least, easy to describe.

    Quote Originally Posted by Lorandii View Post
    On a totally different note, I was also curious if there is any plans to add "load on demand" in the toc? You could then create a seperate addon that contains an addon's option frame and choices, but have it only load if the user opens the option pane. That is just one example, but there could be other uses.
    I've also been thinking about some system for this. I'm not sure "load on demand" is actually useful - I think what people really want is two features, "make me the global addon manager that controls loading all addons" and "here is a list of individual lua files I may want to load on-demand in the future". There's no real reason to split things into sub-addons if you have that second option.

    As an added bonus, addons with big static databases could actually throw them away and reload from disk when needed - there's no reason those lua files couldn't be loaded multiple times.

    The latter would probably show up before the former. I've got to run it past Design to ensure that inserting data into the Rift environment is acceptable, however.

  4. #4
    RIFT Community Ambassador the_real_seebs's Avatar
    Join Date
    Jan 2011
    Posts
    16,859

    Default

    You know, you say "run it past design". Have you considered the alternative path? Show up in a studded leather jacket, toss a beer-and-tobacco-stained typewritten manuscript down, and scream something like "awright, which one of you WORTHLESS LUMPS wants to make some WUSSY excuse for not including this?"

    You know, just some basic marketing techniques.
    You can play WoW in any MMO. You don't have to play WoW in RIFT. Oh, and no, RIFT is not a WoW clone. Not having fun any more? Learn to play, noob! I don't speak for Riftui, but I moderate stuff there. Just came back? Welcome back! Here's what's changed. (Updated for 2.5!)

  5.   This is the last Rift Team post in this thread.   #5
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by the_real_seebs View Post
    You know, you say "run it past design". Have you considered the alternative path? Show up in a studded leather jacket, toss a beer-and-tobacco-stained typewritten manuscript down, and scream something like "awright, which one of you WORTHLESS LUMPS wants to make some WUSSY excuse for not including this?"

    You know, just some basic marketing techniques.
    I'll admit I'm kind of tempted.

+ Reply to Thread

Bookmarks

Posting Permissions

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