Appreciate the quick response. Will test tomorrow when I do salvage again and report back.
Appreciate the quick response. Will test tomorrow when I do salvage again and report back.
Worked. Thanks again
randomly in the middle of Delve my Gearswap stopped working.
error is:
gearswap:lua runtime error: gearswap/flow.lua:295:
gearswap has detected an error in the user function precast:
... files [mywindowerdirectory]/SAM.lua:281: attempt to fix index field '?' (a nil value)
http://pastebin.com/2JxKTauB - SAM GS file
http://pastebin.com/2L2Ht0uV - flow.lua
delve is a pain in the butt because it causes so many things to happen in a short time
so this could be the issue
the only things that could be the issue are
spell.type
world.day
spell.skillchain_a
or
check_ws_day[world.day]
but the only way to figure out what is causing the issue is to change
toCode:if spell.type == 'WeaponSkill' and (check_ws_day[world.day]:contains(spell.skillchain_a) or check_ws_day[world.day]:contains(spell.skillchain_b) or check_ws_day[world.day]:contains(spell.skillchain_c)) then equip (sets.WSDayBonus) end end end
but there is a chance that it will error when this is put into your codeCode:if spell.type == 'WeaponSkill' and (check_ws_day[ world.day]:contains( spell.skillchain_a) or check_ws_day[world.day]:contains(spell.skillchain_b) or check_ws_day[world.day]:contains(spell.skillchain_c)) then equip (sets.WSDayBonus) end end end
and if it is any of these its probably because of your client getting to many updates to fast
spell.type
world.day
spell.skillchain_a
but there is one more thing i want to ask what ws are you using??
and you can cut out the sets.WSDayBonus
i.e.
equip (sets.WSDayBonus)
by using
equip(head="Gavialis Helm")
Is there a way to launch a windower script txt file from within Gearswap? If so how?
that fixed it, thanks. I'm not sure why it was broken. I was working before, but then just randomly stopped. Even with unloading and reloading, restarting pol, and even turning on and off the computer. So strange. Thanks for the help!
I was getting the error with any WS btw. Even ones whose day didn't allign.
Anyone else here using Mote/Kinematics THF.lua?
I tried adding a Mug set, which works and equips fine but doesn't do any type of aftercast. Doing a //gs showswaps shows it equipping as precast but that's it. Kinda strange since all my other JA precast sets are working fine with precast and aftercast.
Here's what the code looks like for that JA. And referencing his THF.lua looks like this is correct. https://github.com/Kinematics/GearSw...master/THF.lua
Code:sets.precast.JA['Mug'] = { ammo="Jukukik Feather", head="Imp. Wing Hair. +1", neck="Moepapa Medal", ear1="Jupiter's Pearl", ear2="Pixie Earring", body="Plunderer's Vest +1", hands="Pill. Armlets +1", ring1="Ramuh Ring +1", ring2="Thundersoul Ring", back="Kayapa Cape", waist="Artful Belt", legs="Manibozho Brais", feet="Plun. Poulaines +1"}
can you reupload your code??
and check and see if this works
if it does it means that the interval between variables is just to fast for the way it wasCode:if spell.type == 'WeaponSkill' then if check_ws_day[world.day]:contains(spell.skillchain_a) or check_ws_day[world.day]:contains(spell.skillchain_b) or check_ws_day[world.day]:contains(spell.skillchain_c) then equip (sets.WSDayBonus) end end
also did you change
equip(sets.WSDayBonus)
to
equip(head="Gavialis Helm")
http://pastebin.com/qszMtLqK
This is interesting. It stopped working again. Even though I did a few Delves and a high tier with it working fine. Now the error is on line 283.
Attempt to index field '?' (a nil value)
but then as soon as it turned to light day, it started working again.
ok i found the issue replace you code accordingly with this
its actually because it was Lightningday when it should have been Lightningsday my badCode:check_ws_day = { Firesday=S{'Liquefaction','Fusion','Light'}, Earthsday=S{'Scission','Gravitation','Darkness'}, Watersday=S{'Reverberation','Distortion','Darkness'}, Windsday=S{'Detonation','Fragmentation','Light'}, Iceday=S{'Induration','Distortion','Darkness'}, Lightningsday=S{'Impaction','Fragmentation','Light'}, Lightsday=S{'Transfixion','Fusion','Light'}, Darksday=S{'Compression','Gravitation','Darkness'},} if spell.type == 'WeaponSkill' and check_ws_day[world.day]:contains(spell.skillchain_a) or check_ws_day[world.day]:contains(spell.skillchain_b) or check_ws_day[world.day]:contains(spell.skillchain_c) then equip (sets.WSDayBonus) end
I found another way to do it. The only real difference is that the WS elements table is already written in Mote-Mappings so it doesn't need to be added to the main lua.
And here's the check.Code:-- Elements for skillchain names skillchain_elements = {} skillchain_elements.Light = S{'Light','Fire','Wind','Lightning'} skillchain_elements.Darkness = S{'Dark','Ice','Earth','Water'} skillchain_elements.Fusion = S{'Light','Fire'} skillchain_elements.Fragmentation = S{'Wind','Lightning'} skillchain_elements.Distortion = S{'Ice','Water'} skillchain_elements.Gravitation = S{'Dark','Earth'} skillchain_elements.Transfixion = S{'Light'} skillchain_elements.Compression = S{'Dark'} skillchain_elements.Liquification = S{'Fire'} skillchain_elements.Induration = S{'Ice'} skillchain_elements.Detonation = S{'Wind'} skillchain_elements.Scission = S{'Earth'} skillchain_elements.Impaction = S{'Lightning'} skillchain_elements.Reverberation = S{'Water'}
Code:sets.Gavialis_Helm = {head="Gavialis Helm"} -- Run after the general precast() is done. function job_post_precast(spell, action, spellMap, eventArgs) if spell.type == 'WeaponSkill' and skillchain_elements[spell.skillchain_a]:contains(world.day_element) or skillchain_elements[spell.skillchain_b]:contains(world.day_element) or skillchain_elements[spell.skillchain_c]:contains(world.day_element) then equip(sets.Gavialis_Helm) end end
I have to admit you got me there. Thanks for explaining that to me.