Most Requested Lua Meta Data

Discussion in 'Lua Discussions' started by Drake Aedus, Nov 10, 2019.

Thread Status:
Not open for further replies.
  1. Drake Aedus

    Drake Aedus Avatar

    Messages:
    536
    Likes Received:
    886
    Trophy Points:
    75
    Gender:
    Male
    Alrighty, time for more Lua goodness. As you know we are in the baby steps of initial Lua integration testing. And I am happy to say that what is added so far (QA.Win.64.882) is usable in that respect.

    But we are a wily and anxious bunch here on SotA, so on with the wish lists!

    Lua uses tables (arrays) for its data structures, so here are a couple incomplete table requests:

    SelfInfo = {Name=, Title=, Guild=, LocX=, LocY=, LocZ=, ...n}

    ClientInfo = {Width, Height, SceneLoaded,...}

    SceneInfo ={Name, Type, Weather, Time, Date,...}

    I imagine we'd like to access buff lists.

    Chime in with suggestions, there are full phases of Lua implementation ahead of us!
     
    FrostII, Astirian, Helverian and 2 others like this.
  2. Chris

    Chris Tech Lord Moderator Ambassador SOTA Developer

    Messages:
    2,470
    Likes Received:
    27,551
    Trophy Points:
    190
    Gender:
    Male
    On it. I'll likely be exposing stuff through piecemeal function calls vs a single call. A number of reasons but the big ones being, it can be problematic with the rapidly expanding API and also that many things are dynamic and change often (like LocationXY for example) and I don't want the extra overhead of constantly grabbing a ton of mostly static data when you really just want LocX/LocY. I could make these bind to dynamic values but then I have to work out "OnBlahChanged" functions for all of them. For now, likely just doing single value grab options.
     
    FrostII, Aeryk, fooBrew and 5 others like this.
  3. Drake Aedus

    Drake Aedus Avatar

    Messages:
    536
    Likes Received:
    886
    Trophy Points:
    75
    Gender:
    Male
    Sounds like more room for player created libraries!

    :cool:
     
    FrostII, Sentinel2, Aeryk and 2 others like this.
  4. Chris

    Chris Tech Lord Moderator Ambassador SOTA Developer

    Messages:
    2,470
    Likes Received:
    27,551
    Trophy Points:
    190
    Gender:
    Male
    Yep! That is my expectation!

    Next big change I'll get in tonight will be to change location of the script for the OSX/Linux peeps and just load all Lua files in that folder. Stuff you want to load can just be in a sub folder.
     
    FrostII, Sentinel2, fooBrew and 6 others like this.
  5. Drake Aedus

    Drake Aedus Avatar

    Messages:
    536
    Likes Received:
    886
    Trophy Points:
    75
    Gender:
    Male
    Is it going to be changed to respect the DataFolder setting? Like chatlogs and savedgames?
     
    FrostII likes this.
  6. Chris

    Chris Tech Lord Moderator Ambassador SOTA Developer

    Messages:
    2,470
    Likes Received:
    27,551
    Trophy Points:
    190
    Gender:
    Male
    Yes and be platform friendly. Sadly, I'm about at the end of my Sunday workday. I'll still work to get a new QA out so I can start live tomorrow if the Ice Field fix makes a dent but no more new Lua work until morning.
     
    Drake Aedus likes this.
  7. Barugon

    Barugon Avatar

    Messages:
    15,678
    Likes Received:
    24,293
    Trophy Points:
    153
    Gender:
    Male
    Thanks.
     
  8. Drake Aedus

    Drake Aedus Avatar

    Messages:
    536
    Likes Received:
    886
    Trophy Points:
    75
    Gender:
    Male
    Requesting bool ShroudPlayerInCombat() or something like that.
     
    Helverian and that_shawn_guy like this.
  9. Helverian

    Helverian Avatar

    Messages:
    73
    Likes Received:
    54
    Trophy Points:
    8
    Or perhaps an event which got this data.
    Events are better in perfirming than a script which is permantly pooling
     
  10. Drake Aedus

    Drake Aedus Avatar

    Messages:
    536
    Likes Received:
    886
    Trophy Points:
    75
    Gender:
    Male
    @Helverian This is why I requested a function:

     
    FrostII and Helverian like this.
  11. fooBrew

    fooBrew Avatar

    Messages:
    34
    Likes Received:
    31
    Trophy Points:
    8
    Gender:
    Male
    Location:
    San Diego, CA
    Thanks for working on the Linux filename fix! Kinda driving me crazy.
     
  12. Astirian

    Astirian Avatar

    Messages:
    614
    Likes Received:
    1,494
    Trophy Points:
    93
    I know it's early (exciting!) days, I'm chomping at the bit to get access to the graphical aspect of things like the dialogue box, things like:

    - The frame itself, so we can play around with different styles. :)
    - SotA Fonts
    - Font Size

    Would love to get a hold of the recipe book too:

    - Its last known co-ords
    - Last known displayed page

    I'm not sure how the Inky implementation is going to affect dialogue but I guess later in it would be good to be able to get some UI hooks in so we can play with the way the dialogue is presented etc... And details of the NPC etc...
     
    FrostII likes this.
  13. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,103
    Likes Received:
    1,900
    Trophy Points:
    125
    Location:
    Bramble, South Paladis
    I really want to be able to see the basic stats of party members (HP/Focus/Target?)
    Maybe same for nearby mobs?

    and the ability to output outside of game... file-access, or network access, or even pipes.
     
    FrostII likes this.
  14. scroda

    scroda Empyrean Enforcer

    Messages:
    211
    Likes Received:
    378
    Trophy Points:
    30
    eventually some people might like something to show the state of the camera; first person, third person, third person over shoulder
    and if you're trying to center something around the player in third person over the shoulder mode then you'd also need to know the current FOV or something
     
    Astirian and that_shawn_guy like this.
  15. that_shawn_guy

    that_shawn_guy Bug Hunter

    Messages:
    1,409
    Likes Received:
    3,738
    Trophy Points:
    125
    Location:
    earth... mostly
    InCombat

    that way we can show/hide UI based on player mode
     
  16. ErikRulez

    ErikRulez Avatar

    Messages:
    647
    Likes Received:
    1,179
    Trophy Points:
    93
    Separate XP earned and XP spent API calls would be nice.

    Right now we only see the current pool size which reflects both of these so we can't accurately see XP earned over the last hour unless we have all learning turned off.
     
Thread Status:
Not open for further replies.