sakkaku-dev / nethack-web

NetHack for the web
https://sakkaku-dev.github.io/nethack-web/
4 stars 1 forks source link

Cannot select items after the 52th item in a container. #88

Closed d-m-bailey closed 1 year ago

d-m-bailey commented 1 year ago

The first 26 items in a container are prefixed with a-z. The next 26 items are prefixed with A-Z. After that 0-9 are used as prefixes, but are not selectable. Selecting another item after attempting to select 0-9 results in a count for the item.

full_container
myin142 commented 1 year ago

Do you know how the other ports are solving this? It's a bit difficult to reproduce..

d-m-bailey commented 1 year ago

nethack v3.7 only shows a page at a time and re-letters everything on each page when showing container inventory. I think I remember another gui port that didn't show letters for items after the 52nd one. You could only choose those with the mouse (or other menu short cut keys like ., %, etc.).

d-m-bailey commented 1 year ago

It's kind of tedious, but you can rename individual items of stacks. For example, use a pickaxe to split boulders into rocks, pick up one at a time, give it a unique name, stuff it in a container, repeat.

myin142 commented 1 year ago

Thanks for the info and tips! I'll see what I can do.

d-m-bailey commented 1 year ago

This is also a problem when there are over 52 discoveries and you try to name a class of item using Cd. Items prefixed with numbers are unselectable. After the 62nd item (a-zA-Z0-9) there are 7 items prefixed with punctuation :;<=>?@ which are selectable. After that, the prefix repeats A-Z, but selecting any of these objects results in a prompt to rename the first object in the list with that prefix instead of the selected object.