New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gearswap: On login, player.equipment.sub returns nil erroneously until GS is reloaded #1514

Open
Subadai opened this Issue Apr 4, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@Subadai

Subadai commented Apr 4, 2017

When I first log in, the line: add_to_chat(154,'EqSub: '..player.equipment.sub) in my PLD.lua produces the error "attempt to concatenate field 'sub' (a nil value)" until //gs reload, after which no error occurs and the line executes successfully. This happens even when my Ochain is equipped at login. Happens on dev or live.

@Subadai

This comment has been minimized.

Show comment
Hide comment
@Subadai

Subadai Apr 6, 2017

@Byrth tried again without loading a PLD.lua and gs eval print(player.equipment.sub) returned nil until gs reload was done. Rules out Mote-libs or anything in the lua.

Subadai commented Apr 6, 2017

@Byrth tried again without loading a PLD.lua and gs eval print(player.equipment.sub) returned nil until gs reload was done. Rules out Mote-libs or anything in the lua.

@Selindrile

This comment has been minimized.

Show comment
Hide comment
@Selindrile

Selindrile Oct 29, 2017

I've noticed something like this, it seems player.equipment.whatever doesn't seem to actively refresh with globals on player gear, only whenever gearswap sends an equip packet does it update, and it's not even always right about that, if the equip fails to say lack of dual wield, or if you change the equipment without using gearswap, it still thinks you have whatever the last gearswap-created equip packet sent was supposed to equip, at least that's my best from what I've observed.

Selindrile commented Oct 29, 2017

I've noticed something like this, it seems player.equipment.whatever doesn't seem to actively refresh with globals on player gear, only whenever gearswap sends an equip packet does it update, and it's not even always right about that, if the equip fails to say lack of dual wield, or if you change the equipment without using gearswap, it still thinks you have whatever the last gearswap-created equip packet sent was supposed to equip, at least that's my best from what I've observed.

@smd111

This comment has been minimized.

Show comment
Hide comment
@smd111

smd111 Oct 30, 2017

Contributor

its because on your firs login it takes time for ffxi to update all of your info but gearsswap is quiker
which is why i had to delay my gearswap start

Contributor

smd111 commented Oct 30, 2017

its because on your firs login it takes time for ffxi to update all of your info but gearsswap is quiker
which is why i had to delay my gearswap start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment