2025-08-25 02:40:34 +08:00
2025-01-17 22:07:45 +08:00
2025-01-20 11:55:53 +00:00
2025-07-16 21:56:58 +08:00
2025-01-18 01:21:49 +08:00
2025-08-25 02:40:34 +08:00

airi-factorio

Helper for アイリ to play Factorio with you.

Note

This project is part of the Project AIRI, we aim to build a wishing to achieve Neuro-sama's (subscribe if you didn't!) altitude, completely LLM and AI driven, capable of realtime voice chat, Minecraft playing, Factorio playing. If you are interested in, please do give it a try on live demo.

Development

Project Structure

It's hard to describe the project structure in a few words, but it currently looks like this:

project-structure

Start to develop

  1. Clone the repository:

    git clone https://github.com/moeru-ai/airi-factorio
    
  2. Install dependencies:

    pnpm i
    
  3. Create a symlink for the autorio mod:

    cd /path/to/airi-factorio
    
    ln -s /path/to/airi-factorio/packages/autorio/dist /path/to/factorio/data/autorio
    # If you are using DevContainer, you can use the following command:
    ln -s /workspace/airi-factorio/packages/autorio/dist /opt/factorio/data/autorio
    
  4. Copy and fill the .env file:

    cp packages/agent/.env.example packages/agent/.env.local
    cp packages/factorio-wrapper/.env.example packages/factorio-wrapper/.env.local
    

    If you are using DevContainer, you can set WS_SERVER_HOST and FACTORIO_WS_HOST and RCON_API_SERVER_HOST to localhost.

  5. Create a game save file, the save file path should be the same as the one in the .env file:

    /path/to/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
    # If you are using DevContainer, you can use the following command:
    /opt/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
    # If your machine is not x64, you can use the following command:
    box64 /opt/factorio/bin/x64/factorio --create /path/to/factorio/the-save-file.zip
    
  6. Run the development script:

    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).

Other side projects born from Project AIRI like this one

Credits

Thanks for the original idea and code: https://github.com/naklecha/factorio-automation

Description
Helper for アイリ to play Factorio with you.
Readme MIT 60 MiB
Languages
TypeScript 82%
Vue 13.6%
Dockerfile 1.5%
CSS 1.4%
HTML 0.8%
Other 0.7%