Repository navigation
docs(tools): correct Factorio 2.0 facts in the tool manual - #432
Open
hashbender wants to merge 1 commit into
Open
hashbender wants to merge 1 commit into
hashbender wants to merge 1 commit into
Conversation
- launch_rocket: a 2.0 rocket is 100 rocket parts, each 10 processing units, 10 low density structures and 10 rocket fuel; rocket control units are gone. - game_types: FilterInserter / StackFilterInserter comments say every 2.0 inserter has filter slots instead of "use fast-inserter". - set_entity_recipe: the search is within 1 tile, and on an inserter it sets the first filter slot. - agent.md statistics: battery is 15 per 60 seconds (4 s recipe). - sleep: no 15 second cap; get_entities: no 50 tile radius cap. - shift_entity: replace the docstring copied from get_connection_amount. - connect_entities: the prompt showed connect_entities(*args, **kwargs) with "Wrapper method with retry logic"; document the call forms instead. - set_research: list the 2.0 trigger technologies and their triggers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Problem
The system prompt (tool docstrings,
agent.mdmanuals andgame_types.py) states several things that are false in Factorio 2.0, or false for FLE's own tools:launch_rocket/agent.mdsays each launch needs 100 rocket fuel, 100 rocket control units and 100 low density structures. That is the 1.1 cost. In 2.0 the silo needs 100 rocket parts (rocket_parts_required = 100). Each part is 10 processing units, 10 low density structures and 10 rocket fuel, and rocket control units no longer exist.Prototype.FilterInserteris commented "filter-inserter removed, use fast-inserter", andStackFilterInserter"renamed to bulk-inserter". In 2.0 every inserter has filter slots; these names are only aliases.set_entity_recipe/agent.mdsays the tool searches "within a 2-tile radius". The Lua searches a ±1-tile box, and on an inserter it sets the first filter slot rather than a recipe.tools/agent.mdsays "Battery - 20 per 60 seconds". The battery recipe takes 4 s and makes 1, so a chemical plant (speed 1) makes 15 per 60 seconds.sleepdocstring says "Sleep for up to 15 seconds".sleep/server.luaaddsseconds * 60ticks with no cap.get_entities/agent.mdsays "Maximum radius is limited to 50 tiles". The default is 1000, and the Lua uses the radius as given.shift_entitydocstring: it isget_connection_amount's docstring ("Calculate the number of connecting entities ...", withsource/target/connection_typeparams thatshift_entitydoesn't take).connect_entitiesentry:__call__is a retry wrapper, so the prompt showsconnect_entities(*args, **kwargs)with the docstring "Wrapper method with retry logic for specific Lua errors.". That gives no call form or parameters.Fix
Corrections only:
launch_rocket/agent.md: the 2.0 cost (100 parts × 10 processing units / 10 LDS / 10 rocket fuel = 1,000 of each), and a note that RCUs don't exist in 2.0.game_types.py: the two alias comments say every inserter has filter slots and what each name maps to.set_entity_recipe/agent.md: "within 1 tile", plus a line that on an inserter it sets the first filter slot.tools/agent.md: battery is 15 per 60 seconds.sleepdocstring: "Wait for the given number of game seconds before continuing."get_entities/agent.md: the 50-tile line is removed.shift_entitydocstring: describes what the tool does (pick up, movedistancetiles indirection, place again) and its real parameters.connect_entitiesdocstring: describes the two call forms (source, target, connection_typeand*waypoints, connection_type=), plusconnection_type,dry_runand the return value. The retry wrapper is unchanged.set_research/agent.md: a "Trigger Technologies" section lists the seven technologies and their triggers, asbase/prototypes/technology.lua(2.0.73) defines them:Testing
technology.lua,recipe.lua, androcket_parts_requiredinentity/entities.lua);main(sleep/server.lua,get_entities/server.lua,set_entity_recipe/server.lua,shift_entity/client.py,connect_entities/client.py).Notes
connect_entitiessignature still shows as(*args, **kwargs); only the docstring changes. Giving the wrapper a real signature would be a code change.get_research_progressabout what it returns for a trigger technology. I haven't checkedresearch_unit_counton a trigger technology against a server.set_research/agent.md) and with the other open tool PRs.🤖 Generated with Claude Code