Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Svof

145791024

Comments

  • AntoniusAntonius Member Posts: 3,875 @@ - Legendary Achaean
    In his code he's comparing the value of eventname to values, so it does need to be declared as a parameter in the function definition, otherwise it's never going to have a value (unless he has a variable with the same name defined elsewhere that is visible inside the function - which is going to cause all kinds of problems). If he doesn't need to check the value then sure, it's not needed.
    Syzygy
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    Right... Third time today my reading comprehension fails me... Got up too early it seems!
  • AntoniusAntonius Member Posts: 3,875 @@ - Legendary Achaean

    I've never built a GUI in Mudlet so I have no idea what the actual commands are, so consider this semi-pseudo code for how I'd go about updating an affliction mini console.

    function updateMiniConsoleAffs()
        -- clear miniconsole
        for affname, affdata in pairs(svo.affl) do
            -- echo affname to miniconsole
            -- echo any other relevant information about the affliction from affdata (e.g. stacks, time)
            -- echo a new line to the miniconsole        
        end
    end
    
    registerAnonymousEventHandler("svo got aff", "updateMiniConsoleAffs")
    registerAnonymousEventHandler("svo lost aff", "updateMiniConsoleAffs")
    

    The registerAnonymousEventHandler function is just a code way to do the same thing as the event handler section of the script objects in the Mudlet interface, though it also allows you to give the function a different name to the script object.

    Kesher
  • AelavelAelavel Member Posts: 4
    edited February 2016
    Thank you so much @Antonius, that snippet was all I needed to get it up and running within two minutes. I knew I could get the info from svo.affl, I just didn't know how. Would you mind explaining what this part does?:

    for affname, affdata in pairs(svo.affl) do

    I know it's pulling the name of the affliction from the svo.affl table and then running the following echos as a result of the do, I'm just not sure how it's making sense of it enough to just get the single word since when I run vlua svo.affl there's a bunch of other things that come up along with it. 
  • AntoniusAntonius Member Posts: 3,875 @@ - Legendary Achaean
    edited February 2016
    Okay, so svo.affl is a table. Lua has two types of tables. Dictionaries which map keys to values and ordered (or indexed) lists which are just lists of values that have a set order. Values can be booleans, numbers, strings or other tables. In the case of svo.affl it's a dictionary which maps the name of an affliction (the key) to a table of data about that affliction (the value).

    The pairs function is an iterator over a table. It goes through each key in turn, and returns the key and its corresponding value. The for loop just loops through each of those pairs of return values. In effect, it's saying "For every key (affliction name) of the table svo.affl, give me - in turn - the next key and its corresponding value, and execute this code using the values for the current iteration".

    A couple of notes:

    1. There's no guarantee of order when using the pairs function. Running in multiple times isn't guaranteed to return the keys in the same order, nor is it guaranteed to return the keys in the order they were assigned in the table. As a result, it's not designed for iterating over the other type of table: ordered lists. There's a similar function - ipairs - to do that.

    2. The affname and affdata variables can be called anything you like, provided it's a valid variable name. A lot of people will just use k (key) and v (value) but I prefer to give them names that actually indicate what they are since it makes the code a lot easier to read.
  • AelavelAelavel Member Posts: 4
    Thanks for the explanation! I've seen the k, v variables in a lot of pieces of code but didn't realize you could give them names like that which makes a lot of things make more sense. 
  • TilianTilian Member Posts: 12 ✭✭ - Stalwart
    Having a strange issue with NameDB. When I run qw update, it goes through the process of honors'ing everyone, which is good! This is good. However, with my next qw, everyone from Hashan, Ashtan and Cyrene is suddenly defaulted to 'rogue' in the db.

    I just want highlighting. Help :(
    The soul of Ferrus says in Targossian in a warm tabac-stained voice, "Fear the tuna."
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    This is a known bug for some, but there is no known fix for it yet, sadly :(
  • TilianTilian Member Posts: 12 ✭✭ - Stalwart
    edited February 2016
    Before I run through checking, is there an alternative, standalone highlighting script that anyone is aware of? I've not seen one on my brief looks around.

    Edit: Also. Thanks, @Keneanung =)
    The soul of Ferrus says in Targossian in a warm tabac-stained voice, "Fear the tuna."
  • VadimusesVadimuses Member Posts: 918 @ - Epic Achaean
    make use of ndb export and import as a failsafe, I suppose.
  • CynlaelCynlael Member Posts: 3,257 @@ - Legendary Achaean
    edited February 2016
    Sohl has a name highlighter here; https://www.mediafire.com/?adbpt27f3gvdb

    Gotta add all the names yourself, though. Might conflict with ndb's highlighting. Unless you just disable ndb all together.

  • RouillierRouillier Member Posts: 39 ✭✭ - Stalwart
    How can I get the knight limb counter as a Bard?  I tried copying the xml into a notepad doc and installing it via the package manager.  It shows all the aliases, scripts, and triggers, but it simply doesn't work

  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    The actual code is part of the big "svo" file and tightly interwoven with internal functions. I'm looking into getting this tight coupling resolved as part of the multiclass changes.
  • RouillierRouillier Member Posts: 39 ✭✭ - Stalwart
    Keneanung said:
    The actual code is part of the big "svo" file and tightly interwoven with internal functions. I'm looking into getting this tight coupling resolved as part of the multiclass changes.
    Cool. I was able to get the one Antonius put up working and have grown rather fond of it, so no biggie. All the work is appreciated!  Those of us who don't have the magic think you're all a bunch of geniuses
    ShimiUtianima
  • RodhelRodhel Member Posts: 40
    I've just installed Svof (I'm a complete Mudlet noob so this is absolutely AMAZING for someone like me, so thank you). One thing tho, I've read all the documentation and I am trying to get "qwhom" and "qwhom/qwho <area>" working but every time I do it, it does this:

    qwhom:

    (svof): Done checking all of wholist!
    (svof): 72 ungemmed people are visible:
     in uncertain area:
      [snipped out names to reduce spam, but basically shows everyone as uncertain area, and from the documentation I thought this would list by area, I have the mapper open, crowdmap on, etc]
       in Atop the Eleusian Gatehouse: Isvariel and Laniara (2 people)
       in A chilly, vaulted chamber within : Rom (1 person)
       in Inside the Class and House Admini: Luph and Rhae (2 people)

    qwho Ashtan
    (svof): Checking all of wholist in Ashtan...
    You have recovered balance on all limbs. (1.06s)
    4987h, 3222m, 21570e, 15000w [ex] cdbkr [XP:91%]
    (svof): Done checking all of wholist!
    (svof): 74 ungemmed people are visible:
    4987h, 3222m, 21570e, 15000w [ex] cdbkr [XP:91%]

    qwhom Ashtan
    (svof): Checking all of wholist for m in Ashtan...
    You have recovered balance on all limbs. (0.75s)
    4987h, 3222m, 21570e, 15000w [ex] cdbkr [XP:91%]
    (svof): Done checking all of wholist!
    (svof): 73 ungemmed people are visible:
    4987h, 3222m, 21570e, 15000w [ex] cdbkr [XP:91%]

    I don't know if this is related but when I do who b (using the mapper script):

    Daklore                                 (The Azure Falcon)  (9636)
    From your knowledge, that room is in ?.
    Hurai
    Lilacia                                 (East of the forgeroom)  (19301)
    From your knowledge, that room is in ?.

    Always unknown areas - so is this something I am doing wrong with map? (I apologise in advance if this is the wrong thread / wrong way to raise a question).




  • RodhelRodhel Member Posts: 40
    Too late for me to edit but I've sorted it now. Thanks anyway!
  • AegothAegoth Member Posts: 1,983 @@ - Legendary Achaean
    edited February 2016
    Who the FUCK fucked with the fucking Enchanting script in SVOF!? Used to be in SVO I could put in ENCHANT X METEOR or whatever, and it'd enchant a nice batch for me. Now I have to watch as my system spews all this vitriolic bile about fucking selfishness and fucking "enchantment orders" and all this other fucking bullshit JUST LET ME FUCKING ENCHANT!! FIX IT OR I WILL HOLOCAUST YOUR FUCKING HOUSE, WHOEVER DID THIS


    Edit: Or at least tell me how it works. 
  • KyrraKyrra Sanctum of the SkyMember Posts: 4,110 @@ - Legendary Achaean
    @Aegothhttps://svof.github.io/svof/enchanter.html

    It lists all the commands, and once you adjust to it, it's actually pretty awesome.

    If it's changed since then, no idea.
    (D.M.A.): Cooper says, "Kyrra is either the most innocent person in the world, or the girl who uses the most innuendo seemingly unintentionally but really on purpose."

    Utianima
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    Aegoth said:
    Who the FUCK fucked with the fucking Enchanting script in SVOF!? Used to be in SVO I could put in ENCHANT X METEOR or whatever, and it'd enchant a nice batch for me. Now I have to watch as my system spews all this vitriolic bile about fucking selfishness and fucking "enchantment orders" and all this other fucking bullshit JUST LET ME FUCKING ENCHANT!! FIX IT OR I WILL HOLOCAUST YOUR FUCKING HOUSE, WHOEVER DID THIS


    Edit: Or at least tell me how it works. 
    The only one who "spews all this vitriolic bile" is you. The change to the enchanter was done by me and went in with version 7 and didn't change aside from bugfixes since then. All feedback I received about it was positive and agrees with me that the enchanter is now faster, more convenient and more reliable to use. It should even show barely a difference to before if you use it the same way.

    If there were any issues and they were communicated in a way a civilized way, I'd be among the first to look into it. But your posts contains barely more than expletives insulting the people who strive to improvea change a complex system that you can use for free. If you don't like it, don't use it.
    TahquilUtianima
  • AegothAegoth Member Posts: 1,983 @@ - Legendary Achaean
    @Keneanung ;Apologies for all the cursing. The enchanting stuff made my system crash a few times because it was spamming that stuff. I also find it entertaining to post like that! (Personal preference). Meant to get in touch with you about it anyway, though @Kyrra was already helpful. 

    Thanks for your response though! Looking forward to multiclass :D

    P.S. never ever take anything i say with capslock on seriously. Ever.
    Dochitha
  • RangorRangor Member Posts: 2,729 @@ - Legendary Achaean
    Aegoth said:
    @Keneanung ;Apologies for all the cursing. The enchanting stuff made my system crash a few times because it was spamming that stuff. I also find it entertaining to post like that! (Personal preference). Meant to get in touch with you about it anyway, though @Kyrra was already helpful. 

    Thanks for your response though! Looking forward to multiclass :D

    P.S. never ever take anything i say with capslock on seriously. Ever.
    We don't take anything you say with or without caps seriously anyways Aegoth!
    image
    DochithaUtianimaAntidas
  • AegothAegoth Member Posts: 1,983 @@ - Legendary Achaean
    Go take a bath, dirty forestal scum
    Dochitha
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    edited March 2016
    Another month another... not-update :( Real life and work on multiclass continues, so new releases are dependent on other contributions right now.

    To encourage contributions, I'm announcing a new program: Bounties. The program allows people to set a bounty for reaching certain milestones (like fixing a bug, adding a feature), which will be paid out to the contributor(s) who deliver it.
    Some small print applies:
    - The person filing the bounty can decide if the milestone is met, however, the project maintainer(s) may decide whether a feature is useful and the implementation fits into the current structure.
    - The project maintainer(s) may be called in as mediators.
    - Merging of code still happens on the maintainer(s) discretion.
    - People may be excluded from this program if the need arises.

    So how will this work for now: All bounty connected milestones will have a GitHub issue. Those issues are marked with a special label. People may add their bounties as own comments or via me. If I am adding a bounty comment, it will contain my PGP signature, for those who care.

    On those grounds above, I will start to add the first bounty, which will already be an exception to the above: Each release I will name an MVP (most valuable person), who made the most important or useful contribution for this release cycle. In addition to my thanks and the title, this person will also receive a 10 credit prize from me.

    Now back to the topic of multiclass: Since the only major issue left is priority handling on class switching (which can be worked around), I decided to start the already announced private beta program on it. That means I encourage everyone who is comfortable with using beta grade software to shoot me an in-game or forum message with the class(es) you'd like to test, an e-mail address I can use to contact you (creating mailing lists is much easier than sending a lot of messages) and any other info you think I might find useful when choosing next invitations. Having multiple classes is NOT a requirement because a lot of code in single class packages must be tested as well. ETA: I will release multiclass once I am comfortable with the amount of tests that went into it. So if no people volunteer, it will probably never get released. I won't hunt people as testers.

    As usual, if any questions arise: flood my inbox.
    SobriquetDochithaVadimusesUtianima
  • RangorRangor Member Posts: 2,729 @@ - Legendary Achaean
    edited March 2016
    How do I set a milestone/bounty on the github issue I started?

    I can also help with testing multiclass for sylvan/serpent/dragon.
    image
    Dochitha
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    See https://help.github.com/articles/applying-labels-to-issues-and-pull-requests/ but I'm not sure you can add labels to an issue in a repo that is not yours. Just comment what you set as bounty and I will add the label when I see it.
    Rangor
  • ElipiseElipise Member Posts: 297 ✭✭✭✭ - Eminent
    Hello, apologies if I'm posting in the wrong place. I tried to find my way into the clan, but clhelp svof is vague with people who can add. 

    Is there a way that I can add someone so that when they hoist I will not writhe? Similar to the lust list?
    Oooh droite, il est en fait une histoire assez drôle une fois que vous avez passé tous les éléments tragiques et sens de malheur.
  • KeneanungKeneanung Member Posts: 517 ✭✭✭✭ - Eminent
    Most of the people in the clan should be able to invite. If not, they may be able to request an invite for you.

    Currently, there is no "hoist list". But I added it to the list of feature requests. See https://github.com/svof/svof/issues/149
    Elipise
  • JonathinJonathin A hole in the groundMember Posts: 3,010 @@ - Legendary Achaean
    Is there an event raised or something set when the system sends a command? I'd like to do something with the sent stuff, but I'm not sure one way or the other if something already exists to interpret all outgoing traffic from the client.

    (Mudlet Clan): Nylian says, "Mosr's on the case. Fix incoming."

    Tutorials and scripts  The Repository

  • JacenJacen Member Posts: 2,180 @@ - Legendary Achaean
    Its not svof related, but Mudlet has a sysDataSendRequest event for all outgoing commands, and even a way to last-minute deny the commands being sent.
    image
    JonathinUtianima
145791024
Sign In to Comment.