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

Svof

1161718192022»

Comments

  • DochithaDochitha Member Posts: 802 ✭✭✭✭ - Eminent
    I almost forgot, I remembered there was a plan for svo multuclass. Is it a thing now or it is a separate development?
  • AhmetAhmet Wherever I wanna beMember Posts: 2,866 @ - Epic Achaean
    Ken was worning on it. Not sure where its at right now.
    Huh. Neat.
  • KeneanungKeneanung Member Posts: 504 ✭✭✭✭ - Eminent
    The branch still exists and gets updated every now and then by me. But frankly, the roadblocks I hit are a bit more than I can tackle right now with a full-time job and family... I'm sorry to keep people waiting. If someone wants to have a look at it, they are more than welcome as well!
    DochithaKalilaShirszae
  • KeneanungKeneanung Member Posts: 504 ✭✭✭✭ - Eminent
    I just pushed the button to release svof version 30. I'm sorry for being late, but life's first and I got a pretty busy weekend.

    This month is a quiet one, mostly because I joined the Mudlet dev core team and we were all hands on deck preparing and dealing with the aftermath of the 3.0 release. Without further ado, here's the changelog:

    Full Changelog

    Merged pull requests:

    • Updating serverside according to moss config #293 (@Ahmet )
    • Update svo (runeidentifier).xml #292 (@Ahmet )
  • KalilaKalila Member Posts: 80 ✭✭✭ - Distinguished
    Oh gosh, I had been hoping for this moss configuration thing to work again, for a long time. Thanks so much @Ahmet.

    Much love!
  • JovoloJovolo EnglandMember Posts: 3,092 @@ - Legendary Achaean
    So, trying to figure out how to create simple got/lost aff/def echoes. I'm currently going about that by using the related svo events to call scripts with basic echoes in them. Those scripts look like this: 

    function AffEcho(event, affliction)

    if (event == "svo got aff" and affliction:title() ~= "Bleeding") then

    doecho = "GotAff"

    table.insert(gotafftable, affliction)

    elseif (event == "svo lost aff" and affliction:title() ~= "Bleeding") then

    doecho = "LostAff"

    table.insert(lostafftable, affliction)

    end

    end


    function DefenceEcho(event, defence)

    if (event == "svo got def" and defence:title() ~= "Breath") then

    cecho("<gray>[Defences]: <coral>"..defence:title().." Gained!+\n")

    elseif (event == "svo lost def" and defence:title() ~= "Breath") then

    cecho("<gray>[Defences]: <cyan>"..defence:title().." Lost!-\n")

    end

    end


    function DoAffEcho()

    if doecho then

    if doecho == "GotAff" then

    echostring = table.concat(gotafftable)

    cecho("<gray>[Affliction]: <red>"..echostring:title().." Gained!+\n")

    gotafftable = { }

    doecho = nil

    elseif doecho == "LostAff" then

    echostring = table.concat(lostafftable)

    cecho("<gray>[Affliction]: <white>"..echostring:title().." Cured!-\n")

    lostafftable = { }

    doecho = nil

    end

    end

    end


    The first script is called from svo got aff, svo lost aff and svo updated aff. Second script is called from svo got def and svo lost def. The third and final script is called from svo before the prompt

    One of my main issues is that when afflictions/defences are gained/lost within a close time frame, the affs/defs in question are all bundled together like this: 

    [Affliction]: Paralysisproneentangled Gained!

    vs what I want to happen: 

    [Affliction]: Paralysis Gained!

    [Affliction]: Prone Gained!

    [Affliction]: Entangled Gained!


    Help pls?



  • AntoniusAntonius Member Posts: 3,838 @@ - Legendary Achaean
    You need to loop over your table of afflictions and do a separate echo for each, rather than using table.concat to join them into a single string that you echo once.
    Jovolo
  • TalrothTalroth Member Posts: 5
    edited April 18

    function DoAffEcho()


    if doecho then


    if doecho == "GotAff" then


    for k, v in pairs(gotafftable) do

    cecho("<gray>[Affliction]: <red>"..v:title().." Gained!+\n")

    end


    gotafftable = { }


    doecho = nil


    elseif doecho == "LostAff" then



    for k, v in pairs(lostafftable) do

    cecho("<gray>[Affliction]: <white>"..v:title().." Cured!-\n")

    end


    lostafftable = { }


    doecho = nil


    end


    end


    end


    @Jovolo  Maybe?
    Jovolo
  • JovoloJovolo EnglandMember Posts: 3,092 @@ - Legendary Achaean
    It's not a kvp table, but that was definitely along the right lines. I changed it to this: 

    function DoAffEcho()


    if doecho then

    if doecho == "GotAff" then

    tablesize = #gotafftable

    for i=1,tablesize do

    cecho("<gray>[Affliction]: <red>"..gotafftable[i]:title().." Gained!+\n")

    end

    gotafftable = { }

    doecho = nil

    elseif doecho == "LostAff" then

    tablesize = #lostafftable

    for i=1,tablesize do

    cecho("<gray>[Affliction]: <white>"..lostafftable[i]:title().." Cured!-\n")

    end

    lostafftable = { }

    doecho = nil

    end

    end

    end


    and it seems to work fine now :) thanks all

  • AntoniusAntonius Member Posts: 3,838 @@ - Legendary Achaean

    It's an indexed (ordered) table (you can tell because they're using table.insert to populate it), so should really be using ipairs as the iterator function. It's literally what it exists for. There's no guarantee of order with pairs (though in this particular case it doesn't really matter). I'm also not a fan of using k, v as the variables in loops unless I don't care at all about either value; I prefer to give them meaningful names so I know what the variable actually refers to without having to look at the line that starts the loop.

    Also, learn what a tab key is! Writing - and reading - code is much, much easier when it's not all starting at the same indentation on every line.

    Talroth
  • RyzethRyzeth Member Posts: 871 ✭✭✭✭✭ - Grand Achaean
    Antonius said:

    Also, learn what a tab key is! Writing - and reading - code is much, much easier when it's not all starting at the same indentation on every line.

    Forums removes tab indentation when you copy/paste it here.
    Jovolo
  • AntoniusAntonius Member Posts: 3,838 @@ - Legendary Achaean
    Ryzeth said:
    Antonius said:

    Also, learn what a tab key is! Writing - and reading - code is much, much easier when it's not all starting at the same indentation on every line.

    Forums removes tab indentation when you copy/paste it here.
    I've seen enough code from Achaeans to know that in 99% of cases that's not the reason.
    Jonathin
  • SobriquetSobriquet Member Posts: 1,243 @@ - Legendary Achaean
    Downloaded this for a new Char I've created, is there anything prio wise in need to change from default?
    image
  • KeneanungKeneanung Member Posts: 504 ✭✭✭✭ - Eminent
    I'm a bit late (though I said I always did it around the 15th), but I just released the testing version 30.1, which includes quite a lot of fixes exclusively by @Ahmet:
    - Pear is now a toggable defense and should be put up when you enter water (before any damage)
    - NDB shouldn't act strange if you are gemmed off plane or with laggy "qw" anymore
    - Phlegmatic inundiate now exclusively tracks the afflictions via gmcp
    - Autopause on dragonforming should now work with server side curing
    - Svof should now correctly respect inquisition when trying to cure hellsight
    - Svof should now correctly respect hypothermia when trying to cure freezing or shivering via tree (and remove it correctly from svo.treecurables as well)
    RomKyrraMathilda
  • RyzethRyzeth Member Posts: 871 ✭✭✭✭✭ - Grand Achaean
    Antonius said:
    Ryzeth said:
    Antonius said:

    Also, learn what a tab key is! Writing - and reading - code is much, much easier when it's not all starting at the same indentation on every line.

    Forums removes tab indentation when you copy/paste it here.
    I've seen enough code from Achaeans to know that in 99% of cases that's not the reason.
    Took me a moment to realise what you were saying... Sad, but true. Give people the benefit of the doubt :( Either no indenting, or they use spacebar indenting... Dunno what's more horrifying to look at honestly. Wundersys uses double spaces, too. :#
  • TalrothTalroth Member Posts: 5
    Is there a toggle for using queuing with Svof.

    I have quite bad latency so would prefer to queue my attacks with QUEUE ADD BAL etc, but queuing them seems to break the limb tracker (anti-illusion stuff?).

    Is there a workaround, or does anyone else experience similar? I might be way off and it could be something totally different causing the problem, but it seemed to work before I started queuing up the attacks.


  • AntoniusAntonius Member Posts: 3,838 @@ - Legendary Achaean
    Talroth said:
    Is there a toggle for using queuing with Svof.

    I have quite bad latency so would prefer to queue my attacks with QUEUE ADD BAL etc, but queuing them seems to break the limb tracker (anti-illusion stuff?).

    Is there a workaround, or does anyone else experience similar? I might be way off and it could be something totally different causing the problem, but it seemed to work before I started queuing up the attacks.



    I don't use svof's limb counter myself, for various reasons. However, this is an issue I've heard people complain about. Honestly, illusions that would actually affect Svof aren't really a thing any more, so you could probably just turn anti-illusion off and see if that solves the problem.

    Talroth
Sign In to Comment.