Coder Social home page Coder Social logo

automb's Introduction

autoMB

A windower 4 addon that helps with magic bursts. Well it really will more or less do them for you.
Will guess what spell type to use based on main/sub jobs, will update at job change. It is suggested that you double check this as you really may prefer something different than what it guesses.

Filters spells available based on the SC, then chooses from them based on order: Thunder > Ice > Wind > Fire > Water > Earth > Dark > Light
It can, optionally, account for weather and/or day effects, by default this is off.
If day or weather is on it will choose the spell benefited by the day/weather if available in the SC properties.

Will, optionally, change targets to the one the SC effect was most recently applied to. This can go horribly awry if you have multiple mobs being SC'd at once. It will not always work well in alliance settings, especially noticable in instanced content like Dynamis Divergance where lag seems to really impact things. By default this is off.


Commands:

automb or amb - With no arguments will toggle active/inactive state


Arguments:

  • on | off - Starts or stops the addon
  • help - will show help text
  • status | show - will show information on current settings
  • (c)ast - one of: spell helix ga ra ja light jutsu holy
  • (t)ier - will accept any value, no checking for learned spells or appropriate tiers implemented
  • range | rng - the max cast range you want, if not set to a number will set it to default of 22'
  • mp - will keep this much mp in reserve, if the spell to cast would drop you below this point it won't cast
  • (d)elay - how long after a skillchain effect is detected to start casting, if you happen to be casting too fast for the MB to proc
  • (double)burst | dbl - will attempt to double burst, this will not check to ensure a SC effect is still up, it just casts 2 spells back to back
  • doubleburstdelay | doubledelay | (dbld)elay - if you want some cushion between the 2 spells in a double burst, set negative will maybe help account for fast cast
  • stepdown | sd - stepdown spell tier for second spell of double burst (above 1) cycle modes:
    • Never - just like it sounds
    • Target Change - stepdown if there was a target change, you didn't have the burst target targeted already
    • Always - will stepdown if the first choice spell is on CD, so if you have T5 set and Thunder 5 should fire but is on CD it'll stepdown to Thunder 4
  • weather - will adjust spell to account for weather, super handy if you have a Sch around
  • day - will adjust spell to account for day
  • (tog)gle [all | elements | weather | spell]][on | off | toggle] - will toggle showing various information per skillchain detected and spell attempt
  • gearswap | gs - will toggle sending 'gs c bursting' and 'gs c notbursting' commands for gearswap
  • target | tgt - toggle auto target swapping for MBs

TODO:

  • -aja to tier V|VI elemental double nukes.
  • Dial in target changes, currently checked by claim IDs, BT, T but maybe should be done differently.
  • Blue magic handling, not that I know any blues that really bother with MBs anymore.
  • SMN, PUP, and BST pets if there is an outcry. I don't see it happening though.

automb's People

Contributors

ekrividus avatar enfarious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

automb's Issues

ninjutsu not bursting

getting an error on line 387 when i have it set to tier 3 of jutsu on ninja not sure if i messed something up or what

Jutsu mb getting a attempt to index field '?'

So, every time I try to use autoMB with Ninjutsu, I get a error on line 358

automb/automb.lua:358: attempt to index field '?' (a nil value)

Looks like it is not being able to resolve jutsu_tiers[tier].suffix for any spells

Tier 5 Double Nuke Settings

Kind of an odd behavior I'm experiencing when bursting Tier 5s. Relevant settings are:

Magic Burst Type: spell: Tier 5
Double Burst: on
Stepdown: 2 (always)

With these settings, it bursts a Tier 4 first, then a Tier 5 to follow. If I set the Tier to 6, it bursts a Tier 6, followed by a Tier 5 as expected.

Something goofy with the Tier 5 setting? Shouldn't it be casting a Tier 5, then a Tier 4 and not the other way around?

Looking forward to the -aja to Tier 5/6 double nukes!

QuadBurst and beyond?

Not an issue per-se, more of a suggestion.

Any chance for quad burst support akin to double burst? For those 3-step skillchains where 4 spells back-to-back would be super or heck even hexa burst for a 4-step for 6 spells back-to-back?

I realize a break in the chain wont stop the spells from going off or anything, but I would think the reward outweighs those risk with things like Sortie and Odyssey being what they are.

<3

MB self skillchains

Thanks for the great script.
I noticed that it doesn't MB skillchains that I close.
I think this could be a useful feature.
I will try to figure out how to update it.

Bug in Japanese environment

It's a game from 20 years ago, but it's been less than a year since I started, so I'm enjoying it.
Thanks for the great application to use with subaccounts.
There was a problem with spell judgment in the Japanese environment, and I tried to fix it.
I think many Japanese will be pleased.

res.spells:with('name', spell)


row:255
function low_mp(spell)
local sp = res.spells:with('en', spell)

row:271
function check_recast(spell_name)
local recasts = windower.ffxi.get_spell_recasts()
local spell = res.spells:with('en', spell_name)

*** row:522 and row:530 are still res.spells:with('name', spell).

Simplified

Is it possible to slim this down dramatically to just

If light skillchain, cast thunder 5

This is way more complex than I think it needs to be.

Doesn't seem to be working

Loaded it, configured the settings and performed light skillchains on Locus crabs. It seemed to detect every 4th or 5th skillchain, and when it did detect the skillchain it bursted with tier I spells instead of tier 5 spells.

image
image

Keep track of current MB target

Add tracking for current MB target so that if a new SC effect is registered on it we can dequeue existing MB casts and start new ones.
Maybe try to use this for detecting when SC effect is removed in other ways as well (like a non-SCing WS hitting the mob).

runtime error

happening on last version updated today:

autoMB: Lua runtime error: automb/automb.lua:271: attempt to call method 'witn' (a nil value)

Gearswaps does not work if autoMB cast automatically

autoMB senses the skill chain and starts chanting automatically, but gearswap does not respond.
When manually chanting magic, it does respond.
To be precise, Precast is not responding.

Does this mean that casting is sending a special packet?
Also, what is the best way to fix this?

Straight up does not work

I load up the addon, turn it on via "//amb on" and it does nothing when I SC. Using GEO, many skill chains and no MB, no casting, nothing.

Either I am missing something here or this addon is broken.

Blank spell: /ma " III" <t>

If I set tier 5 for Double Burt, it would work and do this:

/ma "Thunder V" <t>
/ma "Thunder IV" <t>

Then a new skillchain is appearing while Thunder V and IV is cooling down it will try to burst lower tier Thunder III as it should, but it does an error 95% of the time and shows a blank spell with this message so no burst is occurring:

/ma " III" <t>

Black magic casting only happens very occasionally

This may be a configuration issue, although based on the documentation I am not sure what it is. I have the following settings:

<?xml version="1.1" ?> <settings> <global> <cast_delay>0.25</cast_delay> <cast_range>22</cast_range> <cast_tier>1</cast_tier> <cast_type>spell</cast_type> <change_target>true</change_target> <check_day>false</check_day> <check_weather>false</check_weather> <disable_on_zone>false</disable_on_zone> <double_burst>false</double_burst> <double_burst_delay>1</double_burst_delay> <frequency>4</frequency> <gearswap>false</gearswap> <mp>100</mp> <show_bonus_elements>false</show_bonus_elements> <show_elements>false</show_elements> <show_skillchain>false</show_skillchain> <show_spell>false</show_spell> <step_down>0</step_down> <useAOE>false</useAOE> </global> <mycharacter> <cast_tier>4</cast_tier> </mycharacter> </settings>

and after loading and doing the //automb start it sometimes casts some tier 4 magic (thunder, fire, aero) when it sees a Light SC. Since this is an exp pt, skillchains occur very often. Only one mob is being fought at a time. Sometimes there are minutes on which the character just sits there, looking at the SCs coming one after another with full MP without casting at all. Then some other times suddenly it would just start casting when detecting a SC and try to MB. Again, this is very spotty and doesn't seem to follow a pattern.

I have Windower Logger installed so I can go back and find specific log events if needed in order to debug the issue.

(Edit: the enemies are being fought in one place so it's definitely not the range as everything is closer than 5').

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.