Is it possible to combine two arrays?
Essentially I have a TP set array for 4 sets and want to combine 2 DW sets over the current TP set in the array when a field (DW == true) is active. Is it possible to use set combine for two different arrays like this?
I have had no trouble doing this for single actions without an array (stack affinity gear over my MAB sets array), but I am not sure if this can be done for multiple indexes at once. At best, the issue I have had in the past is after combining them it just pulls the first set in the index regardless. Not sure how to get around that.
I could just have a toggle for DW low, mid (for non BLU jobs), and high and off (instead of just on/off and then toggled) that combined every TP set in a duplicated series of set combines, but that is a really lame way of doing this as it makes 2 sets into 8-12 sets.
EDIT: Current lua paste
Hello everyone,
my problem is that my gearswap just stops working, with no error message. In this time, while gearswap is still activated, i can't even use magic or abilities.
Before this happens, everything works totaly fine....and then, out of the blue, nothing. Sometimes it takes 20 mins then it can take like 1 hour.
I reinstalled windower, even refreshed all the lib folders.
Unload/reload doesn't work at all, i need restart whole ffxi to use gearswap again.... for some time .
Sorry if that problem has been asked before, but i could't find anything like this.
Best regards!
with pastbin you can post the file like the one for this url: https://pastebin.com/B9n3Vhn4
if you cant post links yet use this: Pastbin:B9n3Vhn4
Ty, here it is: pastebin.com/bRFVRQkH
But like I said before, it works fine until it stops without any errors/messages/etc, I have the same problem with rolltracker btw. And when it stops I cant do anything beside walking & autoattack until i unload gearswap.
My friends tested that lua and they said it works fine, so maybe its an other problem?
i just read through your code and it looks fine
do you have any issues with lag or constantly being disconnected?
--this could be your issue
what it your isp?
do you know if your isp does packet bursting?
--info: https://routerguide.net/tx-burst-on-...-packet-burst/
-- i cant help if this is your issue
is anybody else using the internet while you are playing?
does your router use Tx Burst,Frame Burst or Packet Burst?
-- try turning it off or on
Hey,
Nope I dont have problems with dc or lag, also no router issues.
Gearswap just stops working at some point and even i can restart it it wont do anything.
The only thing what helps is to restart ffxi and then it works for like 30 mins ....
you are going to have to report it to the Windower team here https://github.com/Windower/Lua/issues because i can not tell you what is wrong as it is not gearswaps fault or ffxi's fault as far as i can tell
Thx a lot, i'll send them a message, maybe they'll have an other idea!
The Velkk ambuscade removing my weapons has really forced me to ask about this bug I have been ignoring with my RUN GS.
If I lose my weapon from one of several abilities in game, it starts throwing errors and doesn't swap gear (unless manually toggled) until I reequip my weapon. Which I can't do after Saurian Slide hits me for some time. Suggestions?
Paste: RUN.lua
Line 1901 and 1984, likely. "nil" weapon when empty doesn't have a type.
Correct (0 doesn't work either), but adding "or player.equipment.main = nil", "or not player.equipment.main", or starting it with "if not player.equip.main or" all don't stop the error from being thrown. So I am unaware of the proper syntax to correct this :/
"Attempt to index field 'equip' (a nil value)"
to fix your issue change
toCode:if S{1,4,6,7,8,10,12}:contains(gearswap.res.items:with('en', player.equipment.main).skill) then --line 1901 if S{4,6,7,8,10,12}:contains(gearswap.res.items:with('en', player.equipment.main).skill) then -- line 1984
Code:-- line 1901 local weapon_skill = gearswap.res.items:with('en', player.equipment.main).skill if weapon_skill and S{1,4,6,7,8,10,12}:contains((weapon_skill) then -- line 1984 local weapon_skill = gearswap.res.items:with('en', player.equipment.main).skill if weapon_skill and S{4,6,7,8,10,12}:contains(weapon_skill) then
this should get rid of the nil error
Made the change, still get the attempt to index a nil value error:
Updated Paste