Crossbow reload: which bolt stack the auto-reload takes (lowest slot vs smallest stack)

Offen
#3,566 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
24/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go, reverse-engineering

Rechercherichtung

Start with reloadMagazine in apps/server/internal/game/action/ammunition.go, which picks the bag stack by lowest slot from slot 13. The real work is in the v1.150 server disassembly: confirm whether native auto-reload takes the first matching slot or the smallest stack, and cite the address in a code comment. Done when the Go reload order matches that address and the owner has answered the thread.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area: server bug priority: low

Player report from Discord (2026-11-13): with a crossbow equipped, the reload does not take the smallest bolt stack. It takes what looks like a random one, which splits the player's stacks. The player asks that it always use the lowest stack.

What the port does: reloadMagazine (apps/server/internal/game/action/ammunition.go) moves the bag stack of the spent type that has the lowest slot number. Its comment says the reference server searches the bag from slot 13. So the stack chosen depends on bag order, not on stack size.

To find out

  • Check that native claim against the server disassembly: does the auto-reload take the first matching slot from 13, or the smallest stack?
  • What the v1.150 client does when it requests a reload itself, if it ever does.

Done when: the reload order matches the disassembly, with the address cited at reloadMagazine. If native takes the first slot, the thread gets that answer (the owner words the reply).

Vorherrschende Sprache
Go
Sterne
97
Forks
61
Ø Merge
4 Std. 14 Min.
Gemergte PRs (30 T.)
913

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus opensro-dev/opensro

Alle Issues in opensro-dev/opensro

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.