fix(cart): items added to the cart lose refine and cards
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- perl
- Domain
- networking
Research direction
The bad field list is the one for packet 0B45 (item added to cart), which has upgrade twice; compare it with the 0B44 entry, which is correct, and fix the duplicate. Start from the packet definitions where the cart-add structures are declared. Done when a cart item added with refine and cards keeps its name, refine and cards in the 'Cart Item Added' message and cart get finds it.
Written by the indexing model from the issue text.
Description
Openkore version git
OpenKore master 50a10b01b
XKore Mode
XKore 0
RO Server Name
Local rAthena, using the kRO_RagexeRE_2021_11_03 server type
Link to RO server
rAthena, running locally
Result
The 0B45 (item added to cart) field list has upgrade twice, so every field after broken is shifted: refine gets the grade, cards get the option bytes and options get the refine. Items added to the cart lose their refine and cards, gain a fake option, and their name no longer matches the inventory, so cart get <name> and other name lookups fail until the server resends the cart (relog).
The layout matches 0B44, whose field list is right (packets_struct.hpp, RODecomp). It came with #3598.
Relevant Log Output
Names translated from the lab's kr/pt tables:
Item added to inventory: +7 Knife [Poring Card] [3] (1) x 1 - Weapon
Cart Item Added: Knife [3] [1 Option] (0) x 1 - Weapon
Cart Item Added: Cotton Shirt [1 Option] (1) x 1 - Armor <- was +4 Cotton Shirt
cart get "+7 Knife [Poring Card] [3]" 1
Cart item '+7 Knife [Poring Card] [3]' does not exist.
Expected Result
The cart item keeps its refine, cards and name, as after a relog.
How to Reproduce
- On a server type that sends
0B45, get a refined or carded item (@item2 1201 1 1 7 0 4001 0 0 0). - Run
cart add <index>: the message shows no refine and no card, plus[1 Option]. - Run
cart get "<inventory name>" 1: the item is not found.
- Dominant language
- Perl
- Stars
- 1.5k
- Forks
- 1.2k
- Avg merge
- 13h 13m
- Merged PRs (30d)
- 130
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenKore/openkore
-
fix(equip): uneq all leaves one of two identical items equippedPossibly taken @baphomello claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
fix(vending): other players' shop list 0B3D is misreadPossibly taken @baphomello claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Will WX's interface get a dark mode?Possibly taken @baphomello claimed this 10 days ago. Openfeature request
Difficulty 5/5 Over a week Newbie friendliness 15/100
OpenKore/openkore#4316 · 4 comments ·
Maintainers usually reply within 1 day
-
Missing portalsOpenfeature request
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 20/100
Maintainers usually reply within 1 day
All issues in OpenKore/openkore
Similar issues
-
On macOS, lcovutil.pm loads itself twice and warns "Subroutine ... redefined" for each subroutineOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
linux-test-project/lcov#574 ·
-
bug needs-assignee size/L
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
EffortlessMetrics/perl-lsp#10241 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
inverse-inc/packetfence#9741 ·
Maintainers usually reply within 1 day
-
Package Update Update Bot
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
priv-kweihmann/meta-sca#13305 ·
-
[BUG] Inverted check in Images::process_image_crop prevents fallback to full-size coordinatesPossibly taken @subhwastaken claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openfoodfacts/openfoodfacts-server#15511 ·
Maintainers usually reply within 1 day