Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemonnekogh/autorio.ts
A Factorio mod that allows players to automate their tasks.
https://github.com/lemonnekogh/autorio.ts
factorio factorio-mod typescript
Last synced: 15 days ago
JSON representation
A Factorio mod that allows players to automate their tasks.
- Host: GitHub
- URL: https://github.com/lemonnekogh/autorio.ts
- Owner: LemonNekoGH
- License: mit
- Created: 2025-01-17T14:07:50.000Z (17 days ago)
- Default Branch: main
- Last Pushed: 2025-01-17T17:21:54.000Z (17 days ago)
- Last Synced: 2025-01-17T17:40:15.226Z (17 days ago)
- Topics: factorio, factorio-mod, typescript
- Language: TypeScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autorio
A Factorio mod that allows players to automate their tasks.
## Example
To make a burner inserter, we need to:
```text
/c remote.call("autorio_tasks", "walk_to_entity", "coal", 500) -- walk to coal
/c remote.call("autorio_tasks", "mine_entity", "coal") -- mine coal/c remote.call("autorio_tasks", "walk_to_entity", "iron-ore", 500) -- walk to iron ore
/c remote.call("autorio_tasks", "mine_entity", "iron-ore")
/c remote.call("autorio_tasks", "mine_entity", "iron-ore")
/c remote.call("autorio_tasks", "mine_entity", "iron-ore")/c remote.call("autorio_tasks", "auto_insert_nearby", "coal", "stone-furnace", 1) -- insert coal into furnace
/c remote.call("autorio_tasks", "auto_insert_nearby", "iron-ore", "stone-furnace", 5) -- insert iron ore into furnace/c remote.call("autorio_tasks", "pick_up_item", "iron-plate", 5, "stone-furnace") -- pick up iron plate
/c remote.call("autorio_tasks", "craft_item", "iron-gear-wheel", 1) -- craft iron gear wheel
/c remote.call("autorio_tasks", "craft_item", "burner-inserter", 1) -- craft burner inserter/c remote.call("autorio_tasks", "place_entity", "burner-inserter", 1) -- place burner inserter
```## Development
Go to your Factorio mod folder:
```bash
cd /path/to/factorio/data
```Clone the repository:
```bash
git clone https://github.com/LemonNekoGH/autorio.ts autorio && cd autorio
```Install dependencies:
```bash
pnpm i
```Run the script:
```bash
pnpm run dev
```Now you can use the commands in Factorio, the script will be compiled automatically, but you need to exit and re-enter the game to see the changes(no need to restart the game).
## Credits
Thanks for the original idea and code: https://github.com/naklecha/factorio-automation