Skip to content
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

Items with - and + are not being pulled out of bags #2234

Open
wants to merge 1,358 commits into
base: dev
Choose a base branch
from

Conversation

mohgeroth
Copy link

@mohgeroth mohgeroth commented Oct 4, 2022

This pull request is specifically for a change to one file for Itemizer.

Looks like any item with a hyphen (-) or plus sign (+) is not being pulled out of storage by this lua when these items are called via keybinds, macros, or commands.

The imatch function uses gsub and in lua 5.1 this requires these special characters to be preceded by an escape character, %. I've added two lines to replace these characters with the appropriate text to find them on lookup. I did not see any items or foods with other irregular characters that need to be replaced and this only affects cases when the /item command it used via macro, command, or keybind.

I'm not the most familiar with the string and table libraries of windower so there may be a better way to do this but I'm hoping this at least highlights the issue and provides a solution so someone may improve upon it.

Also, was I right to do a pull request to dev or should I merge this into a different branch first? I've never submitted to this project before and will happily resubmit to another branch if there is a different process in place.

RubenatorX and others added 30 commits November 11, 2021 08:48
Use convenient iterator methods.
PR feedback.
1) Add support for Exemplar Points
2) Partial rework of packets to both utilize the packets library, and to take advantage of last_incoming when it is first loaded
3) Partial rework of Key Item detection for Dynamis
Swap the order of unpack's arguments.
Update Pointwatch.lua -- Exemplar Points
Update Mount Roulette to 3.1.0
Fix for Accolades (Unity points)
[fields.lua] Fix for Accolades
z16 and others added 29 commits July 9, 2022 02:48
Added Current TVR Mission.
Correct TVR `_junk` field.
Added items to slips libs for the 10 July, 2022 FFXI Update.
[Slips lib] Update for July 2022
Adding items to slips from the august 10 update
[slips lib] August 10, 2022 FFXI Update
Song name released via ffxi official YouTube channel video
Update EmpyPopTracker to 2.7.0
Strings isn't required
Remove strings method from libs/dialog
Added definition for which bag the linkshell is being equipped from.
Update fields.lua: Update 0x0E0 (Linkshell Equip)
Slot is a better name but we dont want to break existing code that relies on the name. This could be revisited later
The August 2022 update to the game added 4 new fields to the currencies menu. This update reflects that.
Will need double checking that SE didn't screw up and for the Slip Item ID to be added.
Looks like any item with a hyphen (-) or plus sign (+) is not being pulled out of storage by this lua when these items are called via keybinds, macros, or commands.

The imatch function uses gsub and in lua 5.1 this requires these special characters to be preceded by an escape character, %.  I've added two lines to replace these characters with the appropriate text to find them on lookup.

I'm not the most familiar with the string and table libraries of windower so there may be a better way to do this but I'm hoping this at least highlights the issue and provides a solution so someone may improve upon it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.