1. Before posting any MODs, please contact us at support@portalarium.com to ensure your MOD is acceptable to the Terms of Service and EULA of the game. Portalarium is not responsible for use of MODs and possible adverse effects on your client or computer, and we may take action on accounts using MODs that are deemed illegal. Whether submitted here or elsewhere in the community, use MODs at your own risk!
    Dismiss Notice

Most Requested Lua Meta Data

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

  1. Drake Aedus

    Drake Aedus Avatar

    Messages:
    533
    Likes Received:
    872
    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!
     
  2. Chris

    Chris Tech Lord Moderator SOTA Developer

    Messages:
    2,375
    Likes Received:
    27,133
    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.
     
    Aeryk, fooBrew, Barugon and 4 others like this.
  3. Drake Aedus

    Drake Aedus Avatar

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

    :cool:
     
  4. Chris

    Chris Tech Lord Moderator SOTA Developer

    Messages:
    2,375
    Likes Received:
    27,133
    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.
     
    Sentinel2, fooBrew, Barugon and 5 others like this.
  5. Drake Aedus

    Drake Aedus Avatar

    Messages:
    533
    Likes Received:
    872
    Trophy Points:
    75
    Gender:
    Male
    Is it going to be changed to respect the DataFolder setting? Like chatlogs and savedgames?
     
  6. Chris

    Chris Tech Lord Moderator SOTA Developer

    Messages:
    2,375
    Likes Received:
    27,133
    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:
    11,951
    Likes Received:
    18,968
    Trophy Points:
    153
    Gender:
    Male
    Thanks.
     
  8. Drake Aedus

    Drake Aedus Avatar

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

    Helverian Avatar

    Messages:
    64
    Likes Received:
    45
    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:
    533
    Likes Received:
    872
    Trophy Points:
    75
    Gender:
    Male
    @Helverian This is why I requested a function:

     
    Helverian likes this.
  11. fooBrew

    fooBrew Avatar

    Messages:
    34
    Likes Received:
    30
    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:
    580
    Likes Received:
    1,386
    Trophy Points:
    63
    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...
     
  13. Tiina Onir

    Tiina Onir Avatar

    Messages:
    1,012
    Likes Received:
    1,755
    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.
     
  14. scroda

    scroda Empyrean Enforcer

    Messages:
    161
    Likes Received:
    325
    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 Avatar

    Messages:
    850
    Likes Received:
    2,228
    Trophy Points:
    105
    Location:
    earth... mostly
    InCombat

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