Hello! I've been a GS user for a while, loving the program. However, my GEO lua are slightly out of date. I've tried my best to update, grabbing the newest version from github, then adding my settings to the files. However, now whenever I load GS I get console errors telling me there's problems in everything from flow.lua to Mote-SelfCommands.lua whenever I try to switch my offense/defense modes, etc.
I'm not sure what I'm doing wrong. So I've made a pastebin of both my geo.lua, my geo_gear.lua, and my console log when I try to use any of my mode swapping keys (offensemode, etc.) If you need me to pastebin my current working (but slightly out of date) lua, then I can, for comparison.
Any help is appreciated, because I have absolutely no idea where I'm going wrong. Thank you!
geo.lua: http://pastebin.com/MCWuZKNN
geo_gear.lua: http://pastebin.com/jBJFgVSB
Windower Console Log: http://pastebin.com/4wb24bKk
Ok Byrth, added even a fourth check, I managed to find what happens and I have to correct myself:
1) I'm left in my BP gear, not in my idle gear
2) pet_aftercast doesn't get called at all (none of the 3 messages pop up in my chat line, and no timer gets created since the timer creating function is called from the pet_aftercast)
So, for some reason, pet_aftercast doesn't get called.
Could it be a gearswap bug? Or is it a packet-loss issue and there's nothing we can do about it?
Edit:
LSmate with a completely different lua but with similar functions, noticed the problem too. Sometimes he's left in BP gear and no timer gets created. Probably the same issue with pet_aftercast not getting executed.
there is one caveat for that then if i understand it correctly local variables have a higher priority then global variables
so
buff = string.lower(buff) is a global variable
while the buff from the function is local there for it would need to be
local buff = string.lower(buff)
Well, I have numerous buff change rules, all buff names written in lowercase. resources are capitalized... but all my rules work. /shrug.
Problem solved by doing this
-- Na Set --
sets.Midcast.Na = set_combine(sets.Midcast.Haste,{main="Yagrush",leg s="Orsn. Pantaln. +2",hands="Orison Mitts +2",
back="Mending Cape"})
thanks dlsmd, Martel for help ^^
Mote, if you happen to still browse this thread, I'm having a few issues with set conventions.
I've noticed that sets.midcast['Dark Magic'] takes precedence over sets.midcast.Absorb. Placement doesn't matter inside my lua. sets.midcast[spell.type] is always used over the spellMap variant.
The only way I can get absorbs 'midcast' to work is to make sets for all of them. Absorb-TP, etc.
Anyone else -
I'm also having issues with Fast Cast. Can anyone else using Mote's includes confirm/deny this? showswaps and debugmode confirm sets.precast.FC is working, but the bar goes all the way to 100% before spells go off. Randomly I'll see a spell go off around 60% like it should.
Thanks
edit: Does anyone know if there's a way to time how long casting a spell takes? I'm wondering if it's actually working, but the graphical progress bar is messing up.
I'm testing with endark and dread spikes. Both relatively long casting spells.
Local variables are checked before global variables, giving them precedence. In that function, buff is a parameter, though, and parameters are treated like local variables (they may be local variables after all -- I'm not really sure).
Code:var = 109 function stuff (var) var = var * 2 print(var) endThe global variable var remains unaffected.Code:stuff(4) -- 8 print(var) -- 108
Couldnt you include a rule like
if spell.name:startswith('Absorb-') then
instead of making a set for all of them?
where are the mythic auto-weaponskill; 'if AM3 down hold tp and use X at 3k, if AM3 up, use tp at 1k with this ws'; Gearswap files at?
gawd we need our own sub forum for gearswap officially now don't you guys think? how can you find anything about gearswap like this
Indeed I could. I'm pointing out a possible error, be it with my file, or Mote's includes; in regards to spellMap. (He would probably know) i.e. https://github.com/Kinematics/Mote-l...e-Mappings.lua
It's basically a lookup table with key:value pairs. It allows you to create sets like sets.midcast.Cure for all single target cure spells. The same can be said for Absorbs.
My issue is with precedence. Usually a more specific set will be selected over a more general set. For example, sets.midcast['Absorb-STR'] should take precedence over sets.midcast.Absorb over sets.midcast['Dark Magic'] and this isn't working in practice.
Yea i got that part that stuff isnt working. I had just read your post as "Well I guess I am going to have to make a set for each spell." Like that was what you were going to do as a solution and I figured my idea would have been the better option. Guess I misintirpreted (sp) your meaning. His files are way to crazy for me.
@Jackx
Well, you would think if we maintained a real gearswap forum it would be at the windower forum, no? But hardly anyone posts there it seems when I check it. I have been kinda surprised over the years that this has been pretty much the go to place for windower/gearswap problems/discussions and not there.
ok so im still having the same problem apart form ive fixed the missing init.txt file so im not getting that error anymore.
I thought that the other errro i was gettign may have been due to a windower update or sumit, so i delted the updated folder and made it update again but this hasn't fixed the problems. im still getting error messages when gearswap is loaded
Gearswap: lua runtime error: gearswap/helper_function.lua:680: "spell" is not defined for number
it error im getting this morning when ive logged on.
this is really bothering me i thought it may off been one of those things that u leave over night and it fixes it self but seems that is not the case this time, any help is appreciated im kinda hopeless with this stuff
You're on -dev. The libs were updated in a way that broke some of the stuff I was doing. Try re-running launcher. Arcon said he reverted the changes a few hours ago.
ok ill try now thx for the replies, when u say re-running the launcher do u mean re-installing or Starting it up again because not so long ago i logged out and deleted the updated folder so that some files were forced to update. Im gonna try restarting now hope it works thx again, If it doesnt work by restarting the launcher would it be a good idea for me to use the normal Version instead of the def version?
I don't know what the difference is but i re,ebr a while bk i coulnd get teh normal version to work and that why im using the dev version
Yeah, normal version and dev version should both work. Normal version currently doesn't have that problem
OK seems im still getting the error messages with the def version im in the process of setting up the normal version now hopefully this works
Ok thanks alot Byrth the Normal Version seems to have laded up fine and no Erros when loading my brd lua. So looking good ty for the help once again