Finally Releasing This Addon; GearInfo

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » Windower » General » Finally releasing this addon; GearInfo
Finally releasing this addon; GearInfo
First Page 2 ... 12 13 14
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-03-31 16:47:03
Link | Citer | R
 


I created this addon over the last couple years with a few friends using it and testing it for me. I no longer play the game but wish to release it to the public.

I'm still adding to the wiki, But please read up on it there before asking questions. I'm probably not going to be checking this forum post so if you have issues etc post them on the GitHub.
There is enough information there to get people started.
I welcome any well constructed critiques and will not reply to trolls.

I hope you enjoy this addon. I'm not the best programmer and im sure people will have a lot of input.

Thanks for reading.

edit:
a quick tl;dr;

The addon tracks your equipped gear in real time, including their augments AND buffs like haste to give you on screen values.
Then if you use it with Gearswap, (read the wiki) you can utilise the information calculated by GI to make gearswap auto change gear based on current haste values, DW equipped, etc. It even auto detects when your moving (and not engaged) and auto equips movement speed peices. This is all done in real time.
This is its intended utility.

some pics;


example pics of it working with my gearswap files and my gearswaps on screen displays:



Useful Links

  • Downloads here - latest: '1.7.2.8' (for notifications of updates i believe you can create a GitHub account and use the "watch" button on the repo.)



  • Repo itself - use it to grab individual files if you need them or for new commits, or post issues there.





Things planned with no set date:

  • Add tracking for set bonuses. (This will be extremely time intensive, I haven't though of a logical way to do it yet specially with over 1000 items to account for.) added in 'v1.6.6.1'


  • Add tracking for other kinds of buffs apart from haste. (Accuracy, Attack, Cor buffs, etc)


  • Make a more detailed wiki for GearInfo + Gearswap use together


  • Create a proper wiki for my Gearswap files on a per job basis (or create blank ones.)


  • Maybe, (if i can be bothered), add tracking for pet stats from gear.



The above is in no set order, and I'll only do if i have time. Current priority is bug fixing and helping people understand its use and how to use it.
I really Appreciate everyone's feedback, its been extremely positive and useful. Only having myself and 2 others to test makes finding bugs difficult. With an army of players they have been fast incoming and its great (although i did release a massive load of code change on release. It was bug free for the most part before that lol).

I'm glad everyone is finding it useful. I'll keep working on this for the foreseeable future even though I no longer play.
I don't know if shameless plugs about donations is taboo in this community but if this was one of your though's then you can find a link on the home page of the wiki (however this is not why I'm working on the addon). This project is first and foremost fun for me, if it stops being fun, support will prob die with it ^^.

and finally this is going to be odd but here is a link to my LinkedIn profile. If you are on LinkedIn and wouldnt mind endorsing my codding skills I would highly appreciate it as I am looking for work in the Programming department. Thanks.
[+]
 Shiva.Berzerk
Offline
Serveur: Shiva
Game: FFXI
user: Berzerk06
Posts: 357
By Shiva.Berzerk 2018-03-31 16:58:49
Link | Citer | R
 
Looks very cool, will try it out soon. Thank you for taking the time to make as well as sharing with us!
 Bahamut.Dannyl
Offline
Serveur: Bahamut
Game: FFXI
user: dannyl
Posts: 1550
By Bahamut.Dannyl 2018-03-31 17:04:20
Link | Citer | R
 
Quote:
parse - Will parse all of your gear in your inventories (including MH) to file.

if this is what I think it is then, i love you
 Asura.Cair
VIP
Offline
Serveur: Asura
Game: FFXI
user: Minjo
Posts: 246
By Asura.Cair 2018-03-31 17:11:27
Link | Citer | R
 
Just some constructive feedback. I didn't look at everything, though.

It's entirely possible Lua optimizes this under the hood (probably not), but for example, every time you call check_gear_stp(item), you call item:lower() several times, and you're converting the same string to lowercase again and again to match your result. You also do this with dual wield checking.

In the same file, there a bunch of really really long else chains that simply assign a value based on a string. This would probably be more efficient as lookup tables for values, which would also make adding and changing values much easier.

Overall, the performance hit is probably minor on a single pass, but this kind of thing has the potential to blow up if you're checking a lot of items in a short time.

Cool concept though! Item parsing is hell :)
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-03-31 17:16:53
Link | Citer | R
 
Asura.Cair said: »
Just some constructive feedback. I didn't look at everything, though.

It's entirely possible Lua optimizes this under the hood (probably not), but for example, every time you call check_gear_stp(item), you call item:lower() several times, and you're converting the same string to lowercase again and again to match your result. You also do this with dual wield checking.

In the same file, there a bunch of really really long else chains that simply assign a value based on a string. This would probably be more efficient as lookup tables for values, which would also make adding and changing values much easier.

Overall, the performance hit is probably minor on a single pass, but this kind of thing has the potential to blow up if you're checking a lot of items in a short time.

Cool concept though! Item parsing is hell :)


This is one of the reasons i wanted to make the addon public, so that people with good codding practices and knowledge could work on it too, fork the project or just give feedback. I welcome the feedback thankyou.
 Asura.Cair
VIP
Offline
Serveur: Asura
Game: FFXI
user: Minjo
Posts: 246
By Asura.Cair 2018-03-31 17:23:54
Link | Citer | R
 
I was trying to type examples but I fatfingered submit.


Code
--Instead of 
if x:lower() == a then

elseif x:lower() == b then

end

--you can do

local xl = x:lower()

if xl == a then

elseif xl == b then

end


But if you have a really long chain or just need to assign vals based on a string, it will probably end up better if you do something like:

Code

--Table outside the function scope

local stp_vals = {
 ['item1'] = 2,
 ['item2'] = 0,
}

function()
  local xl = x:lower()

  -- Bit hacky, if the item isn't in the table
  -- you get 0, otherwise whatever the lookup was

  local stp = stp_vals[xl] or 0
 
end



Edit: In general, an if-else chain is going to be faster than a table lookup unless it's incredibly lengthy and the typical case will pass through a considerable amount of predicates (eg, it isn't likely that the condition will be true), but it still comes at the cost of readability and edit-ability, imo.
 Asura.Darian
Offline
Serveur: Asura
Game: FFXI
Posts: 180
By Asura.Darian 2018-03-31 17:31:44
Link | Citer | R
 
Rrally cool addon. Keeps me out of spreadsheets. Does it do anything for ws set tp return?
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-03-31 17:35:08
Link | Citer | R
 
Asura.Darian said: »
Rrally cool addon. Keeps me out of spreadsheets. Does it do anything for ws set tp return?

if i understand your question correctly yes. you can equip your ws set, use the function //gi save wstp , and it will store the tp return for that ws, then u switch ur gear to your mele set and you will see how many hits you need to hit 1000tp. this apllies to everything from ranged, Duel wilding, single wielding wtc, it even gives values for zanshin if your on SAM

The wiki has all the information regarding this and more. go check it out. ^^
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-03-31 17:45:52
Link | Citer | R
 

thanks for the tip. ill look into it. but for now it works really well and i dont have the time at home to rewrite major chunks of code. parenthood is kinda hectic and i only just broke my addiction to this game last year lol. so maybe big revamps will be for future versions or for someone to fork / update it themselves and submit. but i do appreciate the time you took to explain the concept, thanks.
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-02 04:41:06
Link | Citer | R
 

@Asura.Cair
I took your tips and used them, I'm currently working on optimising the way GearInfo parses the "description" of items from the resources. So i created a stand alone version of it called Exporter on my GitHub. Its way more powerful then the one in GearInfo and i think the code is also a lot tidier thanks to your tips. Will incorporate the code to GearInfo soon once I've finished it and I'm satisfied with it.

The addon does need some polish, especially like you said with the string:lower() repetition. So ill work on optimising that when I have time. Kids are off school at the moment so time is none existent lol but i will get round to it. I'm hopping some of my friends that have been using it since day one will come post and leave some of their personal thoughts on the addon. Their testing has been invaluable to find bugs, especially with the buff parsing in places like salvage and Omen that used to cause crazy errors.

Anyway any more feedback from anyone would be super appreciated. i will also be adding more to the Gearswap section of the GearInfo wiki soon.
 Bismarck.Cloudstrafie
Offline
Serveur: Bismarck
Game: FFXI
user: cloud7886
Posts: 148
By Bismarck.Cloudstrafie 2018-04-02 22:58:04
Link | Citer | R
 
Is there any way to reflect spells? IE brd songs and cor rolls?,Currently testing this out for the most part its awesome as hell thank you very much, But when i add bard/cor buffs its not showing the STP or the RACC, But it does show the Magic haste from Honor/victory march
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 04:38:51
Link | Citer | R
 
Bismarck.Cloudstrafie said: »
Is there any way to reflect spells? IE brd songs and cor rolls?,Currently testing this out for the most part its awesome as hell thank you very much, But when i add bard/cor buffs its not showing the STP or the RACC, But it does show the Magic haste from Honor/victory march

Cor rolls is going to be a *** for tracking, but i will be giving it it a whirl eventually, i just need time. indeed right now it only tracks pretty much all sources of haste (except food if there are any) and once i revamp some more of the core code a lot more buffs and specific stats like attack etc will be tracked. Right now the Accuracy calculator is buggy and causes a massive hit to the game system and causes lag, but i haven't figured out why. I recommend just ignoring that one for now.

just a note on the buff tracker for the haste values. it does make some assumptions if the buffs potency is affected by the casters skill. like the potency of haste bubble from geo is assumed. while bard buffs are calculated by the bonus you tell the addon the bard has, it still assumes the bard has capped skill (it is 2018 after all, if your not capped then "git gud" i guess lol). it also tracks "the buff" slow, i specify say buff due to the fact i havnt coded a way to track monsters using abilities / spells that might include slow or slow II.

a lot of the reasons above is why i added a manual way for you to add some of these values, like more Store TP you know you are getting from buffs or food etc. You can use the command //gi stp +##.

edit:
also thank you very much for the kind words, im glad your enjoying it and getting use out of it. You should defo try it with a gearswap lua. look at the wiki for a basic explanation of how to set it up (it will be more in depth eventually) i do have several already written luas that are good to go and work with Gi.
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 07:31:39
Link | Citer | R
 
pushed version '1.6.3.0' to merge string parsing code from Exporter and disabled Accuracy parsing due to code change and the fact it was inaccurate and caused stability issues.

get it here.

once loaded use command //gi parse to refresh your file.
 Bismarck.Norminator
Offline
Serveur: Bismarck
Game: FFXI
user: Hares
Posts: 39
By Bismarck.Norminator 2018-04-03 10:29:50
Link | Citer | R
 
Hmmm just tried it and it doesnt seen to work for War, I always get the error :
GearInfo/GearInfo.lua:655 attempt to compare number with Nil

Its seen to try to calculated DW when I don't have any, current job is War/Sam.
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 10:58:41
Link | Citer | R
 
Bismarck.Norminator said: »
Hmmm just tried it and it doesnt seen to work for War, I always get the error :
GearInfo/GearInfo.lua:655 attempt to compare number with Nil

Its seen to try to calculated DW when I don't have any, current job is War/Sam.

which Version of GearInfo?

edit nevermind, yourt using latest version, i found the issue, and will fix it asap, im assumin you have a strap equipped. gona fix it asap

to clarify, in the resources straps are classed as weapons but do not have a base damage value. due to the new way i parsed the strings etc, i no longer add a value of 0 to items that have no damage, and so the code failed the check.

edit 2,
Fixed gona push new update with the other stuff ive been working on today.

edit 3
update pushed here . Update might need you to run a //gi parse to accomadate changes

Really sorry for the bug. thanks for posting it.
[+]
 Valefor.Yandaime
Offline
Serveur: Valefor
Game: FFXI
user: Yandaime
Posts: 782
By Valefor.Yandaime 2018-04-03 11:29:01
Link | Citer | R
 
This sounds cool as hell, definitely wanna play around with this
 Bahamut.Neb
Offline
Serveur: Bahamut
Game: FFXI
user: Neb
Posts: 189
By Bahamut.Neb 2018-04-03 13:11:41
Link | Citer | R
 
Do I really want to spend a month redoing my lua's is it worth it people who have tested and used this?
 Leviathan.Comeatmebro
Offline
Serveur: Leviathan
Game: FFXI
user: Rairin
Posts: 6052
By Leviathan.Comeatmebro 2018-04-03 13:19:05
Link | Citer | R
 
Bahamut.Neb said: »
Do I really want to spend a month redoing my lua's is it worth it people who have tested and used this?
This shouldn't result in you redoing your luas, it is information that is widely available and easily calculated. The job guides already factor this sort of information, it's not changing perception of what sets are best or anything.

It's just a neat tool for people who like to visualize things, not really useful for anyone who knows what they're doing.
[+]
 Lakshmi.Buukki
Offline
Serveur: Lakshmi
Game: FFXI
By Lakshmi.Buukki 2018-04-03 13:33:00
Link | Citer | R
 
Don't use GS, but if for nothing else but the on-screen "DW needed: values as Ninja, it's super useful. Shows your /checkparam and tp/hit as well, which is quite helpful. Much thanks.
Offline
By Kilobyte 2018-04-03 13:44:53
Link | Citer | R
 
Is there a possibility to display DT/PDT/MDT values?
 Asura.Inuyushi
Offline
Serveur: Asura
Game: FFXI
user: Inuyushi
Posts: 196
By Asura.Inuyushi 2018-04-03 13:54:15
Link | Citer | R
 
Kilobyte said: »
Is there a possibility to display DT/PDT/MDT values?

This would be cool as well. I concur.
 Valefor.Yandaime
Offline
Serveur: Valefor
Game: FFXI
user: Yandaime
Posts: 782
By Valefor.Yandaime 2018-04-03 14:02:49
Link | Citer | R
 
Lakshmi.Buukki said: »
Don't use GS.

But... why? It’s sooooo gooooood
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 14:03:23
Link | Citer | R
 
Leviathan.Comeatmebro said: »
Bahamut.Neb said: »
Do I really want to spend a month redoing my lua's is it worth it people who have tested and used this?
This shouldn't result in you redoing your luas, it is information that is widely available and easily calculated. The job guides already factor this sort of information, it's not changing perception of what sets are best or anything.

It's just a neat tool for people who like to visualize things, not really useful for anyone who knows what they're doing.

not to claim your wrong but this addon will help you automaticly change sets sets bassed on buffs you currently have. The luas i created have excessive sets based on things like how much DW u need for max attack speed. you can also use it on any other job that doesnt DW to help you generate sets bassed on how much haste you have. by this i mean in situations where all sources of haste are capped, i.e. your ja haste and magic haste, u can actually drop haste from gear because of the overall cap.
I've yet to see any freely available GS luas on any forum track buffs automatically as efficiently as GearInfo does. and to take this further most GS files require you to use toggles to switch your sets for the "correct situation". i created GI to say F*** that to extra toggles.

here are some example of sets constructed for a lua i made for a friend recently that takes many of these things into concideration:
this is from a dnc lua. Notice there are sets define for if u change from DW to single etc. and this is auto updated by GI too.
GI will also auto detect if your moving and tell gearswap to equip move speed gear (usefull if u dont speed hack) and u can auto equip based on situations like when not engaged. I mean maybe someone has written a lua that can do all these things, but ive yet to find it.
Dont get me wrong im not trying to force anyone to try it with my GS luas but im extremely certain anyone who does is gona go "holy ***-a-moly".

ilvl = accuracy tears
dt = damage taken down sets
DW:#~# = sets based on how much DW u need to hit max attack speed
SD = saber dance

 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 14:04:51
Link | Citer | R
 
Asura.Inuyushi said: »
Kilobyte said: »
Is there a possibility to display DT/PDT/MDT values?

This would be cool as well. I concur.

i can very easily add this as the string parsing updates i added just today will allows me to just plug a stat in and it will pull the numbers from the gear. ill look at adding it for you guys with the option to display or not.
[+]
Offline
By Kilobyte 2018-04-03 14:23:29
Link | Citer | R
 
Quote:
i can very easily add this as the string parsing updates i added just today will allows me to just plug a stat in and it will pull the numbers from the gear. ill look at adding it for you guys with the option to display or not.

Looking forward to it! Thanks!
 Lakshmi.Buukki
Offline
Serveur: Lakshmi
Game: FFXI
By Lakshmi.Buukki 2018-04-03 14:45:02
Link | Citer | R
 
Valefor.Yandaime said: »
Lakshmi.Buukki said: »
Don't use GS.

But... why? It’s sooooo gooooood


Don't know how to, so just stuck with gear sets.
 Asura.Inuyushi
Offline
Serveur: Asura
Game: FFXI
user: Inuyushi
Posts: 196
By Asura.Inuyushi 2018-04-03 14:48:25
Link | Citer | R
 
I've been reading through this off and on all day and I'm just curious on your last post about GI feeding into to Gearswap. I too use Kinematics and actually have modified it quite extensively to do things such as check if I'm asleep or not, check my hp/mp, etc., etc. So really your stuff isn't that complicated when you break it down. It's just a ton of repetition of sets. Which is amazing, don't let me minimize that, but nothing hard.

What I'm curious is to get GI to talk with Kinematics, all I should have is the "function gearinfo(cmdParams, eventArgs)" correct? With this in, I can then do things like "sets.engaged.DW['Ilvl~124+']['DW: 28-30']['SD']['AM3']" and Kinematics gearswap will equip the correct set based upon GI info? Does GI really read the level of the target?

Thanks!
 Leviathan.Kingkitt
Offline
Serveur: Leviathan
Game: FFXI
user: kingkitt
Posts: 518
By Leviathan.Kingkitt 2018-04-03 14:52:47
Link | Citer | R
 
Lakshmi.Buukki said: »
Valefor.Yandaime said: »
Lakshmi.Buukki said: »
Don't use GS.

But... why? It’s sooooo gooooood


Don't know how to, so just stuck with gear sets.

Should look into ashita, i found xml's to be much cleaner and easier to work with than using luas for gearswap and what not.
 Odin.Ewellina
Offline
Serveur: Odin
Game: FFXI
user: colway
Posts: 200
By Odin.Ewellina 2018-04-03 15:01:50
Link | Citer | R
 
Asura.Inuyushi said: »
I've been reading through this off and on all day and I'm just curious on your last post about GI feeding into to Gearswap. I too use Kinematics and actually have modified it quite extensively to do things such as check if I'm asleep or not, check my hp/mp, etc., etc. So really your stuff isn't that complicated when you break it down. It's just a ton of repetition of sets. Which is amazing, don't let me minimize that, but nothing hard.

What I'm curious is to get GI to talk with Kinematics, all I should have is the "function gearinfo(cmdParams, eventArgs)" correct? With this in, I can then do things like "sets.engaged.DW['Ilvl~124+']['DW: 28-30']['SD']['AM3']" and Kinematics gearswap will equip the correct set based upon GI info? Does GI really read the level of the target?

Thanks!

it doesnt read ilvl of the mobs no, the ilvl thing is just the naming convention i use for accuracy tears. people might use low medium high instead. i just prefered doin it by ilvl content. which most my friends who use it say it makes more sence to them so i stuck with it.

Also in terms of making GS respond to the values from GI, ud need a bit more code then what u suggest. but in principle yes.
 Asura.Inuyushi
Offline
Serveur: Asura
Game: FFXI
user: Inuyushi
Posts: 196
By Asura.Inuyushi 2018-04-03 15:06:08
Link | Citer | R
 
Just relogged in and thought you should know that if loading GI at the login screen, it fails to load:

GearInfo: Lua runtime error: gearinfo/Statics.lua:4: attempt to index global 'player' (a nil value). I don't know the fix, but just thought you should know incase this goes to global windower.
First Page 2 ... 12 13 14