Repository navigation
Compost bins: start at once when standing at the bin; weeds go in together - #6626
Merged
UnhealthyKraken merged 3 commits intoNov 23, 2026
Merged
Conversation
…ether A use or Take on a compost bin always waited two ticks before the first step, and every click restarted that wait, so clicking the bin again was slower than leaving the loop running (RSPSApp#6539). Live starts at once when the player is already standing at the bin: the ingredient goes in with the animation on the click's tick and lands a tick later, and compost is scooped a tick after the click. A click on the loop already running picks it back up instead of restarting it. Weeds all go in at once, two ticks after the animation (rsprox captures, Wiki). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups for RSPSApp#6539. Another item on a bin whose loop still has a step due now starts at that step, so alternating items never beats the two-tick pace. A loop paused by a level-up pop-up is no longer picked back up by a click (its pause would never clear). The bottomless, rotten tomato and mixing tests advance the world cycle each tick, as the server does, and expect the standing-still Take and all-at-once weeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bandit-HaxUnit
marked this pull request as ready for review
November 23, 2026 12:26
UnhealthyKraken
self-requested a review
November 23, 2026 17:59
Collaborator
|
Reviewing this now (review loop, head bbc564d). |
UnhealthyKraken
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed PR #6626 at bbc564d (main 75a513d, integration tree a11a32da451b02e1021371af67a35e6f7aecd7b1).
What it does
Compost bins no longer wait two ticks when the player is already standing at the bin. A fill animates on the click's tick and deposits a tick later; a Take scoops a tick later; a click after walking keeps the two-tick start. Weeds go in together (up to the room left), two ticks after the animation, and the loop ends there. A click on the loop that is already running keeps its pace instead of restarting it. It fixes #6539.
What was checked
- Behaviour: the new
onObjectRoutehook only stamps the cycle of a click on a compost patch id;startBinWorktreats a use on that same cycle as "standing". Traced the item paths: a fill deletes one item per deposit step (weeds:min(inventory, capacity - count)in onedeleteNumber), recountsbin.super/tomatoes/tierby the same amount, and re-checks bin state and inventory before every step. Take still deletes one Bucket and adds one compost at the output step, aftercanTakeBinProduct. A spam re-click (same bin, action, item, tile, next step still pending) re-installs the same loop object, so nothing is deposited or scooped twice. Switching items cancels the old loop before its deposit, so no item is taken without being deposited. - Parity: every recording citation checked against the transcripts.
- Standing fill:
rsprox_transcripts/227/910484.txtt409 (oploct on the bin with seq 832 and sound 2441 on the click tick, item gone t410, then every 2 ticks);227/910481.txtt8592;227/910477.txtt22038;227/910357.txtt6782. All match. - Standing Take:
227/910484.txtt317 (oploc1; seq 832 t318, ultracompost t319, next t322/t323) and t385 (seq t386, bucket t387);225/910138.txtt441 (bucket on bin; seq t442, bucket t443). All match. - Weeds:
225/910136.txtt712 click, arrival t713, seq 832 t715, 15 weeds gone t717;227/910357.txtt2035 click, arrival t2038, seq t2040, 10 weeds gone t2042;227/910357.txtt6786 (standing) seq on the click tick, one weed gone t6788. All match, and the walked cases confirm "+2 after arriving". - Wiki, Weeds: "when you use a weed on the compost bin, it will put all 15 weeds at once" is on the page as quoted. The Compost Bin page has no weed or timing text.
- Where the PR goes beyond recordings, it says so (re-click mid-loop, item switching, the mixing dialogue start, a level-up pause). Not a defect.
- Standing fill:
- Traced:
Services.itemOnBin/binAction->Patches.startBinWork(3 call sites: Take/bucket, fill, mix confirmation) ->workStep->fillBinStep/Services.takeBinStep;walkToObjectemits the route event and runsaction.executein the same cycle for a player already in reach, a later cycle after walking;player:world-input->cancelWork;pauseWork/ level-up pause. - Rules: no generated JSON, no plugin description/config change (world-config-docs not needed), no TypeScript change;
docs/farming.mdupdated with the recording ids. - Related PRs: none found that touch this code.
Findings
No defects found.
Scope
ordinary
Verified
yarn buildin server/ on the integration commit: ok.farming-compost-inputs.test.cjs: 20/20.farming-bin-bottomless-collection.test.cjs: 4/4.farming-compost-mixing.test.cjs: 3/3.farming-rotten-tomato-collection.test.cjs: 5/5.- Consumers, each on its own:
farming-bottomless-compost-parity5/5,farming-bottomless-selection8/8,farming-compost-bin-dump5/5,farming-noted-compost5/5,farming-capture-lines25/25,farming-leprechaun-weeds5/5. - Revert check (
Patches.Farming.jsfrom main with the PR's tests): 9 of the 20 compost-inputs tests fail (all the new ones), the 11 existing pass; file restored afterwards. - docs:
yarn install --frozen-lockfileandyarn build(Git Bash yarn 1.22.22): build complete. - main+head merge tree: clean
- generated JSON: none edited
Not verified
- No live game run; the standing-versus-walked split depends on the click and the route event sharing a World cycle. I read
walkToObject/MovementTaskand it holds for an in-reach click, and the PR's in-game note covers the weeds case, but I did not drive it myself. - Take-after-walking timing (+2 after arriving) has no recording cited in the PR; only the unchanged-code claim backs it.
- Weeds in a 30-item bin going in all at once (up to 30): the Wiki says 15 and no recording shows a big bin, so the upper size is extrapolated.
- Recording
1000343and recording 1858 were not individually re-read; no tick in the PR depends on them. farming-geomancy-interface(reported pre-existing failure) not run; it does not consume the changed code.
Verdict
Merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6539
Problem
Every use or Take on a compost bin waited two ticks before the first step, whether or not the player was already standing at the bin. Every click restarted that wait, so clicking the bin again was slower than leaving the loop running. Clicking every tick never deposited anything at all. Weeds went in one at a time like any other ingredient.
Fix
server/plugins/skills/farming/Patches.Farming.jsonObjectRoutehook (noteBinClick) records the cycle of each click on a compost bin. Construction uses the same hook for its portals.startBinWorktreats a use on that same cycle as "already standing at the bin". A fill then animates at once and deposits a tick later. A take scoops a tick later. A use after walking keeps the two-tick start.player:world-input). A click on that same loop (same bin, action and item, same tile) whose next step is still pending picks it back up where it was. A click with another item on that bin starts at the running loop's next step. Re-clicking can no longer slow a fill or take down, and switching items can't beat the two-tick pace. A loop paused by a level-up pop-up is never picked back up: its pause would never clear.fillBinStep: weeds go in together, as many as the bin has room for, two ticks after the animation, and the loop ends there.docs/farming.md: the compost bin timings, with recording ids.server/tests/farming-compost-inputs.test.cjs: 9 new tests (standing fill, walked start, weeds at once in both bin sizes and with one space left, walked weeds, standing take with its 4-tick cadence, clicking every tick during a fill and a take, a fresh start after a loop ends or with another item, switching items every tick, a click after a level-up pause).farming-bin-bottomless-collection,farming-rotten-tomato-collection,farming-compost-mixingtests:ticks()now advances the world cycle asWorld.processdoes, and the assertions expect the standing-still Take (a tick sooner) and weeds going in together.Testing
farming-compost-inputs(20),farming-bin-bottomless-collection,farming-compost-mixing,farming-rotten-tomato-collection,farming-bottomless-compost-parity,farming-bottomless-selection,farming-compost-bin-dump,farming-noted-compost,farming-capture-lines,farming-leprechaun-weeds,farming-cure-plant,farming-model.farming-geomancy-interfacefails identically on upstream/main (pre-existing, IbansStaffCombatSpellserrors in that file's setup).Patches.Farming.js, every new compost-inputs test fails and the 11 existing ones pass. With the first commit'sPatches.Farming.js, the item-switch and level-up tests fail.advance_timedoes not move a closed bin's rot timer (it uses wall-clockclosedAt). The unit tests cover it.Not covered
agent:advance-time(follow-up for testing tools).Self-reviewed with the review checklist at bbc564d (two rounds; first-round findings fixed in bf3967f).
Reference
rsprox_index.py facts|trace 'farming_compost_bin_*' --include-special).🤖 Generated with Claude Code