fix(vending): other players' shop list 0B3D is misread
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- perl
- Domain
- networking
Research direction
Start with vender_items_list, which reads the shop list with the 0800 layout, and the laRO layout override that already handles this packet. Compare the 64-byte 0B3D record (refine and grade at the end) against the linked packets_struct.hpp and RODecomp references. Run a parser harness on a 0B3D capture to confirm the item fields. Done means every item in the sample shop parses with correct price and amount, and the ServerType0, bRO, iRO and twRO layouts no longer trip the unique Actor ID assertion.
Written by the indexing model from the issue text.
Description
Openkore version git
OpenKore master 19ef338f539f588c54c5652b72bc6eaae6af298e
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
Since RE 2020-07-23, other players' shop lists come as 0B3D, whose 64-byte record ends with refine and grade (packets_struct.hpp, RODecomp). vender_items_list reads it with the server type's 0800 layout instead, so only the first item is right. The rest are garbage and cannot be bought with vender.
Only laRO overrides the layout. With the ServerType0, bRO, iRO and twRO layouts, a parser harness dies with Assertion (Actor ID in ActorList must be unique) failed!.
Relevant Log Output
Shop with Red Potion x10, Orange Potion x3 and a +7 Knife [Poring Card]; names translated from the lab's kr/pt tables:
vender 0
0 Red Potion 100z 10
1 DAMAGED Unknown #128512 76,800z 768
2 +1 Unknown #78710016 327,680,000z 0
3 Unknown 1,792z 0
Expected Result
The three items, with their prices and amounts, and all of them buyable.
How to Reproduce
- On a server type that sends
0B3D, open a shop with two or more items on another character. - Run
vl, thenvender 0on the bot: only the first item is right. - Try to buy any other item with
vender 0 <item> 1.
- 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(cart): items added to the cart lose refine and cardsPossibly taken @baphomello claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/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